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

    3.0.0 • Public • Published

    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

    With .babelrc (Recommended)

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

    Install

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

    DownloadsWeekly Downloads

    13,555

    Version

    3.0.0

    License

    SEE LICENSE IN README.md

    Unpacked Size

    2.8 kB

    Total Files

    3

    Last publish

    Collaborators

    • dlouvton
    • jc-sf
    • pvandyk-sf
    • dbreese-salesforce
    • ashokrudraraju
    • dhersam
    • demianbrecht
    • mmadialagan
    • spoorti.nidagundi
    • rodesp
    • mjrust
    • salesforce-releases
    • conal
    • vazexqi
    • joshwlewis
    • mpsenn
    • sfdc_iamigo
    • kevinv11n
    • tbliss
    • byao
    • pmdartus
    • futuremint_sf
    • interactivellama
    • ekashida
    • gr8gatsby
    • ravi.jayaramappa
    • apapko
    • krisgraysfdc
    • jleen-sfdc
    • jqian
    • cwallsf
    • dhagberg-sf
    • michaelhoefer
    • tlohr
    • khawkins
    • amphro
    • tconn
    • dehru
    • abdulsattar
    • jodarove
    • rxu-sfdc
    • amcconnell-sf
    • nolanlawson
    • sfdctaka
    • fernomac
    • cafreeman
    • jimjag
    • ivarley
    • jbartolotta-sfdc