Socket
Socket
Sign inDemoInstall

babel-preset-fbjs

Package Overview
Dependencies
87
Maintainers
10
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

babel-preset-fbjs

Babel preset for Facebook projects.

    3.4.0latest
    GitHub
    npm

Version published
Maintainers
10
Weekly downloads
3,609,094
increased by2.16%

Weekly downloads

Readme

Source

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

FAQs

Last updated on 24 May 2021

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc