Skip to content

Commit

Permalink
Merge pull request #1927 from embroider-build/simplify-entrypoint
Browse files Browse the repository at this point in the history
simplify virtual entrypoint
  • Loading branch information
ef4 authored May 17, 2024
2 parents 14b84ff + 9ecc19a commit 7d1419e
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/core/src/virtual-entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ export function renderEntrypoint(
Object.assign(params, {
autoRun: resolver.options.autoRun,
appBoot,
mainModule: './app',
});
}

Expand Down Expand Up @@ -243,31 +242,17 @@ w._embroiderEngineBundles_ = [
{{/if}}
{{#if autoRun ~}}
if (!runningTests) {
i("{{js-string-escape mainModule}}").default.create(environment.APP);
}
i("./app").default.create(environment.APP);
{{else if appBoot ~}}
{{ appBoot }}
{{/if}}
{{#if testSuffix ~}}
{{!- TODO: both of these suffixes should get dynamically generated so they incorporate
any content-for added by addons. -}}
{{!- this is the traditional tests-suffix.js -}}
i('../tests/test-helper');
EmberENV.TESTS_FILE_LOADED = true;
{{/if}}
`) as (params: {
amdModules: { runtime: string; buildtime: string }[];
fastbootOnlyAmdModules?: { runtime: string; buildtime: string }[];
defineModulesFrom?: string;
eagerModules?: string[];
autoRun?: boolean;
appBoot?: string;
mainModule?: string;
testSuffix?: boolean;
lazyRoutes?: { names: string[]; path: string }[];
lazyEngines?: { names: string[]; path: string }[];
styles?: { path: string }[];
Expand Down

0 comments on commit 7d1419e

Please sign in to comment.