Skip to content

Commit

Permalink
Fix class features plugin with ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 4, 2023
1 parent 48ccc28 commit c54a75a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@ declare const PACKAGE_JSON: { name: string; version: string };
// package, but it breaks if we release x.y.z where x, y or z are
// greater than 99_999.
const version = PACKAGE_JSON.version
.replace(/-.*$/, "")
.split(".")
.reduce((v, x) => v * 1e5 + +x, 0);
const versionKey = "@babel/plugin-class-features/version";
Expand Down
Expand Up @@ -20,6 +20,7 @@ declare const PACKAGE_JSON: { name: string; version: string };
// package, but it breaks if we release x.y.z where x, y or z are
// greater than 99_999.
const version = PACKAGE_JSON.version
.replace(/-.*$/, "")
.split(".")
.reduce((v, x) => v * 1e5 + +x, 0);
const versionKey = "@babel/plugin-regexp-features/version";
Expand Down

0 comments on commit c54a75a

Please sign in to comment.