Wondering what’s next for npm?Check out our public roadmap! »

    babel-preset-fbjs

    3.4.0 • Public • Published

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

    Keywords

    none

    Install

    npm i babel-preset-fbjs

    DownloadsWeekly Downloads

    1,398,555

    Version

    3.4.0

    License

    MIT

    Unpacked Size

    28.7 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar