Skip to content

Update template-compiler-test for ESM-only build#21261

Merged
NullVoxPopuli merged 1 commit intoemberjs:mainfrom
NullVoxPopuli-ai-agent:fix-node-template-compiler-test-main
Mar 28, 2026
Merged

Update template-compiler-test for ESM-only build#21261
NullVoxPopuli merged 1 commit intoemberjs:mainfrom
NullVoxPopuli-ai-agent:fix-node-template-compiler-test-main

Conversation

@NullVoxPopuli-ai-agent
Copy link
Copy Markdown

Summary

  • The legacy CJS bundle at dist/ember-template-compiler.js is being removed as part of v7 (v7 #21240)
  • 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 node tests)
  • Tests the exports that actually exist in the ESM build

Test plan

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

🤖 Generated with Claude Code

The legacy CJS bundle at `dist/ember-template-compiler.js` is being
removed. 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.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@NullVoxPopuli NullVoxPopuli mentioned this pull request Mar 28, 2026
@NullVoxPopuli NullVoxPopuli merged commit 7b212f4 into emberjs:main Mar 28, 2026
39 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.

3 participants