1.0.2 • Published 6 years ago
@common-web/babel v1.0.2
Getting started
Install the pkg:
yarn:
yarn add @common-web/babel -Dnpm:
npm install @common-web/babel --save-devin your repo create babel.config.js file then added the following:
Node (specific node preset)
// babel.config.js
// For node based presets
const getNodeBaseConfig = require('@common-web/babel/babel.config').getNodeBaseConfig;
module.exports = getNodeBaseConfig();Other (use the base configuration)
// babel.config.js
// For other application, ex react
const getBaseConfig = require('@common-web/babel/babel.config').getBaseConfig;
module.exports = getBaseConfig();