Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/electron-webpack/src/targets/RendererTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ async function generateIndexFile(configurator: WebpackConfigurator, nodeModulePa
html = html.replace("</head>", `<script>require('module').globalPaths.push("${nodeModulePath.replace(/\\/g, "/")}")</script></head>`)
}

html = html.replace("</head>", '<script>require("source-map-support/source-map-support.js").install()</script></head>')
if (process.env.ELECTRON_WEBPACK_DISABLE_SOURCE_MAP_SUPPORT) {
Comment thread
jimmed marked this conversation as resolved.
Outdated
html = html.replace("</head>", '<script>require("source-map-support/source-map-support.js").install()</script></head>');
}

if (scripts.length) {
html = html.replace("</head>", `${scripts.join("")}</head>`)
Expand Down