1.0.0 • Published 3 years ago

babel7config-for-js v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

babel7config-for-js

babel7config-for-js is designed for compiling commonjs and esm. It is based on Babel7 and core-js3.

Installation

babel7config-for-js needs babel-runtime, so your need to install them before installing babel7config-for-js.

$ npm install @babel/runtime @babel/runtime-corejs3 core-js regenerator-runtime
$ npx install-peerdeps -D babel7config-for-js

Usage

Set babel config:

{
  "extends": ["babel7config-for-js"]
}

Then in your app entry file, add code like:

import 'core-js/stable'
import 'regenerator-runtime/runtime'

// your code here