1.0.2 • Published 4 years ago

@common-web/babel v1.0.2

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

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();

Examples