readd missing space
This commit is contained in:
parent
da5c8d87aa
commit
fea0c57423
|
@ -27,9 +27,9 @@ module.exports = class RuntimeTemplate {
|
|||
}
|
||||
if(!content) return "";
|
||||
if(this.outputOptions.pathinfo) {
|
||||
return Template.toComment(content);
|
||||
return Template.toComment(content) + " ";
|
||||
} else {
|
||||
return Template.toNormalComment(content);
|
||||
return Template.toNormalComment(content) + " ";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ module.exports = class RuntimeTemplate {
|
|||
const comment = this.comment({
|
||||
message
|
||||
});
|
||||
return `Promise.resolve(${comment})`;
|
||||
return `Promise.resolve(${comment.trim()})`;
|
||||
}
|
||||
const chunks = block.chunks.filter(chunk => !chunk.hasRuntime() && chunk.id !== null);
|
||||
const comment = this.comment({
|
||||
|
@ -271,9 +271,9 @@ module.exports = class RuntimeTemplate {
|
|||
return `__webpack_require__.e(${comment}${chunkId})`;
|
||||
} else if(chunks.length > 0) {
|
||||
const requireChunkId = chunk => `__webpack_require__.e(${JSON.stringify(chunk.id)})`;
|
||||
return `Promise.all(${comment}[${chunks.map(requireChunkId).join(", ")}])`;
|
||||
return `Promise.all(${comment.trim()}[${chunks.map(requireChunkId).join(", ")}])`;
|
||||
} else {
|
||||
return `Promise.resolve(${comment})`;
|
||||
return `Promise.resolve(${comment.trim()})`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
module.exports = function() {
|
||||
let str = "";
|
||||
let sum = ["1"];
|
||||
const query = +this.query.substr(1);
|
||||
for(let i = 0; i < query; i++) {
|
||||
str += `import b${i} from "./b?${Math.floor(i/2)}!";\n`;
|
||||
sum.push(`b${i}`);
|
||||
}
|
||||
str += "export default " + sum.join(" + ");
|
||||
return str;
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
Hash: 8f74408892465f3dc6d5
|
||||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.bundle.js 529 bytes 0 [emitted]
|
||||
0.bundle.js 530 bytes 0 [emitted]
|
||||
1.bundle.js 394 bytes 1 [emitted]
|
||||
2.bundle.js 781 bytes 2 [emitted]
|
||||
bundle.js 7.54 KiB main [emitted] main
|
||||
2.bundle.js 782 bytes 2 [emitted]
|
||||
bundle.js 7.55 KiB main [emitted] main
|
||||
chunk {main} bundle.js (main) 73 bytes [entry] [rendered]
|
||||
> main [./index.js] ./index.js
|
||||
[./a.js] 22 bytes {main} [built]
|
||||
|
|
|
@ -2,9 +2,9 @@ Hash: ee41f06ebdd1a9a95e6a
|
|||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.bundle.js 152 bytes 0 [emitted]
|
||||
1.bundle.js 288 bytes 1 [emitted]
|
||||
1.bundle.js 289 bytes 1 [emitted]
|
||||
2.bundle.js 227 bytes 2 [emitted]
|
||||
bundle.js 6.96 KiB 3 [emitted] main
|
||||
bundle.js 6.97 KiB 3 [emitted] main
|
||||
chunk {0} 0.bundle.js 22 bytes {3} [rendered]
|
||||
> [4] ./index.js 2:0-16
|
||||
[2] ./b.js 22 bytes {0} [built]
|
||||
|
|
|
@ -4,9 +4,9 @@ Child normal:
|
|||
1.bundle.js 815 bytes 1 [emitted] x2
|
||||
2.bundle.js 1.07 KiB 2 [emitted] x3
|
||||
3.bundle.js 1.33 KiB 3 [emitted] x4
|
||||
4.bundle.js 864 bytes 4 [emitted] x5
|
||||
4.bundle.js 865 bytes 4 [emitted] x5
|
||||
5.bundle.js 1.04 KiB 5 [emitted] xx5
|
||||
bundle.js 7.05 KiB 6 [emitted] main
|
||||
bundle.js 7.06 KiB 6 [emitted] main
|
||||
chunk {0} 0.bundle.js (x1) 14 bytes {6} [rendered]
|
||||
> x1 [11] ./index.js 1:0-42
|
||||
[0] ./a.js 0 bytes {0} {1} {2} {3} {4} [built]
|
||||
|
@ -49,9 +49,9 @@ Child children:
|
|||
1.bundle.js 661 bytes 1 [emitted] x2
|
||||
2.bundle.js 939 bytes 2 [emitted] x3
|
||||
3.bundle.js 1.19 KiB 3 [emitted] x4
|
||||
4.bundle.js 748 bytes 4 [emitted] x5
|
||||
4.bundle.js 749 bytes 4 [emitted] x5
|
||||
5.bundle.js 1.04 KiB 5 [emitted] xx5
|
||||
bundle.js 7.16 KiB 6 [emitted] main
|
||||
bundle.js 7.17 KiB 6 [emitted] main
|
||||
chunk {0} 0.bundle.js (x1) 14 bytes {6} [rendered]
|
||||
> x1 [11] ./index.js 1:0-42
|
||||
[6] ./x1.js 14 bytes {0} [built]
|
||||
|
@ -88,7 +88,7 @@ Child async:
|
|||
2.bundle.js 661 bytes 2 [emitted] x2
|
||||
3.bundle.js 939 bytes 3 [emitted] x3
|
||||
4.bundle.js 1.19 KiB 4 [emitted] x4
|
||||
5.bundle.js 748 bytes 5 [emitted] x5
|
||||
5.bundle.js 749 bytes 5 [emitted] x5
|
||||
6.bundle.js 1.04 KiB 6 [emitted] xx5
|
||||
bundle.js 7.25 KiB 7 [emitted] main
|
||||
chunk {0} 0.bundle.js 0 bytes {7} [rendered]
|
||||
|
@ -132,9 +132,9 @@ Child deep-children:
|
|||
1.bundle.js 661 bytes 1 [emitted] x2
|
||||
2.bundle.js 881 bytes 2 [emitted] x3
|
||||
3.bundle.js 1.13 KiB 3 [emitted] x4
|
||||
4.bundle.js 748 bytes 4 [emitted] x5
|
||||
4.bundle.js 749 bytes 4 [emitted] x5
|
||||
5.bundle.js 1020 bytes 5 [emitted] xx5
|
||||
bundle.js 7.28 KiB 6 [emitted] main
|
||||
bundle.js 7.29 KiB 6 [emitted] main
|
||||
chunk {0} 0.bundle.js (x1) 14 bytes {6} [rendered]
|
||||
> x1 [11] ./index.js 1:0-42
|
||||
[6] ./x1.js 14 bytes {0} [built]
|
||||
|
|
|
@ -15,7 +15,7 @@ Child
|
|||
Hash: f4bf5583ae34c4fb7657
|
||||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.bundle.js 926 bytes 0 [emitted]
|
||||
0.bundle.js 928 bytes 0 [emitted]
|
||||
bundle.js 7.12 KiB 1 [emitted] main
|
||||
chunk {0} 0.bundle.js 118 bytes {1} [rendered]
|
||||
[0] ./d.js 22 bytes {0} [built]
|
||||
|
@ -29,7 +29,7 @@ Child
|
|||
Hash: 31d10387e7bad2352849
|
||||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.bundle.js 788 bytes 0 [emitted]
|
||||
0.bundle.js 790 bytes 0 [emitted]
|
||||
1.bundle.js 245 bytes 1 [emitted]
|
||||
bundle.js 7.12 KiB 2 [emitted] main
|
||||
chunk {0} 0.bundle.js 74 bytes {2} [rendered]
|
||||
|
@ -47,7 +47,7 @@ Child
|
|||
Asset Size Chunks Chunk Names
|
||||
0.bundle.js 236 bytes 0 [emitted]
|
||||
1.bundle.js 245 bytes 1 [emitted]
|
||||
2.bundle.js 617 bytes 2 [emitted]
|
||||
2.bundle.js 619 bytes 2 [emitted]
|
||||
bundle.js 7.11 KiB 3 [emitted] main
|
||||
chunk {0} 0.bundle.js 44 bytes {2} {3} [rendered]
|
||||
[0] ./d.js 22 bytes {0} [built]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Asset Size Chunks Chunk Names
|
||||
0.js 817 bytes 0 [emitted] async3
|
||||
1.js 817 bytes 1 [emitted] async1
|
||||
2.js 817 bytes 2 [emitted] async2
|
||||
0.js 818 bytes 0 [emitted] async3
|
||||
1.js 818 bytes 1 [emitted] async1
|
||||
2.js 818 bytes 2 [emitted] async2
|
||||
e1.js 7.94 KiB 3 [emitted] e1
|
||||
e2.js 7.96 KiB 4 [emitted] e2
|
||||
e3.js 7.98 KiB 5 [emitted] e3
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Hash: 9ba7ce8e004fc375bd9e
|
||||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
chunk-containing-__a_js.js 464 bytes chunk-containing-__a_js [emitted]
|
||||
chunk-containing-__a_js.js 465 bytes chunk-containing-__a_js [emitted]
|
||||
chunk-containing-__b_js.js 173 bytes chunk-containing-__b_js [emitted]
|
||||
entry.js 7.13 KiB entry [emitted] entry
|
||||
[0] ./modules/b.js 22 bytes {chunk-containing-__b_js} [built]
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
Hash: 9e791589c2c0542190c6
|
||||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.js 298 bytes 0 [emitted] cir1
|
||||
0.js 299 bytes 0 [emitted] cir1
|
||||
1.js 183 bytes 1 [emitted] ab
|
||||
2.js 277 bytes 2, 1 [emitted] abd
|
||||
3.js 310 bytes 3 [emitted] cir2
|
||||
3.js 311 bytes 3 [emitted] cir2
|
||||
4.js 190 bytes 4, 6 [emitted] chunk
|
||||
5.js 370 bytes 5, 3 [emitted] cir2 from cir1
|
||||
5.js 371 bytes 5, 3 [emitted] cir2 from cir1
|
||||
6.js 130 bytes 6 [emitted] ac in ab
|
||||
main.js 7.67 KiB 7 [emitted] main
|
||||
main.js 7.68 KiB 7 [emitted] main
|
||||
chunk {0} 0.js (cir1) 81 bytes {3} {7} [rendered]
|
||||
> duplicate cir1 from cir2 [3] ./circular2.js 1:0-79
|
||||
> duplicate cir1 [8] ./index.js 13:0-54
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Time: <CLR=BOLD>X</CLR>ms
|
||||
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22><CLR=BOLD>Chunk Names</CLR>
|
||||
<CLR=32,BOLD>0.js</CLR> 152 bytes <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 288 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 289 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>2.js</CLR> 227 bytes <CLR=BOLD>2</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>main.js</CLR> 300 KiB <CLR=BOLD>3</CLR> <CLR=32,BOLD>[emitted]</CLR> main
|
||||
Entrypoint <CLR=BOLD>main</CLR> = <CLR=32,BOLD>main.js</CLR>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Time: <CLR=BOLD>X</CLR>ms
|
||||
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22> <CLR=BOLD>Chunk Names</CLR>
|
||||
<CLR=32,BOLD>0.js</CLR> 152 bytes <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 288 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 289 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>2.js</CLR> 227 bytes <CLR=BOLD>2</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=33,BOLD>main.js</CLR> <CLR=33,BOLD>300 KiB</CLR> <CLR=BOLD>3</CLR> <CLR=32,BOLD>[emitted]</CLR> <CLR=33,BOLD>[big]</CLR> main
|
||||
Entrypoint <CLR=BOLD>main</CLR> <CLR=33,BOLD>[big]</CLR> = <CLR=32,BOLD>main.js</CLR>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Time: <CLR=BOLD>X</CLR>ms
|
||||
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22> <CLR=BOLD>Chunk Names</CLR>
|
||||
<CLR=32,BOLD>0.js</CLR> 152 bytes <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 288 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 289 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>2.js</CLR> 227 bytes <CLR=BOLD>2</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=33,BOLD>main.js</CLR> <CLR=33,BOLD>300 KiB</CLR> <CLR=BOLD>3</CLR> <CLR=32,BOLD>[emitted]</CLR> <CLR=33,BOLD>[big]</CLR> main
|
||||
Entrypoint <CLR=BOLD>main</CLR> <CLR=33,BOLD>[big]</CLR> = <CLR=32,BOLD>main.js</CLR>
|
||||
|
|
|
@ -2,7 +2,7 @@ Hash: 775d1eb92a5362121009
|
|||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.js 152 bytes 0 [emitted]
|
||||
1.js 288 bytes 1 [emitted]
|
||||
1.js 289 bytes 1 [emitted]
|
||||
2.js 227 bytes 2 [emitted]
|
||||
main.js 6.96 KiB 3 [emitted] main
|
||||
Entrypoint main = main.js
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Time: <CLR=BOLD>X</CLR>ms
|
||||
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22> <CLR=BOLD>Chunk Names</CLR>
|
||||
<CLR=32,BOLD>0.js</CLR> 182 bytes <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 318 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 319 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>2.js</CLR> 257 bytes <CLR=BOLD>2</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=33,BOLD>main.js</CLR> <CLR=33,BOLD>300 KiB</CLR> <CLR=BOLD>3</CLR> <CLR=32,BOLD>[emitted]</CLR> <CLR=33,BOLD>[big]</CLR> main
|
||||
<CLR=32,BOLD>0.js.map</CLR> 250 bytes <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Time: <CLR=BOLD>X</CLR>ms
|
||||
<CLR=BOLD>Asset</CLR> <CLR=BOLD>Size</CLR> <CLR=BOLD>Chunks</CLR> <CLR=39,BOLD><CLR=22> <CLR=39,BOLD><CLR=22> <CLR=BOLD>Chunk Names</CLR>
|
||||
<CLR=32,BOLD>0.js</CLR> 152 bytes <CLR=BOLD>0</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 288 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>1.js</CLR> 289 bytes <CLR=BOLD>1</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=32,BOLD>2.js</CLR> 227 bytes <CLR=BOLD>2</CLR> <CLR=32,BOLD>[emitted]</CLR>
|
||||
<CLR=33,BOLD>main.js</CLR> <CLR=33,BOLD>300 KiB</CLR> <CLR=BOLD>3</CLR> <CLR=32,BOLD>[emitted]</CLR> <CLR=33,BOLD>[big]</CLR> main
|
||||
[0] <CLR=BOLD>./d.js</CLR> 22 bytes {<CLR=33,BOLD>2</CLR>}<CLR=32,BOLD> [built]</CLR>
|
||||
|
|
|
@ -2,7 +2,7 @@ Hash: 775d1eb92a5362121009
|
|||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.js 152 bytes 0 [emitted]
|
||||
1.js 288 bytes 1 [emitted]
|
||||
1.js 289 bytes 1 [emitted]
|
||||
2.js 227 bytes 2 [emitted]
|
||||
main.js 6.96 KiB 3 [emitted] main
|
||||
[0] ./d.js 22 bytes {2} [built]
|
||||
|
|
|
@ -2,7 +2,7 @@ Hash: 775d1eb92a5362121009
|
|||
Time: Xms
|
||||
Asset Size Chunks Chunk Names
|
||||
0.js 152 bytes 0 [emitted]
|
||||
1.js 288 bytes 1 [emitted]
|
||||
1.js 289 bytes 1 [emitted]
|
||||
2.js 227 bytes 2 [emitted]
|
||||
main.js 6.96 KiB 3 [emitted] main
|
||||
Entrypoint main = main.js
|
||||
|
|
Loading…
Reference in New Issue