Skip to content

Commit 01cbeec

Browse files
committed
Update the babel config
As suggested by the Discord
1 parent 1f24b33 commit 01cbeec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ module.exports = {
66
options: {
77
babel: {
88
// This is needed for dynamic imports to work: https://github.com/ef4/ember-auto-import#installing-ember-auto-import-in-an-addon
9-
plugins: [require.resolve('ember-auto-import/babel-plugin')],
9+
plugins: [
10+
require.resolve('ember-auto-import/babel-plugin'),
11+
// Copied from the v2 addon blueprint: https://github.com/embroider-build/addon-blueprint/blob/eef35575e7130ffe3b588ecd83c637f35fa56220/files/__addonLocation__/babel.config.json#L3
12+
["@babel/plugin-transform-typescript", { "allExtensions": true, "onlyRemoveTypeImports": true, "allowDeclareFields": true }]
13+
],
1014
},
1115
'ember-cli-babel': { enableTypeScriptTransform: true },
1216
},

0 commit comments

Comments
 (0)