ember-inspector
ember-inspector copied to clipboard
Public API for 3rd party integration
At the moment ember-inspector has bunch of initialization magic (checking for some special props to exist). It would be great to have minimal public API to avoid hacking it around. It allow us to bring ember inspector to wider community.
I had few experiments for minimal script to boot ember inspector in custom environments:
- Vite & Ember (modules) environment without
amd, works with thiscompatfile: https://github.com/lifeart/demo-ember-vite/blob/master/src/config/inspector.ts - Glimmer like runtime, with created from scratch
bootlogic: https://github.com/lifeart/glimmer-next/blob/master/src/utils/ember-inspector.ts
No call to action here, just leaving some documentation (code references) how to deal with ember-inspector in 3rd party environments.
I think it should just better integrate with ember core in an independent way. An idea here: https://github.com/emberjs/ember.js/pull/20580