본문으로 건너뛰기
· backend · 1분 읽기

TypeScript 7.0 Beta: 10배 빠른 컴파일러의 실제 마이그레이션 비용

2026년 4월 21일 Microsoft가 TypeScript 7.0 Beta를 공개했다. Project Corsa — Go 포팅 결과물이다.

타입 체킹 로직은 6.0과 동일하다. Bloomberg, Figma, Google 등에서 수개월 검증 완료.

설치와 실행

npm install -D @typescript/native-preview@beta
npx tsgo --project tsconfig.json

6.0 병렬 실행: npm install -D typescript@npm:@typescript/typescript6

VS Code에서는 TypeScript Native Preview 확장 설치 시 Language Server도 Go 기반으로 동작한다.

병렬화: —checkers와 —builders

npx tsgo --checkers 8
npx tsgo --builders 4 --checkers 4
npx tsgo --singleThreaded

tsconfig: 7.0에서 달라지는 기본값

옵션이전7.0
strictfalsetrue
modulecommonjsesnext
noUncheckedSideEffectImportsfalsetrue
rootDir(자동 감지)./
types["*"][]

types: [] 변경으로 @types/* 패키지를 명시해야 한다:

{ "compilerOptions": { "types": ["node", "jest"] } }

Hard Error로 바뀐 deprecated 옵션들

module: "amd", moduleResolution: "node", target: "es5", baseUrl 등이 컴파일 에러로 변경됐다.

baseUrl 마이그레이션:

// Before
{ "compilerOptions": { "baseUrl": "./", "paths": { "@/*": ["src/*"] } } }

// After
{ "compilerOptions": { "paths": { "@/*": ["./src/*"] } } }

마이그레이션 체크리스트

npx tsc --noEmit 2>&1 | grep -i "deprecated"

npm install -D @typescript/native-preview@beta
npx tsc --noEmit > tsc-output.txt 2>&1
npx tsgo --noEmit > tsgo-output.txt 2>&1
diff tsc-output.txt tsgo-output.txt

프로덕션에 써도 되나?

공식 발표 기준으로 “지금 당장 써도 된다”. 타입 체킹 로직은 6.0과 동일하고 대형 코드베이스에서 검증됐다.

다만 programmatic API는 아직 없다. ts-node, ts-jest, typescript-eslint 등은 7.1까지 6.0 API 의존 상태.


참고 자료

공유하기 X LinkedIn

관련 글