Remove compat relics from vite.config.mjs
This commit is contained in:
parent
63156c403b
commit
8f52be6e0c
1 changed files with 3 additions and 14 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
// vite.config.mjs
|
// vite.config.mjs
|
||||||
// Vite configuration file for a Vue 2 webapp using the Vue 2 compatibility build.
|
|
||||||
// Vite replaces Vue CLI as the build tool. As it is designed for Vue 3, we use the
|
// Vite replaces Vue CLI as the build tool for Vue 3.
|
||||||
// @vue/compat package to enable Vue 2 maintaining compatibility syntax and features.
|
|
||||||
// Important: This is a preliminary setup, for vue2 to vue3 migration purposes.
|
|
||||||
// Note: Comments are generated to explain relevant configuration options.
|
// Note: Comments are generated to explain relevant configuration options.
|
||||||
|
|
||||||
import { fileURLToPath, URL } from "node:url";
|
import { fileURLToPath, URL } from "node:url";
|
||||||
|
|
@ -12,16 +10,7 @@ import vue from "@vitejs/plugin-vue";
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
vue({
|
vue(),
|
||||||
template: {
|
|
||||||
compilerOptions: {
|
|
||||||
// Enable Vue 2 compatibility mode.
|
|
||||||
compatConfig: {
|
|
||||||
MODE: 2,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue