The code currently references a few Node builtins that don't make sense within browser contexts. I'd like to be sure that Clipanion can be easily compiled via browsers (I myself use it inside a Chrome extension), so those builtins get in the way.
This diff gates the builtins in a platform folder with a package.json configured to return one file or the other depending on the environment.
The code currently references a few Node builtins that don't make sense within browser contexts. I'd like to be sure that Clipanion can be easily compiled via browsers (I myself use it inside a Chrome extension), so those builtins get in the way.
This diff gates the builtins in a
platform
folder with apackage.json
configured to return one file or the other depending on the environment.