I’m trying to leverage Webpack’s chunk splitting. I have the base path set during runtime and when I reload the extension Webpack throws an error that it can’t load the file.
ChunkLoadError: "Loading chunk 15 failed.
(missing: moz-extension://85094c37-3d57-eb45-96f7-8f07e85e8ba1/scripts/15.js)"
I can copy that path, open it in a new tab, and see the file just fine. So I’m not really sure why Webpack is saying that it can’t find the file, other than it may not like the moz-extension
protocol?
On a similar note, I have the content scripts injected at document_start
, when I do a tab refresh Webpack throws this fun little error TypeError: "document.head is null"
. Which I know what it’s complaining about, but not sure how to properly handle it.