A preset for all babel-transpiled javascript of the SUI family.
It provides:
- Unified code transformations.
- Protection on arbitrary use of experimental features that may been deprecated.
$ npm install babel-preset-sui --save-dev
This preset always includes the following plugins and presets:
- babel-preset-env
- babel-plugin-transform-async-generator-functions
- babel-plugin-transform-decorators-legacy
- babel-plugin-transform-class-properties
- babel-plugin-transform-object-rest-spread
- babel-plugin-transform-runtime
- babel-plugin-syntax-dynamic-import
- babel-plugin-transform-export-extensions
- babel-plugin-transform-react-remove-prop-types
If react
or preact
is installed:
package.json
{
"name": "my-awesome-package",
"version": "1.0.0",
"babel": {
"presets": ["sui"]
}
}
.babelrc
{
"presets": ["sui"]
}
Please refer to the main repo contributing info.