@rollup/plugin-babel
Advanced tools
Comparing version 5.0.2 to 5.0.3
# @rollup/plugin-babel ChangeLog | ||
## v5.0.3 | ||
_2020-06-05_ | ||
### Updates | ||
- docs: update `babelHelpers` description (#397) | ||
## v5.0.2 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@rollup/plugin-babel", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -93,8 +93,8 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-babel | ||
We recommend to follow those guidelines for each possible value: | ||
We recommend to follow these guidelines to determine the most appropriate value for your project: | ||
- `'runtime'` - you should use it especially when building libraries with rollup. It has to be used in combination with `@babel/plugin-transform-runtime` and you should also specify `@babel/runtime` as dependency of your package (don't forget to tell rollup to treat it as your external dependency when bundling for `cjs` & `es` formats). | ||
- `'bundled'` - you should use it if you want your resulting bundle to contain those helpers (at most one copy of each). Useful especially if you bundle an application code. | ||
- `'external'` - use it only if you know what you are doing. It will reference helpers on **global** `babelHelpers` object. Used in combination with `@babel/plugin-external-helpers`. | ||
- `'inline'` - this is not recommended. Helpers will be inserted in each file using them. This can cause serious code duplication (this is the default Babel behaviour). | ||
- `'runtime'` - you should use this especially when building libraries with Rollup. It has to be used in combination with `@babel/plugin-transform-runtime` and you should also specify `@babel/runtime` as dependency of your package (don't forget to tell Rollup to treat it as your external dependency when bundling for `cjs` & `es` formats). | ||
- `'bundled'` - you should use this if you want your resulting bundle to contain those helpers (at most one copy of each). Useful especially if you bundle an application code. | ||
- `'external'` - use this only if you know what you are doing. It will reference helpers on **global** `babelHelpers` object. Used in combination with `@babel/plugin-external-helpers`. | ||
- `'inline'` - this is not recommended. Helpers will be inserted in each file using this option. This can cause serious code duplication. This is the default Babel behavior as Babel operates on isolated files - however, as Rollup is a bundler and is project-aware (and therefore likely operating across multiple input files), the default of this plugin is `"bundled"`. | ||
@@ -101,0 +101,0 @@ ### `skipPreflightCheck` |
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
52115