Licence
MIT
Version
0.8.3
Deps
11
Vulns
0
Weekly
0
babel-preset-spaceship
The goal of this project is to provide minimal transformations on the server and all required transformations on the client.
Installation
npm install --save-dev babel-preset-spaceship
Usage
Add to .babelrc
{
"presets": ["spaceship"],
"plugins": ["transform-runtime"]
}
Set BABEL_ENV to one of the following:
clientfor browserswebpackfor webpackserverfor node (v6+)testfor mocha/istanbul
Example:
BABEL_ENV=client NODE_ENV=production babel src -d ./build -s --copy-files
License
Copyright (c) 2017 Marius Craciunoiu. Licensed under the MIT license.