fix: report module name when require fails in sandboxed renderers (#17704)

This commit is contained in:
Milan Burda
2019-04-10 03:00:45 +02:00
committed by Shelley Vohr
parent 042f24c5b6
commit 46a1ce8117

View File

@@ -100,7 +100,7 @@ function preloadRequire (module) {
if (remoteModules.has(module)) {
return require(module)
}
throw new Error('module not found')
throw new Error(`module not found: ${module}`)
}
switch (window.location.protocol) {