TypeScript 7 is the Go rewrite of the compiler that Microsoft has been building under the codename Corsa. The headline is speed: Microsoft's own benchmark on the VS Code codebase dropped a full type check from 77.8s to 7.5s, and editor project loads are about 8x faster. The catch is what the native compiler leaves out. The deprecated tsconfig options are gone, the old language service plugin model doesn't carry over, and any tool that imports the typescript package's JavaScript API has to be checked before you bump the version. This post covers what speeds up, what breaks, and the upgrade checklist I'd run on a React and Vite project.
What is the TypeScript native compiler?
TypeScript native compiler: a port of tsc and the language service from TypeScript (running on Node) to Go, compiled to a native binary. It type checks the same language with the same rules. It is not a new type system.
It's a port, not a redesign, so your types should behave the same way. The speed comes from two places. Native code avoids JIT warm-up, which matters a lot for cold starts. Shared-memory parallelism means parsing, binding and checking can spread across cores, which a single-threaded Node process could never do. The 10x figure you keep seeing is mostly the cold-start, full-project case. Incremental rebuilds that were already fast get faster, but less dramatically.
What actually speeds up in TypeScript 7?
The biggest gains are full tsc --noEmit runs in CI, editor start-up on large projects, and memory use. Hot-path things like HMR don't change, because Vite never type checked in the first place.
This is the part people get wrong. If your dev loop is vite dev and you never run tsc locally, TypeScript 7 won't make your app feel any faster. Vite strips types with esbuild or Oxc and never calls the checker. Here's where you will notice it:
- CI type check step: usually the slowest job in a React monorepo. Going from minutes to seconds here is the real win.
- Editor responsiveness: go-to-definition, find-all-references and error squiggles on a cold open of a big workspace.
- Pre-commit hooks: a type check in
lint-stagedstops being something people skip with--no-verify. - Memory: large projects that used to push the tsserver heap and restart it now stay well under the limit.
Measure your own baseline before upgrading so you have real numbers to compare against:
npx tsc --noEmit -p tsconfig.app.json --extendedDiagnostics | grep -E 'Total time|Memory used|Files'
What breaks when you migrate to TypeScript 7?
Three things break: tsconfig options deprecated in 6.0 are removed, tools that rely on the JavaScript compiler API or language service plugins lose support, and stricter defaults surface errors your old config was quietly hiding.
1. Deprecated tsconfig options are gone
TypeScript 6.0 was the bridge release. It deprecated a batch of options and changed several defaults. TypeScript 7 removes the deprecated options completely. If 6.0 printed deprecation warnings and you silenced them with ignoreDeprecations, they're now hard errors. The ones that show up in frontend projects:
"moduleResolution": "node"(node10): use"bundler"for Vite apps, or"nodenext"for libraries and Node code.baseUrl:pathshas resolved relative to the tsconfig since TS 4.1, so dropbaseUrland write"@/*": ["./src/*"]."target": "es5"anddownlevelIteration: if you still ship ES5, Babel or SWC should handle that, not tsc.outFileand the AMD, UMD and System module formats.
2. The types default bites everyone
This caught me out first. From 6.0 onwards, types defaults to an empty array, so @types/* packages are no longer included automatically. The symptoms are Cannot find name 'describe' in your Vitest files, or import.meta.env typed as any. The docs mention it once, in a table. The fix is to list your ambient types explicitly:
"types": ["vite/client", "vitest/globals", "node"]
3. Type-only imports under verbatimModuleSyntax
Vite transpiles each file separately, so it can't know whether import { User } from './types' is a value or a type. If you haven't done so yet, now is the time to turn on verbatimModuleSyntax. Every type-only import without the type modifier becomes an error, which sounds painful but is a mechanical fix. Biome can autofix the whole repo in one go:
npx @biomejs/biome lint --only=style/useImportType --write ./src
If you're still on ESLint, @typescript-eslint/consistent-type-imports with --fix does the same job. (If you're weighing up that choice, here's our Biome vs ESLint + Prettier comparison.)
4. Plugin and API ecosystem gaps
This is the real blocker for many teams. The native compiler has a new API model, and anything written against the old in-process JavaScript API won't simply carry over. Audit every one of these:
- Language service plugins (the
pluginsarray in tsconfig): CSS Modules typings plugins, GraphQL template plugins and styled-components helpers. Expect them to stop working in the editor. - Custom transformers via ts-patch or ttypescript. Move that work into a Vite or Babel plugin.
- Type-aware lint rules in typescript-eslint, which run on the JS compiler API.
- Framework checkers such as
vue-tsc,svelte-checkand Angular's compiler, which wrap the old API. - vite-plugin-checker in TypeScript mode, plus codegen tools built on ts-morph.
The workaround is to keep TypeScript 6.x installed as typescript for the tools that import it, and use the native binary only for type checking. It's two compilers in one lockfile, which isn't pretty, but it's a supported setup and it lets you take the speed gain now.
The TypeScript 7 upgrade checklist for React and Vite
Upgrade in this order: clean up your tsconfig on 6.x, fix your imports, audit your plugins, then switch the compiler. Each step can land as its own PR.
- Upgrade to TypeScript 6.x first and remove
ignoreDeprecations, so every warning you'd otherwise hit in 7 shows up now. - Rewrite your tsconfig to the modern baseline below: bundler resolution, explicit
types, nobaseUrl. - Turn on
verbatimModuleSyntaxand autofix type-only imports with Biome or typescript-eslint. - List every tool that imports
typescript(npm ls typescript) and decide for each one whether it stays on 6.x or gets replaced. - Take vite-plugin-checker out of the Vite config and run type checking as a separate script in parallel.
- Install the native compiler, run it on your project and diff the error output against 6.x before you change CI.
- Switch the CI type check step over and compare wall-clock times against your baseline.
Here's a tsconfig that builds cleanly on both 6.x and 7 for a standard Vite React app:
{
"compilerOptions": {
"target": "es2022",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "esnext",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"strict": true,
"noEmit": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"types": ["vite/client"],
"paths": { "@/*": ["./src/*"] }
},
"include": ["src"]
}
For step 5, a plain script is simpler and faster than any plugin:
"scripts": {
"dev": "vite",
"typecheck": "tsc --noEmit -p tsconfig.app.json",
"build": "npm run typecheck && vite build"
}
Your bundler choice doesn't change any of this, since Vite, Rspack and Turbopack all strip types without checking them. If you're reconsidering the bundler at the same time, our Vite vs Turbopack vs Rspack benchmark covers that decision.
Should you upgrade to TypeScript 7 now?
Yes, for the CI type check step in any React and Vite app that doesn't rely on language service plugins. Hold back the editor and lint tooling until the plugins you rely on support the new API.
The cost-benefit is lopsided. Steps 1 to 5 of the checklist are worth doing even if you never upgrade, because they're the config you should already have. Once they're done, switching the CI check is a one-line change with a big payoff. Where to be cautious: Vue and Svelte projects (wait for their checkers), teams with custom transformers, and anyone whose type-aware lint setup is load-bearing. If that's you, run 7 for --noEmit and keep 6.x for everything else until the ecosystem catches up.
One more practical tip: check your editor. VS Code needs the native preview extension or a workspace TypeScript setting pointing at the new server. JetBrains users should check which TypeScript service WebStorm is running, since its bundled TS integration doesn't always pick up the version in your project, and mixed versions cause errors that work on one machine and fail on another.
FAQs
Does TypeScript 7 make Vite builds faster?
Not directly. Vite strips types with esbuild or Oxc and never runs the type checker, so vite build and HMR are unchanged. You only gain if your build script runs tsc --noEmit before vite build, which most React templates do.
Can I use typescript-eslint with TypeScript 7?
Its type-aware rules depend on the JavaScript compiler API, so keep TypeScript 6.x installed as the typescript package for linting. Use the native compiler only for type checking until typescript-eslint officially supports the new API.
Why does TypeScript 7 say it cannot find describe or import.meta.env?
Since 6.0 the types option defaults to an empty array, so @types packages and ambient declarations are no longer loaded automatically. Add them explicitly, for example "types": ["vite/client", "vitest/globals"].
Is TypeScript 7 type checking different from TypeScript 6?
The native compiler is a port, not a new type system, so the same code should produce the same errors. Some edge cases, especially around inference ordering, can differ slightly, which is why you should diff the error output on 6.x and 7 before switching CI.
What replaces baseUrl in TypeScript 7?
Nothing. You don't need it. paths entries resolve relative to the tsconfig file, so write "@/*": ["./src/*"] and delete baseUrl. Vite still needs its own alias or the vite-tsconfig-paths plugin to resolve those imports at runtime.