apollo-client-devtools
apollo-client-devtools copied to clipboard
fix: do not break Import Maps
Fix #464
@hronro: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/
Hey @hronro, thanks a ton for the PR!
I went ahead and added a commit that waits for the DOMContentLoaded event before injecting the script, just to be sure we have access to the importmap script if it's available. Tested on https://generator.jspm.io/, the AC fullstack tutorial (w/ apollo/[email protected]), and the DevTools example app (apollo/[email protected])
Will get this merged shortly pending a quick once-over
All the best, Emmanuel :-)