Skip to content

Commit d60b239

Browse files
NullVoxPopuliclaude
andcommitted
Handle missing absolutePaths for ember-source v7+
ember-source v7 no longer exports `absolutePaths` from its addon entry point. Fall back to resolving the template compiler through the package exports map when `absolutePaths` is absent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8cdf98c commit d60b239

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/ember-addon-main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,14 @@ module.exports = {
105105
);
106106
}
107107

108-
return ember.absolutePaths.templateCompiler;
108+
if (ember.absolutePaths) {
109+
return ember.absolutePaths.templateCompiler;
110+
}
111+
112+
// v7+ ember-source no longer provides absolutePaths; resolve through
113+
// the package exports map
114+
// eslint-disable-next-line n/no-missing-require
115+
return require.resolve('ember-source/ember-template-compiler/index.js');
109116
},
110117

111118
astPlugins() {

0 commit comments

Comments
 (0)