Skip to content

Commit

Permalink
Adding allowDeclareFields to the preset doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 27, 2023
1 parent cfd1fcd commit 7519e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions 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", { "allExtensions": true, "onlyRemoveTypeImports": true }]],
<% } %> "plugins": [
<% if (typescript) { %> "presets": [["@babel/preset-typescript", { "allExtensions": true, "onlyRemoveTypeImports": true, "allowDeclareFields": true }]],
<% } %>
"plugins": [
"@embroider/addon-dev/template-colocation-plugin",
"@babel/plugin-transform-class-static-block",
["babel-plugin-ember-template-compilation", {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { service } from '@ember/service';
import Example from '../services/example';
import type Example from '../services/example.ts';

export default class CoLocatedTs extends Component {
@service declare example: Example;
Expand Down

0 comments on commit 7519e96

Please sign in to comment.