Skip to content

Commit f3012a4

Browse files
committed
better source maps
1 parent c4c0d10 commit f3012a4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/MainTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ MainTemplate.prototype.render = function(hash, chunk, moduleTemplate, dependency
3535
}
3636
var source = new ConcatSource();
3737
source.add("/******/ (function(modules) { // webpackBootstrap\n");
38-
source.add(new PrefixSource("/******/ \t", new OriginalSource(this.asString(buf), "webpackBootstrap " + hash)));
38+
source.add(new PrefixSource("/******/ \t", new OriginalSource(this.asString(buf), "webpack/bootstrap " + hash)));
3939
source.add("\n/******/ })\n");
4040
source.add("/************************************************************************/\n");
4141
source.add("/******/ (");

lib/SourceMapDevToolPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
4242
str = module.readableIdentifier(requestShortener);
4343
else
4444
str = requestShortener.shorten(source);
45-
while(str.indexOf("?") >= 0 && str.indexOf("?") < str.lastIndexOf("!"))
46-
str = str.replace(/\?/, "(query)");
45+
str = str.split("!");
46+
str = str.pop() + (str.length > 0 ? " " + str.join("!") : "");
4747
var idx;
4848
while((idx = sourceMap.sources.indexOf(str) >= 0) && (idx < i)) {
4949
str += "*";

lib/UmdMainTemplateDecorator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ UmdMainTemplateDecorator.prototype.render = function(hash, chunk, moduleTemplate
3333
) +
3434
" }\n" +
3535
" }\n" +
36-
"})(this)\n", "webpackUniversalModuleDefinition"), source);
36+
"})(this)\n", "webpack/universalModuleDefinition"), source);
3737
};
3838
UmdMainTemplateDecorator.prototype.updateHash = function(hash) {
3939
hash.update("umd");

0 commit comments

Comments
 (0)