From 17c205f074d2edff7d71eb65fc77aebb56710504 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 12 Nov 2024 14:08:36 +0700 Subject: [PATCH] fix config --- tsconfig.config.json | 3 ++- vite.config.ts | 51 ++++++++++++++++++++++---------------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/tsconfig.config.json b/tsconfig.config.json index 47bd2ee27..48ba8afb8 100644 --- a/tsconfig.config.json +++ b/tsconfig.config.json @@ -10,6 +10,7 @@ "composite": true, "types": ["node"], "ignoreDeprecations": "5.0", - "verbatimModuleSyntax": true + "verbatimModuleSyntax": true, + "module": "esnext" } } diff --git a/vite.config.ts b/vite.config.ts index 9393aa965..4c9d87af5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,30 +1,31 @@ -import { fileURLToPath, URL } from "node:url" +import { fileURLToPath, URL } from "node:url"; -import { defineConfig } from "vite" -import vue from "@vitejs/plugin-vue" -import vueJsx from "@vitejs/plugin-vue-jsx" -import { quasar, transformAssetUrls } from "@quasar/vite-plugin" +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; +import vueJsx from "@vitejs/plugin-vue-jsx"; +import { quasar, transformAssetUrls } from "@quasar/vite-plugin"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue({ - template: { transformAssetUrls }, - }), - quasar({ - sassVariables: "src/style/quasar-variables.sass", - }), - vueJsx(), - ], - resolve: { - alias: { - "@": fileURLToPath(new URL("./src", import.meta.url)), - }, + plugins: [ + vue({ + template: { transformAssetUrls }, + }), + quasar({ + sassVariables: "src/style/quasar-variables.sass", + }), + vueJsx(), + ], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), }, - build: { - target: "esnext", - }, - server: { - port: 3006, - }, -}) + }, + build: { + target: "esnext", + }, + server: { + port: 3006, + }, + base: "./", +});