babel-preset-spaceship

0.8.3 • Public • Published

babel-preset-spaceship

npm

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:

  • client for browsers
  • webpack for webpack
  • server for node (v6+)
  • test for 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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.8.31latest

Version History

VersionDownloads (Last 7 Days)Published
0.8.31
0.8.20
0.8.10
0.8.00
0.7.00
0.6.00
0.5.00
0.4.10
0.4.00
0.3.00
0.2.00
0.1.10
0.1.00

Package Sidebar

Install

npm i babel-preset-spaceship

Weekly Downloads

1

Version

0.8.3

License

MIT

Last publish

Collaborators

  • mariusc23