{"library":"babel-plugin-transform-typescript","type":"library","category":null,"description":"This package, `@babel/plugin-transform-typescript`, is a core Babel plugin designed to strip TypeScript type annotations from code, transforming it into standard ECMAScript. It operates solely on the syntax level and does not perform any type-checking; users must integrate the TypeScript compiler (tsc) separately for type validation. The current stable major version is 7 (e.g., v7.29.2 as of March 2026), with active development ongoing for Babel 8, which is currently in release candidate stages (e.g., v8.0.0-rc.3). Babel maintains a frequent release cadence for patch versions and rolls out minor/major updates periodically. A key differentiator is its focus on pure syntax transformation, which makes it faster than a full TypeScript compilation but also means it explicitly does not support TypeScript-specific features like `namespace` declarations, `const enum`s, or the legacy `export =` and `import =` syntax, as these features require type information for meaningful transformation.","language":"javascript","status":"active","version":"7.0.0-alpha.19","tags":["javascript","babel-plugin","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-typescript","imports":["{\n  \"plugins\": [\n    \"@babel/plugin-transform-typescript\"\n  ]\n}","const transform = require('@babel/core').transformSync;\nconst plugin = require('@babel/plugin-transform-typescript');\n\nconst code = `const x: number = 0;`;\nconst output = transform(code, {\n  plugins: [plugin]\n}).code;","babel --plugins @babel/plugin-transform-typescript src/index.ts --out-file dist/index.js"]},{"cmd":"yarn add babel-plugin-transform-typescript","imports":[]},{"cmd":"pnpm add babel-plugin-transform-typescript","imports":[]}],"homepage":"https://babeljs.io","github":"https://github.com/babel/babel","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-typescript","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-transform-typescript/compatibility"}}