babel-preset-sui
v3.54.0
Published
A preset for all babel-transpiled javascript of the SUI family.
Downloads
9,822
Readme
babel-preset-sui
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.
Installation
$ npm install babel-preset-sui --save-dev
Presets and plugins
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:
Usage
Via package.json
(Recommended)
package.json
{
"name": "my-awesome-package",
"version": "1.0.0",
"babel": {
"presets": ["sui"]
}
}
Via .babelrc
.babelrc
{
"presets": ["sui"]
}
Contributing
Please refer to the main repo contributing info.