ember-inspector icon indicating copy to clipboard operation
ember-inspector copied to clipboard

Public API for 3rd party integration

Open lifeart opened this issue 1 year ago • 2 comments

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 this compat file: https://github.com/lifeart/demo-ember-vite/blob/master/src/config/inspector.ts
  • Glimmer like runtime, with created from scratch boot logic: 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.

lifeart avatar Jan 13 '24 18:01 lifeart

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

patricklx avatar Jan 13 '24 23:01 patricklx