Skip to content

Commit a56cada

Browse files
committed
whitespace and comment fixes
1 parent a2fdd75 commit a56cada

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/MainTemplate.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ MainTemplate.prototype.render = function(hash, chunk, moduleTemplate, dependency
2929
buf.push("// Load entry module and return exports");
3030
buf.push("return " + this.requireFn + "(0);");
3131
var source = new ConcatSource();
32-
source.add("/******/(function(modules) { // webpackBootstrap\n");
33-
source.add(new PrefixSource("/******/\t", new OriginalSource(this.asString(buf), "webpackBootstrap " + hash)));
34-
source.add("\n/******/})\n");
32+
source.add("/******/ (function(modules) { // webpackBootstrap\n");
33+
source.add(new PrefixSource("/******/ \t", new OriginalSource(this.asString(buf), "webpackBootstrap " + hash)));
34+
source.add("\n/******/ })\n");
3535
source.add("/************************************************************************/\n");
36-
source.add("({\n");
36+
source.add("/******/ ({\n");
3737
source.add(this.asString(this.renderInitModules(hash, chunk, moduleTemplate, dependencyTemplates)));
3838
source.add("\n");
3939
chunk.modules.forEach(function(module, idx) {
4040
if(idx != 0) source.add(",\n");
4141
source.add("\n/***/ " + module.id + ":\n");
4242
source.add(moduleTemplate.render(module, dependencyTemplates));
4343
});
44-
source.add("\n})");
44+
source.add("\n/******/ })");
4545
return source;
4646
};
4747

@@ -103,15 +103,15 @@ MainTemplate.prototype.renderRequireContent = function(hash, chunk) {
103103
MainTemplate.prototype.renderRequireExtensions = function(hash, chunk) {
104104
var buf = [];
105105
if(chunk.chunks.length == 0) {
106-
buf.push("// This file contains only the entry chunk.");
107-
buf.push("// The chunk loading function for additional chunks");
106+
buf.push("// The bundle contains no chunks. A empty chunk loading function.");
108107
buf.push(this.requireFn + ".e = function requireEnsure(_, callback) {");
109108
buf.push(this.indent([
110109
"callback.call(null, require);"
111110
]));
112111
buf.push("};");
113112
} else {
114-
buf.push("// The bundle contains no chunks. A empty chunk loading function.");
113+
buf.push("// This file contains only the entry chunk.");
114+
buf.push("// The chunk loading function for additional chunks");
115115
buf.push(this.requireFn + ".e = function requireEnsure(chunkId, callback) {");
116116
buf.push(this.indent(this.renderRequireEnsure(hash, chunk)));
117117
buf.push("};");
@@ -132,8 +132,8 @@ MainTemplate.prototype.renderInit = function(hash, chunk) {
132132
MainTemplate.prototype.renderInitModules = function(hash, chunk, moduleTemplate, dependencyTemplates) {
133133
var publicPath = this.outputOptions.publicPath || "";
134134
return [
135-
"// __webpack_public_path__",
136-
"c: " + JSON.stringify(publicPath.replace(Template.REGEXP_HASH, hash)) + ","
135+
"/******/ // __webpack_public_path__",
136+
"/******/ c: " + JSON.stringify(publicPath.replace(Template.REGEXP_HASH, hash)) + ","
137137
];
138138
};
139139

0 commit comments

Comments
 (0)