Skip to content

Use require.resolve instead of hardcoded dist path in patches#21265

Merged
NullVoxPopuli merged 1 commit intoemberjs:nvp/v7-testfrom
NullVoxPopuli-ai-agent:fix-require-resolve
Mar 29, 2026
Merged

Use require.resolve instead of hardcoded dist path in patches#21265
NullVoxPopuli merged 1 commit intoemberjs:nvp/v7-testfrom
NullVoxPopuli-ai-agent:fix-require-resolve

Conversation

@NullVoxPopuli-ai-agent
Copy link
Copy Markdown

Summary

Replace hardcoded dist/dev/packages/ember-template-compiler/index.js path in the ember-cli-htmlbars and ember-auto-import patches with require.resolve('ember-source/ember-template-compiler/index.js'), which resolves through the package exports map.

This makes the patches resilient to dist layout changes.

Test plan

  • Smoke tests still pass

🤖 Generated with Claude Code

Replace hardcoded `dist/dev/packages/ember-template-compiler/index.js`
with `require.resolve('ember-source/ember-template-compiler/index.js')`
which resolves through the package exports map, making the patches
resilient to dist layout changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@NullVoxPopuli NullVoxPopuli merged commit ffca3d9 into emberjs:nvp/v7-test Mar 29, 2026
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