Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle manual chunks where the entry is not part of the module graph (#…
- Loading branch information
1 parent
66eda90
commit b6c4fd8
Showing
13 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test/chunking-form/samples/manual-chunk-not-included/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
description: 'handles manual chunks where the root is not part of the module graph', | ||
options: { | ||
input: ['main.js'], | ||
output: { | ||
manualChunks: { | ||
manual: ['manual-entry.js'] | ||
} | ||
} | ||
} | ||
}; |
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/manual-chunk-not-included/_expected/amd/generated-manual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
define((function () { 'use strict'; | ||
|
||
console.log('included'); | ||
|
||
})); |
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/manual-chunk-not-included/_expected/amd/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
define(['./generated-manual'], (function (manual) { 'use strict'; | ||
|
||
console.log('main'); | ||
|
||
})); |
3 changes: 3 additions & 0 deletions
3
test/chunking-form/samples/manual-chunk-not-included/_expected/cjs/generated-manual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict'; | ||
|
||
console.log('included'); |
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/manual-chunk-not-included/_expected/cjs/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
require('./generated-manual.js'); | ||
|
||
console.log('main'); |
1 change: 1 addition & 0 deletions
1
test/chunking-form/samples/manual-chunk-not-included/_expected/es/generated-manual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('included'); |
3 changes: 3 additions & 0 deletions
3
test/chunking-form/samples/manual-chunk-not-included/_expected/es/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import './generated-manual.js'; | ||
|
||
console.log('main'); |
10 changes: 10 additions & 0 deletions
10
test/chunking-form/samples/manual-chunk-not-included/_expected/system/generated-manual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
System.register([], (function () { | ||
'use strict'; | ||
return { | ||
execute: (function () { | ||
|
||
console.log('included'); | ||
|
||
}) | ||
}; | ||
})); |
11 changes: 11 additions & 0 deletions
11
test/chunking-form/samples/manual-chunk-not-included/_expected/system/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
System.register(['./generated-manual.js'], (function () { | ||
'use strict'; | ||
return { | ||
setters: [null], | ||
execute: (function () { | ||
|
||
console.log('main'); | ||
|
||
}) | ||
}; | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import './manual-included'; | ||
console.log('main'); |
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/manual-chunk-not-included/manual-entry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import './manual-included'; | ||
|
||
function test() {} | ||
|
||
test(); |
1 change: 1 addition & 0 deletions
1
test/chunking-form/samples/manual-chunk-not-included/manual-included.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('included'); |