File tree 2 files changed +8
-20
lines changed
2 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,10 @@ import Resolver from 'ember-resolver';
4
4
import loadInitializers from 'ember-load-initializers' ;
5
5
import config from './config/environment' ;
6
6
7
- let d = window . define ;
8
-
9
- for ( const [ name , module ] of Object . entries ( compatModules ) ) {
10
- d ( name , function ( ) {
11
- return module ;
12
- } ) ;
13
- }
14
-
15
7
export default class App extends Application {
16
8
modulePrefix = config . modulePrefix ;
17
9
podModulePrefix = config . podModulePrefix ;
18
- Resolver = Resolver ;
10
+ Resolver = Resolver . withModules ( compatModules ) ;
19
11
}
20
12
21
- loadInitializers ( App , config . modulePrefix ) ;
13
+ loadInitializers ( App , config . modulePrefix , compatModules ) ;
Original file line number Diff line number Diff line change @@ -45,13 +45,6 @@ module.exports = {
45
45
...Object . keys ( manifest . devDependencies || { } ) ,
46
46
] ;
47
47
48
- let ensureLatestDeps = [
49
- 'eslint' ,
50
- 'eslint-plugin-ember' ,
51
- 'eslint-plugin-n' ,
52
- '@babel/eslint-parser' ,
53
- ] ;
54
-
55
48
// this.addPackagesToProject doesn't respect the packageManager that the blueprint specified 🙈 so we're skipping a level here
56
49
let installTask = this . taskFor ( 'npm-install' ) ;
57
50
let uninstallTask = this . taskFor ( 'npm-uninstall' ) ;
@@ -68,8 +61,6 @@ module.exports = {
68
61
'ember-cli-dependency-checker' ,
69
62
'ember-cli-sri' ,
70
63
'ember-cli-terser' ,
71
-
72
- ...ensureLatestDeps ,
73
64
// Linting
74
65
'@babel/plugin-proposal-decorators' ,
75
66
] . filter ( ( depToRemove ) => existingDeps . includes ( depToRemove ) ) ,
@@ -89,7 +80,12 @@ module.exports = {
89
80
'@rollup/plugin-babel' ,
90
81
'decorator-transforms' ,
91
82
92
- ...ensureLatestDeps ,
83
+ 'eslint@latest' ,
84
+ 'eslint-plugin-ember@latest' ,
85
+ 'eslint-plugin-n@latest' ,
86
+ '@babel/eslint-parser@latest' ,
87
+ 'ember-resolver@latest' ,
88
+ 'ember-load-initializers@latest' ,
93
89
// Needed for eslint
94
90
'globals' ,
95
91
'babel-plugin-ember-template-compilation' ,
You can’t perform that action at this time.
0 commit comments