ember.js
ember.js copied to clipboard
provide debug utilities for inspector via event communication
this would allow inspector to communicate with emberjs without relying on any globals like the define, require functions and without the barrel file. it would be required for inspector to provide more functionality when using vite or also when building with embroider webpack and staticEmberSources=true
would also like to https://github.com/glimmerjs/glimmer-vm/pull/1489 as part of this
https://github.com/emberjs/ember-inspector/pull/2554
maybe @chancancode ?
We now need this to proceed with https://github.com/emberjs/rfcs/pull/1015
For the VM side of this, https://github.com/glimmerjs/glimmer-vm/pull/1489, benchmarks are running, so we'll know if this is safe.
Are these things not already accessible via their existing private import paths?
Not with ember static source enabled. Then it's not accessible.
Biggest issue is the boot load event. https://github.com/emberjs/ember.js/blob/main/packages/ember/barrel.ts#L749
And the whole ember source needs to be loaded before inspector can access it. (With AMD) There have been multiple issues around that in the past.
E.g. https://github.com/emberjs/ember-inspector/pull/2051
As an example