Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue where the same hash was generated when different variabl…
…es (#2741) where exported under the same name
- Loading branch information
1 parent
d27c0f6
commit af41561
Showing
36 changed files
with
107 additions
and
32 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: 0 additions & 5 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main1-0d1fa73e-amd.js
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main1-174b752b-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-ed4460c9-amd.js'], function (main2) { 'use strict'; | ||
|
||
main2.log(main2.dep); | ||
|
||
}); |
7 changes: 7 additions & 0 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main2-a8c16f0a-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-ed4460c9-amd.js'], function (main2) { 'use strict'; | ||
|
||
|
||
|
||
return main2.log; | ||
|
||
}); |
7 changes: 0 additions & 7 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main2-adf6abe8-amd.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
5 changes: 0 additions & 5 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main1-0dfd3e0e-cjs.js
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main1-544352cb-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-690ec2d2-cjs.js'); | ||
|
||
main2.log(main2.dep); |
7 changes: 7 additions & 0 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main2-a45eef7f-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-690ec2d2-cjs.js'); | ||
|
||
|
||
|
||
module.exports = main2.log; |
7 changes: 0 additions & 7 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main2-b34781c2-cjs.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main1-0152a638-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-88db1d1d-esm.js'; | ||
|
||
log(dep); |
3 changes: 0 additions & 3 deletions
3
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main1-a2c4132e-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-5a78ab60-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-88db1d1d-esm.js'; |
1 change: 0 additions & 1 deletion
1
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main2-bc7681ae-esm.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ted/system/entry-main1-4e36d280-system.js → ...ted/system/entry-main1-2c874064-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-ebb140d8-system.js → ...ted/system/entry-main2-dd802b9d-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
description: 'creates different hashes if different variables are exported under the same name', | ||
options1: { | ||
input: ['main1', 'dep'] | ||
}, | ||
options2: { | ||
input: ['main2', 'dep'] | ||
} | ||
}; |
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 const a = 3; |
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 @@ | ||
import { a as b } from './dep.js'; | ||
|
||
const a = 1; | ||
|
||
console.log(a, b); | ||
|
||
export { a }; |
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 @@ | ||
import { a as b } from './dep.js'; | ||
|
||
const a = 1; | ||
|
||
console.log(a, b); | ||
|
||
export { b as a }; |
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,9 @@ | ||
module.exports = { | ||
description: 'creates different hashes if different variables are exported under the same name', | ||
options1: { | ||
input: ['main1'] | ||
}, | ||
options2: { | ||
input: ['main2'] | ||
} | ||
}; |
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,6 @@ | ||
const a = 1; | ||
const b = 2; | ||
|
||
console.log(a, b); | ||
|
||
export { a }; |
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,6 @@ | ||
const a = 1; | ||
const b = 2; | ||
|
||
console.log(a, b); | ||
|
||
export { b as a }; |
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,9 @@ | ||
module.exports = { | ||
description: 'creates different hashes if generated internal exports differ', | ||
options1: { | ||
input: ['main1', 'other'] | ||
}, | ||
options2: { | ||
input: ['main2', 'other'] | ||
} | ||
}; |
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 @@ | ||
export const a = 1; | ||
export const b = 2; |
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 { b } from './dep.js'; | ||
|
||
console.log(b); |
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 } from './dep.js'; | ||
|
||
console.log(a); |
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, b } from './dep.js'; | ||
|
||
console.log(a, b); |
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