In package.json we can specify browserify transforms like this:
"browserify": {
"transform": ["babelify"]
}
Is it possible to set other config like debug
, detectGlobals
, input source file, output file, etc. For example, something like:
"browserify": {
"debug": true,
"detectGlobals": false,
"transform": ["babelify"]
}
Thanks
In case you haven't found an answer to this yet:
Yes, it is and quite simple. You were very close. here's the example from the browserify README.md
{
"browserify": {
"transform": [["babelify", { "presets": ["es2015"] }]]
}
}
read more here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With