fix: convert severity of missing_export diagnostic to warning when importee module is ts/tsx#4147
Merged
IWANABETHATGUY merged 1 commit intomainfrom Apr 17, 2025
Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✅ Deploy Preview for rolldown-rs canceled.
|
Member
|
Would it be more straight to just enable |
Contributor
Benchmarks Rust
|
3b73ae3 to
6ff517f
Compare
Member
Author
I think we are trying to solve different problems, |
hyf0
approved these changes
Apr 17, 2025
Member
Author
|
For potential false positive diagnostics when importee is ts or tsx we could give more clearer note message. |
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jul 29, 2025
#4147 changed the severity but it was still pushed to `self.errors` instead of `self.warnings`.
graphite-app bot
pushed a commit
that referenced
this pull request
Sep 9, 2025
) There are multiple cases that `MISSING_EXPORT` happens even when TypeScript does not output an error. 1. #4144 (comment) - This case only happens when the importer and the importee is both TS. This is because we treat `foo` as a "type" rather than a "value" (since we remove `export default foo` completely. If we treat it as a "value", we should keep that). 2. The case written in https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax (`export { A } from './a'`) - This case only happens when the importer and the importee is both TS. This is because if `A` is a "value", `A` would exist after transpilation. Both of these cases can be fixed by adding the `type` modifier. While setting `verbatimModuleSyntax: true` would make TypeScript to error on these cases, it changes some other behaviors, and is not straightforward to turn that on. This PR improves the error message, so that users can know what to do even if they don't enable `verbatimModuleSyntax`. refs #4147
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.

Description