Browserify transformer for panto.
This transformer supports bundle modules in node_modules.
panto.loadTransformer('browserify');
panto.$('**/*.js').browserify({
entry: 'main.js',
bundle: 'bundle.js',
buffer: true,
process: {
env: {
NODE_ENV: 'production'
}
},
aliases: {
react: 'preact-compat'
}
});
- entry: String
- bundle: String
- isStrict: Boolean
- isSilent: Boolean
- buffer: Boolean, if use
Buffer
polyfill - process: Boolean|Object
- aliases: Object