|
1 | | -<% if (warpDrive) { %>import '@warp-drive/ember/install';<% } %><% if (compat) { %> |
| 1 | +<% if (warpDrive) { %>import '@warp-drive/ember/install';<% } %> |
2 | 2 | import Application from '@ember/application'; |
3 | 3 | import compatModules from '@embroider/virtual/compat-modules'; |
4 | 4 | import Resolver from 'ember-resolver'; |
5 | | -import loadInitializers from 'ember-load-initializers';<% } else { %> |
6 | | - import Application from 'ember-strict-application-resolver';<% } %> |
7 | | -import config from '<%= modulePrefix %>/config/environment';<% if (notMinimal) { %> |
8 | | -import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';< } %> |
| 5 | +import loadInitializers from 'ember-load-initializers'; |
| 6 | +import config from '<%= modulePrefix %>/config/environment'; |
| 7 | +import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros'; |
9 | 8 | import setupInspector from '@embroider/legacy-inspector-support/ember-source-4.12'; |
10 | 9 |
|
11 | | -<% if (notMinimal) { %> |
12 | 10 | if (macroCondition(isDevelopingApp())) { |
13 | 11 | importSync('./deprecation-workflow'); |
14 | 12 | } |
15 | | -<% } %> |
16 | | - |
17 | 13 |
|
18 | 14 | export default class App extends Application { |
19 | | -<% if (compat) {%> modulePrefix = config.modulePrefix; |
| 15 | + modulePrefix = config.modulePrefix; |
20 | 16 | podModulePrefix = config.podModulePrefix; |
21 | 17 | Resolver = Resolver.withModules(compatModules); |
22 | | -<% } %> inspector = setupInspector(this); |
23 | | -<% if (noCompat) { %> |
24 | | - modules = { |
25 | | - ...import.meta.glob('./router', { eager: true }), |
26 | | - ...import.meta.glob('./templates/**/*', { eager: true }), |
27 | | - } |
28 | | -<% } %> |
| 18 | + inspector = setupInspector(this); |
29 | 19 | } |
30 | | -<% if (compat) { %> |
| 20 | + |
31 | 21 | loadInitializers(App, config.modulePrefix, compatModules); |
32 | | -<% } %> |
0 commit comments