Skip to content

Commit

Permalink
provide allowDeclareFields when BABEL_8_BREAKING is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Aug 8, 2023
1 parent a4d0942 commit ef7f351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function (api) {
onlyRemoveTypeImports: true,
optimizeConstEnums: true,
};
if (api.version.startsWith("7")) {
if (api.version.startsWith("7") && !bool(process.env.BABEL_8_BREAKING)) {
presetTsOpts.allowDeclareFields = true;
}

Expand Down

0 comments on commit ef7f351

Please sign in to comment.