enb-bemify-es2015
v0.4.0
Published
An ENB tech which transpiles javascript files with ES6 or more syntax to ES5 syntax javascript using babel
Downloads
6
Maintainers
Readme
enb-bemify-js
An ENB tech which transpiles javascript files with ES6 and higher syntax to the ES5 syntax javascript using babel
Description
This tech transpiles javascript files with ES6 and higher syntax using babel to the ES5 files. The tech uses Babel as an engine to transpiling javascript.
Usage
If you want to use this tech, you should to perform 3 steps: Firstly you should to install the tech run the command
npm install --save-dev enb-bemify-es2015
Then you should to add this tech to the .enb/enb-make.js:
//.enb/enb-make.js
nodeConfig.addTechs(require('enb-bemify-es2015'), {
target: '?.js',
suffixes: ['browser.js','vanilla.js','node.js'],
})
And finally you should configure your .babelrc file.
License
MIT, see LICENSE for details.