0.0.1 • Published 1 year ago

@alola-react/plugin-module-babel v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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.

0.0.1

1 year ago