Skip to content

Commit

Permalink
added babel-plugin-ember-template-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
candunaj committed Mar 23, 2023
1 parent a0a29b2 commit d28d476
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/ember-auto-import/ts/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ export default class Package {
require.resolve('@babel/plugin-proposal-class-properties'),
{ loose: false },
],
ensureModuleApiPolyfill ?
[
require.resolve('babel-plugin-htmlbars-inline-precompile'),
{
Expand All @@ -536,6 +537,20 @@ export default class Package {
},
},
},
] :
[
require.resolve('babel-plugin-ember-template-compilation'),
{
// As above, we present the AST transforms in reverse order
// transforms: [...pluginInfo.plugins].reverse(),
compilerPath: require.resolve(templateCompilerPath),
enableLegacyModules: [
'ember-cli-htmlbars',
'ember-cli-htmlbars-inline-precompile',
'htmlbars-inline-precompile',
],
},
'ember-cli-htmlbars:inline-precompile',
],
...macrosConfig.babelPluginConfig(),
];
Expand Down

0 comments on commit d28d476

Please sign in to comment.