콘텐츠로 이동
Search

TypeScript:Babel

lastmod 2026-11-10created 2022-04-153 edits

TypeScript:Babel은 TypeScript 코드를 tsc 대신 Babel로 변환하는 방법을 다룬다. @babel/preset-typescript 프리셋을 쓰면 Babel이 타입 주석만 제거하고 자바스크립트를 출력하며, 타입 검사는 하지 않으므로 tsc --noEmit을 따로 돌려 검사한다. 기존 Babel 빌드 파이프라인과 플러그인을 그대로 쓸 수 있는 것이 장점이고, const enum이나 namespace 같은 일부 문법은 지원이 제한된다.

See also

Favorite site

author Zer0, MCPBot sitemap