Skip to content

Commit

Permalink
feat (new app-boot): cleanup virtual entrypoint template
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCutOfficial committed Jun 26, 2024
1 parent ced381a commit 6c4314c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/core/src/virtual-entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ export function renderEntrypoint(
}

const entryTemplate = compile(`
import { importSync as i, macroCondition, getGlobalConfig } from '@embroider/macros';
let w = window;
import { macroCondition, getGlobalConfig } from '@embroider/macros';
import environment from './config/environment';
Expand Down Expand Up @@ -197,7 +196,7 @@ let exportFastbootModules = {};
{{#if lazyRoutes}}
w._embroiderRouteBundles_ = [
window._embroiderRouteBundles_ = [
{{#each lazyRoutes as |route|}}
{
names: {{json-stringify route.names}},
Expand All @@ -210,7 +209,7 @@ w._embroiderRouteBundles_ = [
{{/if}}
{{#if lazyEngines}}
w._embroiderEngineBundles_ = [
window._embroiderEngineBundles_ = [
{{#each lazyEngines as |engine|}}
{
names: {{json-stringify engine.names}},
Expand Down

0 comments on commit 6c4314c

Please sign in to comment.