Skip to content

Commit

Permalink
feat: Babel 7.19 - [BREAKING]
Browse files Browse the repository at this point in the history
Updated babel plugin decorators to 7.19 and updated config to use
version "2022-03" (breaking).
See
https://babeljs.io/blog/2022/09/05/7.19.0#stage-3-decorators-14836httpsgithubcombabelbabelpull14836
and https://github.com/tc39/proposal-decorators for more information about changes.

Added new plugin: @babel/plugin-proposal-duplicate-named-capturing-groups-regex

Signed-off-by: Johannes Tegnér <[email protected]>
  • Loading branch information
Johannestegner committed Sep 6, 2022
1 parent 47232c6 commit 127a292
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 272 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = declare((api, options) => {
isNotExcluded('decorators', () => [
require('@babel/plugin-proposal-decorators'), {
decoratorsBeforeExport: setOr(opts.decorators.beforeExport, true),
version: setOr(opts.decorators.version, '2018-09'),
version: setOr(opts.decorators.version, '2022-03'),
}
]),
isNotExcluded('transform-runtime', () => [
Expand Down Expand Up @@ -100,7 +100,9 @@ module.exports = declare((api, options) => {
isNotExcluded('throw-expressions', () =>
require('@babel/plugin-proposal-throw-expressions')),
isNotExcluded('object-assign', () =>
require('@babel/plugin-transform-object-assign'))
require('@babel/plugin-transform-object-assign')),
isNotExcluded('duplicate-named-capturing-groups-regex', () =>
require('@babel/plugin-proposal-duplicate-named-capturing-groups-regex'))
].filter(p => p !== null)
};
});
Loading

0 comments on commit 127a292

Please sign in to comment.