Socket
Socket
Sign inDemoInstall

@salesforce/babel-preset-design-system-react

Package Overview
Dependencies
0
Maintainers
23
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @salesforce/babel-preset-design-system-react

Babel preset to parse the Salesforce Design System React source code.


Version published
Weekly downloads
10K
increased by8.45%
Maintainers
23
Install size
3.80 kB
Created
Weekly downloads
 

Readme

Source

Babel Preset for Source Code

A Babel 6 preset that makes Design System React compatible with Salesforce’s supported browsers. This enables a module bundler, such as Webpack, to transpile Design System React. Using this will make it easier to upgrade in the future without having to manually reconfigure your Babel settings to be compatible with new language features Design System React may use.

Currently contains transforms for all standard syntax that is ES2017, babel-preset-react and the following lower-stage plugins:

Install

$ npm install --save-dev @salesforce/babel-preset-design-system-react

Usage

{
  "presets": ["@salesforce/babel-preset-design-system-react"]
}

With CLI

$ babel script.js --presets @salesforce/babel-preset-design-system-react

With Node

require('babel-core').transform('code', {
  presets: ['@salesforce/babel-preset-design-system-react']
});

Keywords

FAQs

Last updated on 04 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your 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