panto-transformer-browserify
v0.1.6
Published
Browserify transformer for panto
Downloads
6
Maintainers
Readme
panto-transformer-browserify
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'
}
});
options:
- entry: String
- bundle: String
- isStrict: Boolean
- isSilent: Boolean
- buffer: Boolean, if use
Buffer
polyfill - process: Boolean|Object
- aliases: Object