From 5764934613a118f80bbd6f1572e2b114b37e4b66 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 19 Aug 2026 19:12:04 -0400 Subject: [PATCH] Point the template compiler at the package entry, not the AMD bundle ember-source 7.0 removed `dist/ember-template-compiler.js` and the exports entry for it. Its wildcard export maps `./*` to `dist/{prod,dev}/packages/*`, so the old path resolved to `dist/prod/packages/dist/ember-template-compiler.js` and the build died with "Cannot find module" before a single test ran. `ember-source/ember-template-compiler/index.js` resolves on both layouts, and exports the `precompile`, `_preprocess`, and `_buildCompileOptions` that babel-plugin-ember-template-compilation looks for. Ran locally with `ember try:one`: ember-release (7.2.0), ember-beta (7.3.0-beta.1) and ember-canary (7.4.0-alpha.1) each pass 187 tests. Default (6.11.0) still passes, and the docs app still builds. Co-Authored-By: Claude Opus 5 (1M context) --- docs-app/babel.config.cjs | 2 +- test-app/babel.config.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-app/babel.config.cjs b/docs-app/babel.config.cjs index 74dbf4f9..e9b807ac 100644 --- a/docs-app/babel.config.cjs +++ b/docs-app/babel.config.cjs @@ -15,7 +15,7 @@ module.exports = { [ 'babel-plugin-ember-template-compilation', { - compilerPath: 'ember-source/dist/ember-template-compiler.js', + compilerPath: 'ember-source/ember-template-compiler/index.js', enableLegacyModules: [ 'ember-cli-htmlbars', 'ember-cli-htmlbars-inline-precompile', diff --git a/test-app/babel.config.cjs b/test-app/babel.config.cjs index 68eb0726..a9212344 100644 --- a/test-app/babel.config.cjs +++ b/test-app/babel.config.cjs @@ -15,7 +15,7 @@ module.exports = { [ 'babel-plugin-ember-template-compilation', { - compilerPath: 'ember-source/dist/ember-template-compiler.js', + compilerPath: 'ember-source/ember-template-compiler/index.js', enableLegacyModules: ['ember-cli-htmlbars'], transforms: [...macros.templateMacros], },