@rockpack/babel is Babel settings that provide modern JS syntax support for @rockpack/compiler, @rockpack/tester.
@rockpack/babel this module is part of the Rockpack project. See more details on the official site.
@rockpack/babel includes support for React, Jest, contains a number of optimizing plugins for React, and more. See below for a complete list of included features:
To add additional plugins please make rockpack.babel.js in the root folder of your project and add plugins. These plugins will merge to common babel config.
- @babel/preset-env (browsers supporting > 5%, nodejs supporting the latest version)
- @babel/plugin-proposal-pipeline-operator
- @babel/plugin-proposal-do-expressions
- @babel/plugin-syntax-dynamic-import
- @babel/plugin-proposal-decorators
- @babel/preset-react
- @babel/plugin-transform-react-constant-elements
- @babel/plugin-transform-react-inline-elements
- @babel/plugin-transform-modules-commonjs
- @loadable/babel-plugin (support loadable components)
- babel-plugin-import (Ant Design correct import modules)
@loadable/babel-plugin allows you to organize dynamic import support for SSR applications.