JSPM

@roots/bud-babel

3.0.31-alpha.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2150
  • Score
    100M100P100Q132480F
  • License MIT

A friendly build tool to help manage your project assets.

Package Exports

  • @roots/bud-babel

Readme

Bud

MIT License Follow Roots

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