How do I compile multiple files using the sweet.js binary?
So that something like this: sjs -o out *.js
...
...generates separate compiled files in the out
directory:
out/one.js
out/two.js
out/three.js
This is for an npm module that require()
's several internal files.
Edit: I am motivated to do this in a single call to sjs
because I am importing a sweetjs module with -m lambda-chop/macros
which is slow. Running separate sjs -m lambda-chop/macros
commands for every source file makes for an unnecessarily slow build process.