Skip to content

Commit 89e411d

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 89e411d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/ember-addon-main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,13 @@ 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+
return require.resolve('ember-source/ember-template-compiler/index.js');
109115
},
110116

111117
astPlugins() {

0 commit comments

Comments
 (0)