Skip to content

Commit

Permalink
Update the babel config
Browse files Browse the repository at this point in the history
As suggested by the Discord
  • Loading branch information
Windvis committed May 13, 2024
1 parent 1f24b33 commit 01cbeec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ module.exports = {
options: {
babel: {
// This is needed for dynamic imports to work: https://github.com/ef4/ember-auto-import#installing-ember-auto-import-in-an-addon
plugins: [require.resolve('ember-auto-import/babel-plugin')],
plugins: [
require.resolve('ember-auto-import/babel-plugin'),
// Copied from the v2 addon blueprint: https://github.com/embroider-build/addon-blueprint/blob/eef35575e7130ffe3b588ecd83c637f35fa56220/files/__addonLocation__/babel.config.json#L3
["@babel/plugin-transform-typescript", { "allExtensions": true, "onlyRemoveTypeImports": true, "allowDeclareFields": true }]
],
},
'ember-cli-babel': { enableTypeScriptTransform: true },
},
Expand Down

0 comments on commit 01cbeec

Please sign in to comment.