babel-preset-fbjs
Babel preset for Facebook projects.
Last updated 2 months 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 (2 months ago)
  • 2.0.0-alpha.1                                ...           next (4 years ago)

17 Versions

  • 3.3.0                                ...           2 months ago
  • 3.2.0                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.4                                ...           2 years ago
  • 2.1.3                                ...           3 years ago
  • 2.1.2                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 2.0.0-alpha.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 95
This Week 5,985
This Month 12,778
Last Day 386
Last Week 6,508
Last Month 31,762
Dev Dependencies (3)
Dependents (99)

Copyright 2014 - 2016 © taobao.org |