@rollup/plugin-babel
Advanced tools
Comparing version 5.2.2 to 5.2.3
# @rollup/plugin-babel ChangeLog | ||
## v5.2.3 | ||
_2021-01-29_ | ||
### Updates | ||
- docs: add usage with commonjs. fixes #622 (6b4b7b6) | ||
- docs: update export in README (#690) | ||
## v5.2.2 | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "@rollup/plugin-babel", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"publishConfig": { | ||
@@ -53,2 +53,7 @@ "access": "public" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/babel__core": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -86,8 +91,3 @@ "@babel/helper-module-imports": "^7.10.4", | ||
"Mateusz Burzyński <mateuszburzynski@gmail.com> (https://github.com/Andarist)" | ||
], | ||
"peerDependenciesMeta": { | ||
"@types/babel__core": { | ||
"optional": true | ||
} | ||
} | ||
] | ||
} |
@@ -42,3 +42,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-babel | ||
```js | ||
import babel from '@rollup/plugin-babel'; | ||
import { babel } from '@rollup/plugin-babel'; | ||
@@ -59,2 +59,19 @@ const config = { | ||
### Using With `@rollup/plugin-commonjs` | ||
When using `@rollup/plugin-babel` with `@rollup/plugin-commonjs` in the same Rollup configuration, it's important to note that `@rollup/plugin-commonjs` _must_ be placed before this plugin in the `plugins` array for the two to work together properly. e.g. | ||
```js | ||
import { babel } from '@rollup/plugin-babel'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
const config = { | ||
... | ||
plugins: [ | ||
commonjs(), | ||
babel({ babelHelpers: 'bundled' }) | ||
], | ||
}; | ||
``` | ||
## Options | ||
@@ -61,0 +78,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62435
366