babel-preset-cx-env

Babel preset for CxJS apps

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-preset-cx-env
24.0.03 months ago7 years agoMinified + gzip package size for babel-preset-cx-env in KB

Readme

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: ```json {
presets: [
["babel-preset-cx-env", {
cx: {
jsx: {
trimWhitespace: false
},
imports: {
useSrc: true
}
}
}]
]
} ```