Skip to content

Commit 7a0782c

Browse files
committed
add all the things that inspector currently needs to access
1 parent 0d914b9 commit 7a0782c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// eslint-disable-next-line no-var, @typescript-eslint/no-unused-vars
2+
var emberInspectorLoader: any;
3+
4+
globalThis.emberInspectorLoader = {
5+
// eslint-disable-next-line disable-features/disable-async-await
6+
async load() {
7+
// TODO we probably want to be more careful about what we expose here
8+
return {
9+
Application: (await import('@ember/application')),
10+
ApplicationNamespace: (await import('@ember/application/namespace')),
11+
Array: (await import('@ember/array')),
12+
ArrayMutable: (await import('@ember/array/mutable')),
13+
ArrayProxy: (await import('@ember/array/proxy')),
14+
Component: (await import('@ember/component')),
15+
Controller: (await import('@ember/controller')),
16+
Debug: (await import('@ember/debug')),
17+
EmberObject: (await import('@ember/object')),
18+
EnumerableMutable: (await import('@ember/enumerable/mutable')),
19+
InternalsEnvironment: (await import('@ember/-internals/environment')),
20+
InternalsMeta: (await import('@ember/-internals/meta')),
21+
InternalsMetal: (await import('@ember/-internals/metal')),
22+
InternalsUtils: (await import('@ember/-internals/utils')),
23+
Instrumentation: (await import('@ember/instrumentation')),
24+
Object: (await import('@ember/object')),
25+
ObjectCore: (await import('@ember/object/core')),
26+
ObjectInternals: (await import('@ember/object/internals')),
27+
ObjectEvented: (await import('@ember/object/evented')),
28+
ObjectObservable: (await import('@ember/object/observable')),
29+
ObjectPromiseProxyMixin: (await import('@ember/object/promise-proxy-mixin')),
30+
ObjectProxy: (await import('@ember/object/proxy')),
31+
Service: (await import('@ember/service')),
32+
VERSION: (await import('ember/version')),
33+
RSVP: (await import('rsvp')),
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)