Skip to content

Commit dcfe3cc

Browse files
committed
Remove webpack/bootstrap hash in source map
Before this change, a hash was appended to `webpack:///webpack/bootstrap` and appeared in source maps' `sources`. Before: ```js {"version":3,"sources":["webpack:///webpack/bootstrap a0df2f8d793658baad72",… ``` Now: ```js {"version":3,"sources":["webpack:///webpack/bootstrap",… ``` Quoting @sokra: > Send a PR to remove this hash in the next branch. It's not needed anyway... Fix webpack#6082
1 parent dc7460f commit dcfe3cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MainTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module.exports = class MainTemplate extends Template {
249249
buf.push(this.asString(this.hooks.requireExtensions.call("", chunk, hash)));
250250
buf.push("");
251251
buf.push(this.asString(this.hooks.startup.call("", chunk, hash)));
252-
let source = this.hooks.render.call(new OriginalSource(this.prefix(buf, " \t") + "\n", `webpack/bootstrap ${hash}`), chunk, hash, moduleTemplate, dependencyTemplates);
252+
let source = this.hooks.render.call(new OriginalSource(this.prefix(buf, " \t") + "\n", "webpack/bootstrap"), chunk, hash, moduleTemplate, dependencyTemplates);
253253
if(chunk.hasEntryModule()) {
254254
source = this.hooks.renderWithEntry.call(source, chunk, hash);
255255
}

0 commit comments

Comments
 (0)