feat: throw friendly warning message for ambiguous export#1634
Merged
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
Member
|
Can you fix all compilation errors before we can push forward? |
Co-authored-by: IWANABETHATGUY <974153916@qq.com>
hyf0
reviewed
Jul 16, 2024
hyf0
reviewed
Jul 16, 2024
Member
|
This is fine to be merged. Could you run |
Member
diff --git a/crates/rolldown/tests/esbuild/dce/disable_tree_shaking/_config.json b/crates/rolldown/tests/esbuild/dce/disable_tree_shaking/_config.json
index cc39d9bb..94d0fe2d 100644
--- a/crates/rolldown/tests/esbuild/dce/disable_tree_shaking/_config.json
+++ b/crates/rolldown/tests/esbuild/dce/disable_tree_shaking/_config.json
@@ -8,7 +8,7 @@
],
"treeshake": false,
"external": [
- "react"
+ "react/jsx-runtime"
]
},
"expectExecuted": falseto avoid changes of crates/rolldown/tests/esbuild/dce/disable_tree_shaking/artifacts.snap |
hyf0
reviewed
Jul 16, 2024
hyf0
reviewed
Jul 16, 2024
| --- | ||
| # warnings | ||
|
|
||
| ## AMBIGUOUS_EXTERNAL_NAMESPACES |
Member
There was a problem hiding this comment.
Esbuild treats this as an error and has better report. Let's merge this PR for now. I'll open an new issue to port esbuild's behavior.
…espace/_config.json Co-authored-by: Yunfei He <i.heyunfei@gmail.com>
auto-merge was automatically disabled
July 16, 2024 08:57
Head branch was pushed to by a user without write access
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jul 16, 2024
<!-- Thank you for contributing! --> ### Description 1. follow #1634, since we have https://github.com/rolldown/rolldown/pull/1634/files#diff-f68450ab0a8cfe082912fd82beb770be4085872ef174fd398796eb4eff2e8aceR237. <!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1621.
Closes #397.