Skip to content

Update template-compiler-test for v7 ESM-only build#21260

Merged
NullVoxPopuli merged 1 commit intoemberjs:nvp/v7-testfrom
NullVoxPopuli-ai-agent:fix-node-template-compiler-test
Mar 28, 2026
Merged

Update template-compiler-test for v7 ESM-only build#21260
NullVoxPopuli merged 1 commit intoemberjs:nvp/v7-testfrom
NullVoxPopuli-ai-agent:fix-node-template-compiler-test

Conversation

@NullVoxPopuli-ai-agent
Copy link
Copy Markdown

Summary

  • The legacy CJS bundle at dist/ember-template-compiler.js was removed in v7 (the templateCompilerConfig() rollup entry was deleted)
  • The ESM template compiler uses minimal.ts as its entry, which exports precompile and _buildCompileOptions but not _Ember, compile, VERSION, etc.
  • Updated template-compiler-test.js to use ESM imports from ember-source/ember-template-compiler/index.js (matching the pattern used by the other converted node tests)
  • Tests the exports that actually exist in v7

Fixes the 6 node smoke test failures in #21240.

Test plan

  • Node smoke tests pass (node-node-tests scenario)

🤖 Generated with Claude Code

The legacy CJS bundle at `dist/ember-template-compiler.js` was removed
in v7. The ESM template compiler uses `minimal.ts` as its entry which
exports `precompile` and `_buildCompileOptions` but not `_Ember`.

Update the test to use ESM imports and verify the exports that actually
exist in v7.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@NullVoxPopuli NullVoxPopuli merged commit b443d1c into emberjs:nvp/v7-test Mar 28, 2026
26 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants