Skip to content

Commit

Permalink
add link from tests to app
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed May 27, 2024
1 parent 500f949 commit c670b4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ember-auto-import/ts/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ module.exports = (function(){
}
});
{{/each}}
{{#if needsApp}}
require('./app.cjs');
{{/if}}
})();
`,
{ noEscape: true }
Expand All @@ -107,6 +110,7 @@ module.exports = (function(){
staticTemplateImports: { key: string; args: string; template: string }[];
dynamicTemplateImports: { key: string; args: string; template: string }[];
publicAssetURL: string | undefined;
needsApp: boolean;
}) => string;

// this goes in a file by itself so we can tell webpack not to parse it. That
Expand Down Expand Up @@ -631,6 +635,7 @@ export default class WebpackBundler extends Plugin implements Bundler {
staticTemplateImports:
deps.staticTemplateImports.map(mapTemplateImports),
publicAssetURL: this.opts.rootPackage.publicAssetURL(),
needsApp: name === 'tests',
})
);
}
Expand Down

0 comments on commit c670b4d

Please sign in to comment.