Skip to content

pantojs/panto-transformer-browserify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panto-transformer-browserify

NPM version Downloads Build Status Dependency status Dev Dependency status Coverage Status

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