babel-preset-medopad v1.2.0
babel-preset-medopad
This is Medopad's Babel preset.
Plugins
transform-exponentiation-operator allows the use of exponentiation operators.
transform-object-rest-spread allows the use of rest properties for object destructuring assignment and spread properties for object literals. Built-ins usage is enabled by default.
transform-class-properties allows the use of class properties.
transform-runtime externalizes references to helpers and built-ins, automatically polyfilling the code without polluting globals.
Install
Shareable presets are designed to work with the presets
feature of .babelrc
files.
First, install the preset (with all of its dependencies):
npm install babel-preset-medopad --save-dev
Then, add this to your .babelrc
file:
{
"presets": ["medopad"]
}
You can override settings from the shareable preset by adding them directly into your .babelrc
file.
Use with ESLint
If you wish to use ESLint, install the parser:
npm install babel-eslint --save-dev
Then, add this to your .eslintrc
file:
parser: "babel-eslint"
Use with webpack
If you wish to use webpack, install the loader:
npm install babel-loader --save-dev
Then, add this to your webpack.config.js
file:
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader'
}
]
}
Develop
Test
npm test
Release
npm version [major|minor|patch] -m "v%s"