-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove type hacks since @embroider/virtual now has types
- Loading branch information
1 parent
1b6a9fb
commit e5f5a37
Showing
1 changed file
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
import Application from '@ember/application'; | ||
// @ts-expect-error - TODO: add types to compatModules | ||
import compatModules from '@embroider/core/entrypoint'; | ||
import compatModules from '@embroider/virtual/entrypoint'; | ||
import Resolver from 'ember-resolver'; | ||
import loadInitializers from 'ember-load-initializers'; | ||
import config from './config/environment'; | ||
|
||
export default class App extends Application { | ||
modulePrefix = config.modulePrefix; | ||
podModulePrefix = config.podModulePrefix; | ||
// TODO: remove lint disable when we have types for compatModules | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument | ||
Resolver = Resolver.withModules(compatModules); | ||
} | ||
|
||
// TODO: remove lint disable when we have types for compatModules | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument | ||
loadInitializers(App, config.modulePrefix, compatModules); |