How can I create a production build from several modules without having a single main?
I cannot figure out how to build those into a single js-file.
I tried setting
main as an array, but that fails.
"build": "steal-tools build --bundle-steal -c ./website/static/js/config.js",
main: ['product', 'category', 'shop'] // Yeah right!
Running a build:
> steal-tools build --bundle-steal -c ./website/static/js/config.js
ERROR: name.match is not a function
I suppose I could create a "main.js" with lines like this (below) and then point the config.js to this file. But it seems awkward (also, I wouldn't really use the main.js in my site):
import x from "product";
import y from "category";
import z from "cart";
I'm really at a loss here. Thanks for any input!