babel-preset-cx-env

24.0.0 • Public • Published

babel-preset-cx-env

This preset sets up Babel for CxJS applications.

The preset includes the following plugins:

  • @babel/proposal-class-properties
  • @babel/proposal-function-bind
  • @babel/transform-react-jsx
  • babel-plugin-transform-cx-jsx
  • babel-plugin-transform-cx-imports

You can set it up in your babel.config.js file:

{
    presets: [
        ["babel-preset-cx-env", {
            cx: {
                jsx: {
                    trimWhitespace: false
                },
                imports: {
                    useSrc: true
                }
            }
        }]
    ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i babel-preset-cx-env

Weekly Downloads

81

Version

24.0.0

License

SEE LICENSE.md

Unpacked Size

4.35 kB

Total Files

5

Last publish

Collaborators

  • mstijak
  • codaxy-npmjs