2021-02-14
- feat: add custom filter option (#767)
- feat: pass rollup context as this context into override config function (#784)
- docs: typo in README.md (#800)
- chore: commit updated readme format (bfda6d8)
2021-01-29
- docs: add usage with commonjs. fixes #622 (6b4b7b6)
- docs: update export in README (#690)
2020-11-30
- fix: clone cached helper identifier before returning it (#584)
- fix: strip hash and query param in extension filter (#533)
2020-09-09
- chore: add deprecation/migration warnings for the runtime (#534)
2020-08-13
- feat:
export * as ns
support (#511)
- chore: update dependencies (13526d6)
2020-07-12
- feat: add typings (#462)
- docs: add note about excluding @babel/runtime helpers via regex (#483)
2020-06-22
- docs: remove unused import in "Usage" example (#460)
- docs: update node requirement in readme (#443)
- docs: fix typo in readme (#447)
2020-06-05
- docs: update
babelHelpers
description (#397)
2020-05-20
- fix: use loadPartialConfigAsync when it is available (#359)
- docs: Cleanup misleading leftovers in the README (#377)
- docs: correct breaking change note in v5 CHANGELOG (#368)
2020-05-20
- fix: use loadPartialConfigAsync when it is available (#359)
- docs: Cleanup misleading leftovers in the README (#377)
- docs: correct breaking change note in v5 CHANGELOG (#368)
2020-04-27
- Added
getBabelOutputPlugin
andcreateBabelOutputPluginFactory
exports which can be used to transform generated code - Added
skipPreflightCheck
option. The plugin performs some extra checks to see if the passed configuration is correct and matching its expectations. This comes with some runtime overhead and can slow down builds. If you know what you are doing and you are confident that you have configured things correctly you can disable those checks with this option. - Published as
@rollup/plugin-babel
- Default export exported as
getBabelInputPlugin
for symmetry withgetBabelOutputPlugin
- Minimum compatible Rollup version is 1.2.0
- Minimum supported Node version is 10.0.0
.custom
factory is now available as separatecreateBabelInputPluginFactory
export- Removed
externalHelpers
&runtimeHelpers
options. There is now a singlebabelHelpers
option which can take one of'bundled'
,'inline'
,'runtime'
and'external'
as a value. The default is'bundled'
which matches 4.x behavior, but it is recommended to configure this option explicitly.
- Fixed usage with
externalHelpers: true
option
- Add
.js
extension to the virtual babel helpers file (only matters when usingpreserveModules
option in rollup)
- Added
.custom
builder. - Fail build when a plugin tries to add non existent babel helper
Allow rollup@1
as peer dependency.
- Fixed "preflight check" for ignored files.
- Return
null
when no transformation has been done (fixing source maps for this case)
Fixed fallback class transform in "preflight check".
Fixed rollup
peer dependency.
Babel 7 compatible! (dropped Babel 6 compatibility though).
Additionally:
- Internal preflight checks are created now per plugin instance, so using 2 instances of rollup-plugin-babel (i.e. targeting 2 different set of files with include/exclude options) shouldn't conflict with each other
- Transpiling by default only what Babel transpiles - files with those extensions: .js, .jsx, .es6, .es, .mjs. You can customize this with new
extensions
option. This also fixes long standing issue with rollup-plugin-babel trying to transform JSON files.
- Drop babel7 support. Use 4.0.0-beta if you use babel 7
- Use "module" in addition to "jsnext:main" (#150)
- Remove unused babel helpers namespace declaration & expression (#164)
- Fix regression with Babel 6 (#158)
- Wasn't working, fix bug with transform (not using es2015-classes for preflight check)
- Drop Node 0.10/0.12 (Use native
Object.assign
) - Change
babel-core
to be a peerDependency - Support
babel-core
v7 as well as a peerDep (no changes necessary)
- Prevent erroneous warnings about duplicated runtime helpers (#105)
- Ignore
ignore
option in preflight check (#102) - Allow custom
moduleName
withruntime-helpers
(#95)
- Add
externalHelpersWhitelist
option (#92) - Ignore
only
option during preflight checks (#98) - Use
options.onwarn
if available (#84) - Update documentation and dependencies
- Return a
name
- Use
\0
convention for helper module ID (#64)
- Don't mutate
options.plugins
(#47)
- Import
babelHelpers
rather than injecting them – allowstransform
function to be pure (#rollup/658)
- Add
externalHelpers
option (#41)
- Do not rename Babel helpers (#34)
- Create new version to (hopefully) solve bizarre CI issue
- Be less clever about renaming Babel helpers (#19)
- Fix cache misses in preflight check (#29)
- Use class transformer local to plugin, not project being built
- Ensure class transformer is present for preflight check, and only run check once per directory (#23)
- Fix helper renaming (#22)
- Include correct files in npm package
- Allow
transform-runtime
Babel plugin, if combined withruntimeHelpers: true
option (#17) - More permissive handling of helpers – only warn if inline helpers are duplicated
- Handle plugins that change export patterns (#18)
- Preflight checks are run per-file, to avoid configuration snafus (#16)
- Generate sourcemaps by default
- Use object-assign ponyfill
- Add travis support
- Fix test
- Babel 6 compatible
- First release