babel7config-for-js
v1.0.0
Published
Common babel config for js
Downloads
5
Readme
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