gulp-js-rollup-babel
A Simple gulp plugin to build browsers ready js files on the fly with little setup.
Install
npm i -D gulp-js-rollup-babel
Usage
Example
#.browserslistrc # Example >= 1%last 1 major versionnot deadChrome >= 45Firefox >= 38Edge >= 12Explorer >= 10iOS >= 9Safari >= 9Android >= 4.4Opera >= 30
// babel.config.json// example
// gulpfile.js const rollup = ; // Exampleconst jsConfig = input: './test/index.js' external: 'jquery' minimize: true output: file: './test-output/index.min.js' name: 'index' format: 'umd' sourcemap: true globals: jquery: 'jQuery' // Ensure we use jQuery which is always available even in noConflict mode ; exports { return ;};