Skip to content

Commit

Permalink
Merge pull request #117 from embroider-build/ts-needs-to-allow-declar…
Browse files Browse the repository at this point in the history
…e-fields

allowDeclareFields for TS projects, by default
  • Loading branch information
NullVoxPopuli authored May 22, 2023
2 parents f8dbfa4 + 3e42322 commit 765beed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/__addonLocation__/babel.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
<% if (typescript) { %> "presets": [["@babel/preset-typescript"]],
<% } %> "plugins": [
<% } %> "plugins": [<% if (typescript) { %>
["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],<% } %>
"@embroider/addon-dev/template-colocation-plugin",
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties"
Expand Down

0 comments on commit 765beed

Please sign in to comment.