Package Exports
- @roots/bud-babel
Readme
@roots/bud-babel
Overview
Extends Bud with Babel.
Installation
yarn add @roots/bud-babel --dev
Usage
bud.use('@roots/bud-babel')Configuration
Babel can either be configured using the bud api or with a standard babel config file.
With bud
Add a babel preset:
bud.babel.addPreset('@babel/preset-env')Add a babel plugin:
bud.babel.addPlugin('@babel/plugin-transform-runtime')Set babel-loader options
bud.babel.setOptions({root: bud.project()})With a config file
Place a .babelrc or babel.config.js file in your project rootDir, as normal. This configuration file, if present, will overwrite the defaults.
Contributing
Contributions are welcome from everyone.
We have contributing guidelines to help you get started.
Bud sponsors
Help support our open-source development efforts by becoming a patron.
Community
Keep track of development and community news.
- Participate on the Roots Discourse
- Follow @rootswp on Twitter
- Read and subscribe to the Roots Blog
- Subscribe to the Roots Newsletter
- Listen to the Roots Radio podcast