@build-chores/babel-preset
v0.9.0
Published
Transpiling JS projects is complicated.
Downloads
20
Readme
@build-chores/babel-preset
Transpiling JS projects is complicated.
Synopsis
Transpile Javascript to be compatible with Node 8.
Usage
Install the @build-chores/babel-preset
package into your project:
yarn install --dev @build-chores/babel-preset
Create a .babelrc
file containing the following snippet:
{
"presets": [["@build-chores/babel-preset"]]
}
See the example .babelrc
for a template.
Edit your package.json
to include the following script. See the example package.json
for a template.
{
"scripts": {
"compile": "babel -d dist src"
}
}
You are ready to transpile your JavaScript code.
Contribute
Check out our contributing.md to get started.