babel-preset-fbjs
Babel preset for Facebook projects.
Last updated a year ago by yungsters .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install babel-preset-fbjs 
SYNC missed versions from official npm registry.

babel-preset-fbjs

Babel preset for Facebook projects.

Install

$ npm install --save-dev babel-preset-fbjs

Basic Usage

Via .babelrc

.babelrc

{
  "presets": ["fbjs"]
}

Via CLI

$ babel script.js --presets fbjs

Via Node API

require('@babel/core').transform('code', {
  presets: ['fbjs']
});

Advanced Usage

require('@babel/core').transform('code', {
  presets: [
    require('babel-preset-fbjs/configure')({
      autoImport: true,
      inlineRequires: false,
      rewriteModules: {},
      stripDEV: false
    }
  ]
});

Current Tags

  • 3.3.0                                ...           latest (a year ago)
  • 2.0.0-alpha.1                                ...           next (4 years ago)

17 Versions

  • 3.3.0                                ...           a year ago
  • 3.2.0                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.4                                ...           3 years ago
  • 2.1.3                                ...           3 years ago
  • 2.1.2                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 2.0.0-alpha.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 63
This Week 5,824
This Month 17,618
Last Day 1,088
Last Week 6,172
Last Month 28,631
Dev Dependencies (3)
Dependents (122)

Copyright 2014 - 2016 © taobao.org |