GT2/GT2-Android/node_modules/babel-preset-fbjs
Ren Ren Juan c5fd23b54f Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
..
plugins Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
.npmignore Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
CHANGELOG.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
README.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
configure.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
index.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
package.json Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00

README.md

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
    }
  ]
});