{"library":"babel-preset-typescript-vue3","type":"library","category":null,"description":"This Babel preset, `babel-preset-typescript-vue3`, addresses a specific limitation in `vue-loader` when transpiling Vue 3 Single File Components (SFCs) with `<script lang='ts'>` using Babel 7.x. Unlike the standard `@babel/preset-typescript`, which historically ignored `.vue` files, this preset explicitly applies TypeScript transformation to SFCs where `lang='ts'` is detected. It serves as a drop-in replacement or addition to `@babel/preset-typescript` specifically for Vue 3 projects. The current stable version is 2.1.1, with recent updates including Babel 7.27.x, Vue.js 3.5.13, ES module support, and `<script setup>` support. It differentiates itself by resolving the `vue-loader` and Babel integration challenge for TypeScript SFCs, a problem the official preset did not originally handle due to filename assumptions. While its necessity might diminish with future `vue-loader` updates, it remains a crucial solution for this specific use case.","language":"javascript","status":"active","version":"2.1.1","tags":["javascript","babel","preset","typescript","vue","vue3"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-preset-typescript-vue3","imports":["presets: ['babel-preset-typescript-vue3']","presets: [['babel-preset-typescript-vue3', { /* options */ }]]","export default { presets: [...] };"]},{"cmd":"yarn add babel-preset-typescript-vue3","imports":[]},{"cmd":"pnpm add babel-preset-typescript-vue3","imports":[]}],"homepage":null,"github":"https://github.com/Coldsewoo/babel-preset-typescript-vue3","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-preset-typescript-vue3","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-preset-typescript-vue3/compatibility"}}