{"library":"babel-preset-typescript-vue","type":"library","category":null,"description":"This package, `babel-preset-typescript-vue` (version 1.1.1, last updated in early 2020), provides a Babel 7.x preset specifically designed to enable TypeScript transpilation within Vue.js Single File Components (SFCs). It serves as a specialized drop-in replacement for `@babel/preset-typescript`, addressing an architectural limitation in `vue-loader` that historically prevented the standard TypeScript preset from correctly processing `<script lang=\"ts\">` blocks within `.vue` files. The preset identifies `.vue` files with the `lang=\"ts\"` attribute and explicitly applies `@babel/plugin-transform-typescript`, ensuring that ES6+ TypeScript syntax is correctly transpiled to a compatible JavaScript version. Its primary differentiator is this targeted fix for Vue SFCs, which was a common challenge during the transition to Babel-based TypeScript transpilation in Vue 2 projects. Given its niche role as a workaround, its relevance is tied to older `vue-loader` versions, and it is largely considered stable with no active development or planned releases.","language":"javascript","status":"abandoned","version":"1.1.1","tags":["javascript","babel-preset","typescript","vue"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-preset-typescript-vue","imports":["module.exports = { presets: ['babel-preset-typescript-vue'] }","module.exports = { presets: [['babel-preset-typescript-vue', { isTSX: false, allExtensions: true }]] }","module.exports = { presets: [require.resolve('babel-preset-typescript-vue')] }"]},{"cmd":"yarn add babel-preset-typescript-vue","imports":[]},{"cmd":"pnpm add babel-preset-typescript-vue","imports":[]}],"homepage":null,"github":"https://github.com/pawelgabryelewicz/babel-preset-typescript-vue","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-preset-typescript-vue","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-vue/compatibility"}}