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 variables
where exported under the same name
- Loading branch information
1 parent
d27c0f6
commit 55e4d5f
Showing
36 changed files
with
106 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-9704c852-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-73b654c7-amd.js'], function (main2) { 'use strict'; | ||
|
||
main2.log(main2.dep); | ||
|
||
}); |
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.
7 changes: 7 additions & 0 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/amd/entry-main2-cdcbc259-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-73b654c7-amd.js'], function (main2) { 'use strict'; | ||
|
||
|
||
|
||
return main2.log; | ||
|
||
}); |
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-820ef6a9-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-54621bac-cjs.js'); | ||
|
||
main2.log(main2.dep); |
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.
7 changes: 7 additions & 0 deletions
7
test/chunking-form/samples/filenames-patterns/_expected/cjs/entry-main2-d0d8d6ac-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-54621bac-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-a2c4132e-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-adeb05b1-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-80914649-esm.js'; | ||
|
||
log(dep); |
1 change: 1 addition & 0 deletions
1
test/chunking-form/samples/filenames-patterns/_expected/es/entry-main2-2bf51d40-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-80914649-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-66016a86-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-a1e0a5f3-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