Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework test to check hashes and contents of all files and throw if two
files with different content share the same hash; fix another issue for exports that was uncovered by this.
- Loading branch information
1 parent
ac50033
commit 8c65e47
Showing
34 changed files
with
54 additions
and
89 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
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main1-0d1fa73e-amd.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(['./chunk-main2-0a527b43-amd.js'], function (main2) { 'use strict'; | ||
|
||
main2.log(main2.dep); | ||
|
||
}); |
5 changes: 0 additions & 5 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main1-843c034d-amd.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main2-237cd19a-amd.js
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main2-adf6abe8-amd.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,7 @@ | ||
define(['./chunk-main2-0a527b43-amd.js'], function (main2) { 'use strict'; | ||
|
||
|
||
|
||
return main2.log; | ||
|
||
}); |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main1-0dfd3e0e-cjs.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'; | ||
|
||
var main2 = require('./chunk-main2-328c93f2-cjs.js'); | ||
|
||
main2.log(main2.dep); |
5 changes: 0 additions & 5 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main1-8470b59b-cjs.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main2-adea0dbb-cjs.js
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main2-b34781c2-cjs.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,7 @@ | ||
'use strict'; | ||
|
||
var main2 = require('./chunk-main2-328c93f2-cjs.js'); | ||
|
||
|
||
|
||
module.exports = main2.log; |
File renamed without changes.
3 changes: 0 additions & 3 deletions
3
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main1-a05c10d4-esm.js
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main1-a2c4132e-esm.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 { a as log, b as dep } from './chunk-main2-d7d48284-esm.js'; | ||
|
||
log(dep); |
1 change: 0 additions & 1 deletion
1
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main2-2206abfa-esm.js
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main2-bc7681ae-esm.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 @@ | ||
export { a as default } from './chunk-main2-d7d48284-esm.js'; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ted/system/entry-main1-ea6917a8-system.js → ...ted/system/entry-main1-4e36d280-system.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
2 changes: 1 addition & 1 deletion
2
...ted/system/entry-main2-f2a7f0d8-system.js → ...ted/system/entry-main2-ebb140d8-system.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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 |
---|---|---|
|
@@ -11,6 +11,5 @@ module.exports = { | |
output: { | ||
banner: 'console.log(2);' | ||
} | ||
}, | ||
expectedDifferentHashes: ['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
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
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 |
---|---|---|
|
@@ -5,6 +5,5 @@ module.exports = { | |
}, | ||
options2: { | ||
input: ['main2', 'other'] | ||
}, | ||
expectedDifferentHashes: ['chunk'] | ||
} | ||
}; |
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
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 |
---|---|---|
|
@@ -11,6 +11,5 @@ module.exports = { | |
output: { | ||
footer: 'console.log(2);' | ||
} | ||
}, | ||
expectedDifferentHashes: ['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 |
---|---|---|
|
@@ -11,6 +11,5 @@ module.exports = { | |
output: { | ||
format: 'cjs' | ||
} | ||
}, | ||
expectedDifferentHashes: ['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 |
---|---|---|
|
@@ -11,6 +11,5 @@ module.exports = { | |
output: { | ||
intro: 'console.log(2);' | ||
} | ||
}, | ||
expectedDifferentHashes: ['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 |
---|---|---|
|
@@ -11,6 +11,5 @@ module.exports = { | |
output: { | ||
outro: 'console.log(2);' | ||
} | ||
}, | ||
expectedDifferentHashes: ['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