← Winnitude! Search  ·  Reader Mode (1307 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 19 LINKS

fix(vite): preserve project module suffixes during typecheck by NginxL · Pull Request #11729 · NativeScript/NativeScript

Repository navigation

fix(vite): preserve project module suffixes during typecheck - #11729


Draft
NginxL wants to merge 1 commit into NativeScript:main from NginxL:fix/typecheck-project-module-suffixes-11480
Draft

fix(vite): preserve project module suffixes during typecheck #11729 NginxL wants to merge 1 commit into NativeScript:main from NginxL:fix/typecheck-project-module-suffixes-11480

Conversation

NginxL commented Dec 6, 2026



Copy link Copy Markdown

Current behavior

The Vite type-check config always replaces the project's moduleSuffixes with the NativeScript platform defaults. Custom tiers such as .mobile are therefore omitted, and valid imports can fail with TS2307 during ns 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 --check passed.
  • Added preserves custom module suffixes from the project tsconfig to typescript-check.spec.ts.
  • Vitest and TypeScript compilation were not run locally because workspace dependencies are not installed and this run does not install new dependencies. CI results are pending.

PR checklist

  • PR title follows the conventional-commit guidelines.
  • Existing issue linked above.
  • CLA signed; I will complete the repository's CLA flow if the bot requests it.
  • All existing tests passing locally -- not run in this environment.
  • Regression test included.

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.

fix(vite): preserve project module suffixes during typecheck 4eecdfc
Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>

NginxL commented Dec 6, 2026



Copy link Copy Markdown
Author

I have read the CLA and I hereby sign the CLA

github-actions
Bot
commented Dec 6, 2026



Copy link Copy Markdown
Contributor

Thanks @NginxL -- your signature on this PR satisfies the CLA check, and you'll be recorded on the cla-signatures branch after this PR merges. The CLA check will include this signing comment on its next run.

This branch has not been deployed


No deployments
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

1 participant