This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(babel-plugin-export-metadata): re-export causes meta error (#805)
* fix(babel-plugin-export-metadata): re-export causes meta error * fix(babel-plugin-export-metadata): update snapshot * fix(babel-plugin-export-metadata): re-export name to default
- Loading branch information
1 parent
500cd62
commit 9401676
Showing
10 changed files
with
245 additions
and
28 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
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
4 changes: 4 additions & 0 deletions
4
other-packages/babel-plugin-export-metadata/tests/fixtures/assets/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,4 @@ | ||
const a = 1 | ||
const ____a = 2 | ||
export { a } | ||
export default ____a |
2 changes: 2 additions & 0 deletions
2
other-packages/babel-plugin-export-metadata/tests/fixtures/re-export/re-export-default.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 @@ | ||
/* Re-export */ | ||
export { default } from '../assets/a' |
2 changes: 2 additions & 0 deletions
2
other-packages/babel-plugin-export-metadata/tests/fixtures/re-export/re-export-multi.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 @@ | ||
/* Re-export */ | ||
export aDefault, { a } from '../assets/a' |
2 changes: 2 additions & 0 deletions
2
other-packages/babel-plugin-export-metadata/tests/fixtures/re-export/re-export-rename1.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 @@ | ||
/* Re-export */ | ||
export { default as aDefault } from '../assets/a' |
2 changes: 2 additions & 0 deletions
2
other-packages/babel-plugin-export-metadata/tests/fixtures/re-export/re-export-rename2.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 @@ | ||
/* Re-export */ | ||
export { a as default } from '../assets/a' |
2 changes: 2 additions & 0 deletions
2
other-packages/babel-plugin-export-metadata/tests/fixtures/re-export/re-export-rename3.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 @@ | ||
/* Re-export */ | ||
export { a as aa } from '../assets/a' |
2 changes: 2 additions & 0 deletions
2
other-packages/babel-plugin-export-metadata/tests/fixtures/re-export/re-export.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 @@ | ||
/* Re-export */ | ||
export { a } from '../assets/a' |
Oops, something went wrong.