diff --git a/package.json b/package.json index 9e42bc2f8c23813616270c80ce0e2dcafe5cc4fd..385d1143ebe57118f553dc7debef451e36d8f2af 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "@tiptap/suggestion": "^2.2.3", "@tiptap/vue-3": "^2.2.3", "@vitejs/plugin-vue": "^5.0.5", + "@vueuse/core": "^10.11.0", "buffer-image-size": "^0.6.4", "core-js": "^3.8.3", "daisyui": "^3.2.1", @@ -81,15 +82,19 @@ "docx": "^8.5.0", "file-saver": "^2.0.5", "jsbarcode": "^3.11.6", + "less": "^4.2.0", + "less-loader": "^12.2.0", "mitt": "^3.0.0", "print-js": "^1.6.0", "prosemirror-virtual-cursor": "^0.3.5", + "qrcode-svg": "^1.1.0", "react": "^16.14.0", "react-dom": "^16.14.0", "register-service-worker": "^1.7.2", "rfc6902": "^5.0.1", "rollup-plugin-copy": "^3.4.0", "svg64": "^2.0.0", + "tdesign-vue-next": "^1.9.8", "ts-lint": "^4.5.1", "ts-loader": "^9.4.2", "ts-morph": "^17.0.1", @@ -101,6 +106,7 @@ "v-contextmenu": "^3.0.0", "vite": "^5.3.4", "vite-plugin-dts": "^1.2.1", + "vite-plugin-svg-icons": "^2.0.1", "vite-plugin-wasm": "^3.2.2", "vite-svg-loader": "^3.1.2", "vue": "^3.4.27", diff --git a/vite.config.js b/vite.config.js index 5bef34005b4cd9a0b90d4091d5200063c4cc78d4..3fb1cca945362826955910ada924f71f8775089b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,6 +1,6 @@ import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; -const path = require("path"); +import { fileURLToPath, URL } from "node:url"; import wasm from "vite-plugin-wasm"; import topLevelAwait from "vite-plugin-top-level-await"; import VueMacros from "unplugin-vue-macros/vite"; @@ -11,12 +11,9 @@ import { createSvgIconsPlugin } from "vite-plugin-svg-icons"; // https://vitejs.dev/config/ export default defineConfig({ resolve: { - alias: [ - { - find: "@", - replacement: path.resolve(__dirname, "src") - } - ] + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)) + } }, plugins: [ VueMacros({