"preview": "vite preview --port 5050"
},
"dependencies": {
- "@vue/composition-api": "^1.4.0",
+ "@vue/composition-api": "^1.4.6",
"vue": "^2.6.14"
},
"devDependencies": {
- "@vitejs/plugin-legacy": "^1.6.3",
- "@vue/runtime-dom": "^3.2.22",
- "unplugin-vue2-script-setup": "^0.7.1",
- "vite": "^2.6.14",
- "vite-plugin-vue2": "^1.9.0",
+ "@vitejs/plugin-legacy": "^1.7.1",
+ "@vue/runtime-dom": "^3.2.31",
+ "unplugin-vue2-script-setup": "^0.9.3",
+ "vite": "^2.8.3",
+ "vite-plugin-vue2": "^1.9.3",
+ "vue-template-babel-compiler": "1.1.3",
"vue-template-compiler": "^2.6.14"
}
}
import { defineConfig } from 'vite'
import legacy from '@vitejs/plugin-legacy'
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
+// @ts-ignore
+import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
import scriptSetup from 'unplugin-vue2-script-setup/vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue2({
- jsx: true
+ jsx: true,
+ vueTemplateOptions: {
+ compiler: vueTemplateBabelCompiler
+ }
}),
scriptSetup(),
legacy({
},
"devDependencies": {
"@types/node": "^16.11.10",
- "typescript": "~4.5.2",
- "vue-tsc": "^0.29.6"
+ "typescript": "~4.5.5",
+ "vue-tsc": "^0.31.4"
}
}