Skip to content

feat(create-vite): bump TS to 5.8 #19892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ArnaudBarre
Copy link
Member

I think we should encourage the use of the new erasableSyntaxOnly flag.

I've been using (verbatimModuleSyntax)[https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax] for quite a while but never changed it here. This flag makes import elision predictable and dead simple for transformers like esbuild. It implies isolatedModules.

@ArnaudBarre ArnaudBarre changed the title feat(create-vite): TS 5.8 feat(create-vite): bump TS to 5.8 Apr 17, 2025
11hapiness

This comment was marked as spam.

11hapiness

This comment was marked as spam.

@sapphi-red sapphi-red added the feat: create-vite create-vite package label Apr 18, 2025
@@ -10,7 +10,8 @@
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"erasableSyntaxOnly": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be in the "Linting" section rather than "Bundler mode" section as it's not required for Vite. Maybe also good to add a comment that it can be disabled if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: create-vite create-vite package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants