mirror of
https://github.com/Didericis/bare-bundle-transform-plugin-babel.git
synced 2026-06-26 01:55:17 -04:00
15 lines
863 B
Markdown
15 lines
863 B
Markdown
# bare-bundle-transform-plugin-babel
|
|
|
|
[](https://npmjs.com/package/bare-bundle-transform-plugin-babel)
|
|
[](https://github.com/Didericis/bare-bundle-transform/actions/workflows/test.yml)
|
|
|
|
Plugin for [bare-bundle-transform](https://github.com/Didericis/bare-bundle-transform) that applies a babel transformation to every file with a `.cjs`, `.mjs`, and `.js` extension.
|
|
|
|
## Usage
|
|
|
|
```console
|
|
bare-pack ./app.js | bare-bundle-transform --plugin bare-bundle-transform-plugin-babel -o ./app.bundle
|
|
```
|
|
|
|
NOTE: to configure babel, add a `babel.config.json` to the root of the project you're bundling (as documented [here](https://babeljs.io/docs/configuration)).
|