Skip to content

Commit

Permalink
feat(web): enable allowDeclareFields for @babel/preset-typescript (#9805
Browse files Browse the repository at this point in the history
)

* feat(web): enable allowDeclareFields for @babel/preset-typescript

* feat(web): enable allowDeclareFields for @babel/preset-typescript

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
  • Loading branch information
intellild and jaysoo committed Jun 7, 2022
1 parent f58ba59 commit 5809b8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/web/babel.ts
Expand Up @@ -56,7 +56,12 @@ module.exports = function (api: any, options: NxReactBabelPresetOptions = {}) {
loose: classProperties.loose,
},
],
require.resolve('@babel/preset-typescript'),
[
require.resolve('@babel/preset-typescript'),
{
allowDeclareFields: true,
},
],
],
plugins: [
!isNxPackage
Expand Down

0 comments on commit 5809b8b

Please sign in to comment.