forked from rollup/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(commonjs): __moduleExports in multi entry + inter dependencies (r…
…ollup#415) * fix(commonjs): __moduleExports in multi entry + inter dependencies * Added form tests outputs to .prettierignore
- Loading branch information
1 parent
ab08f47
commit b07edae
Showing
11 changed files
with
81 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test/fixtures/form/output*.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
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
9 changes: 9 additions & 0 deletions
9
packages/commonjs/test/fixtures/form/multi-entry-module-exports/_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,9 @@ | ||
module.exports = { | ||
multi: { | ||
output1: 'input1.js', | ||
output2: 'input2.js' | ||
}, | ||
importers: { | ||
output2: ['input1.js'] | ||
} | ||
}; |
4 changes: 4 additions & 0 deletions
4
packages/commonjs/test/fixtures/form/multi-entry-module-exports/input1.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,4 @@ | ||
const t2 = require('./input2.js'); | ||
|
||
console.log(t2); | ||
module.exports = 1; |
3 changes: 3 additions & 0 deletions
3
packages/commonjs/test/fixtures/form/multi-entry-module-exports/input2.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 @@ | ||
module.exports = { | ||
a: 2 | ||
}; |
8 changes: 8 additions & 0 deletions
8
packages/commonjs/test/fixtures/form/multi-entry-module-exports/output1.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,8 @@ | ||
import './input2.js'; | ||
import t2 from '_./input2.js?commonjs-proxy'; | ||
|
||
console.log(t2); | ||
var input1 = 1; | ||
|
||
export default input1; | ||
export { input1 as __moduleExports }; |
6 changes: 6 additions & 0 deletions
6
packages/commonjs/test/fixtures/form/multi-entry-module-exports/output2.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,6 @@ | ||
var input2 = { | ||
a: 2 | ||
}; | ||
|
||
export default input2; | ||
export { input2 as __moduleExports }; |
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
Binary file not shown.