We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5195674 commit 6dc8bbeCopy full SHA for 6dc8bbe
1 file changed
src/node-main.ts
@@ -57,7 +57,17 @@ async function handleNodeSpecificOptions(opts: Options): Promise<SharedOptions>
57
assertTemplateCompiler(opts.compiler);
58
compiler = opts.compiler;
59
} else if ((opts.targetFormat ?? 'wire') === 'wire') {
60
- let mod: any = await cwdImport('ember-source/dist/ember-template-compiler.js');
+ let mod: any;
61
+ try {
62
+ // the newer path
63
+ mod = await cwdImport('ember-source/ember-template-compiler/index.js');
64
+ } catch (err: any) {
65
+ if (err.code !== 'ERR_MODULE_NOT_FOUND') {
66
+ throw err;
67
+ }
68
+ // the deprecated path
69
+ mod = await cwdImport('ember-source/dist/ember-template-compiler.js');
70
71
assertTemplateCompiler(mod);
72
compiler = mod;
73
}
0 commit comments