Closed Daniel15 closed 8 years ago
Yes it's possible. But as you said though, reliably getting a reference to Immutable is tricky.
blocked by #20
@mattzeunert's extension (https://chrome.google.com/webstore/detail/immutablejs-object-format/hgldghadipiblonfkkicmgcbbijnpeog) works pretty well, closing this out.
It would be handy to have this as a bookmarklet, so I could instantly inject it into a page that uses immutable-js without having to edit the site's code to pull this library in. Would that be possible? It looks like the formatter just needs to be added to the
window.devtoolsFormatters
array in the page's context. I guess the hard bit would be actually getting the reference to Immutable-js - It could probably assume there's either anImmutable
global (eg. using immutable-js from CDN), orrequire('immutable')
pulls it in (on some sites with CommonJS requires, eg. on Facebook).