forked from parcel-bundler/parcel
-
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.
Don't include the default export in static reexports (parcel-bundler#…
- Loading branch information
Will Binns-Smith
authored
Aug 10, 2021
1 parent
4df85e3
commit 2e58db8
Showing
10 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-default/a.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 @@ | ||
export {default} from './b.js'; | ||
export * from './b.js'; | ||
|
||
export {default as other} from './c.js'; | ||
export * from './c.js'; |
5 changes: 5 additions & 0 deletions
5
...s/core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-default/async.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 _default, {other} from './a.js'; | ||
|
||
sideEffectNoop(_default, other); | ||
|
||
export default _default; |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-default/b.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 default 42; |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-default/c.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 default 99; |
3 changes: 3 additions & 0 deletions
3
...s/core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-default/index.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 _default, {other} from './a.js'; | ||
|
||
output = import('./async').then(mod => mod.default); |
2 changes: 2 additions & 0 deletions
2
...ages/core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-esmodule/a.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,2 @@ | ||
module.exports.foo = 42; | ||
module.exports.__esModule = true; |
1 change: 1 addition & 0 deletions
1
.../core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-esmodule/async.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 * from './a'; |
3 changes: 3 additions & 0 deletions
3
.../core/integration-tests/test/integration/scope-hoisting/es6/no-reexport-esmodule/index.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 * as a from './a.js'; | ||
|
||
output = import('./async').then(mod => mod.__esModule); |
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