babel-preset-gain
babel preset for our projects
Usage
Installation
$ npm install babel-preset-gain --save-dev
.babelrc
for internal development purposes
Via This will target the current version of node and transpile my preferred upcoming features.
In React projects
This will target the current node version, but will also transpile React features
Rollup
Via- Prevent transpilation of module imports/exports so
Rollup
can optimize properly - Transpile to the lowest common denominator of your expected consumers' execution environments
In the rollup.config.js
:
... plugins: ... ...;
In projects that target both node and browsers
... plugins: ... ...;
In React projects
... plugins: ... ...;
Dependencies
$ nvm install$ npm install
Verification
$ npm test