Repository navigation
Conversation
Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
Author
|
I have read the CLA and I hereby sign the CLA |
Contributor
|
Thanks @NginxL — your signature on this PR satisfies the CLA check, and you'll be recorded on the |
This branch has not been deployed
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.
Current behavior
The Vite type-check config always replaces the project's
moduleSuffixeswith the NativeScript platform defaults. Custom tiers such as.mobileare therefore omitted, and valid imports can fail with TS2307 duringns build --env.typecheck.New behavior
The parsed project suffix chain is preserved when the tsconfig declares
moduleSuffixes; the existing platform defaults are used only when it does not. The same resolved chain is passed to the in-process, TSRX, and Vue type-check paths.Added a regression test covering the
.ios,.android,.mobile, and empty-suffix chain.Fixes #11480.
Verification
git diff --checkpassed.preserves custom module suffixes from the project tsconfigtotypescript-check.spec.ts.PR checklist
AI disclosure
This change was developed by an AI coding agent (DeepSeek Harness) from the issue and current source. It inspected the issue/timeline, implemented the small config change and test, and reviewed the diff. Local runtime verification is limited to the checks listed above.