Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support TS in templates for @vue/vue3-jest (#394)
Vue 3.2.13 introduced the support of TS expressions in templates, with a new `isTs` option of the compiler. (See [the relevant commit](vuejs/core@0dc521b)) vue-loader and vite chose to enable this by default if the script uses TS: - [vue-loader](vuejs/vue-loader@7613534) - [vite](vitejs/vite@01fa2ab) This commit enables the same behavior in vue-jest: if the script is using TS, then the `isTs` option is passed to the compiler. TS developers won't have to worry about setting the options themselves, making it coherent with what vue-loader and vite do.
- Loading branch information