@alola-react/plugin-module-babel
v0.0.1
Published
The babel plugin of Alola-react-sdk Module
Downloads
2
Readme
@alola-react/plugin-module-babel
The Babel plugin of Alola-react-sdk Module.
You can add Babel compile by the plugin before module-tools internal building.
Usage
import { moduleTools, defineConfig } from "@alola-react/module-tools";
import { modulePluginBabel } from "@alola-react/plugin-module-babel";
export default defineConfig({
plugins: [
moduleTools(),
modulePluginBabel({
internalPresetOptions: {
// babel-plugin-import options
import: {},
// @babel/preset-react options
react: {},
},
// refer: https://babeljs.io/docs/en/options
babelTransformOptions: {},
}),
],
});
Documentation
Contributing
Please read the Contributing Guide.
License
Alola-react-sdk is MIT licensed.