@common-web/babel
v1.0.2
Published
Common configuration for babel
Downloads
533
Readme
Getting started
Install the pkg:
yarn:
yarn add @common-web/babel -D
npm:
npm install @common-web/babel --save-dev
in 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();