Commit 7ee16738 authored by timel's avatar timel Committed by Chunchi Che

chore: upgrade vite to 5.4

parent ae3bfdce
Pipeline #22809 passed with stages
in 13 minutes and 31 seconds
This diff is collapsed.
...@@ -2,7 +2,7 @@ import { defineConfig } from "vite"; ...@@ -2,7 +2,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr"; import svgr from "vite-plugin-svgr";
import ydkLoader from "vite-ydk-loader"; import ydkLoader from "vite-ydk-loader";
import tsconfigPaths from "vite-tsconfig-paths"; // import tsconfigPaths from "vite-tsconfig-paths";
import wasmPack from "vite-plugin-wasm-pack"; import wasmPack from "vite-plugin-wasm-pack";
import sassDts from "vite-plugin-sass-dts"; import sassDts from "vite-plugin-sass-dts";
import path from "path"; import path from "path";
...@@ -16,7 +16,7 @@ export default defineConfig({ ...@@ -16,7 +16,7 @@ export default defineConfig({
react(), react(),
svgr(), svgr(),
ydkLoader(), ydkLoader(),
tsconfigPaths(), // tsconfigPaths(),
wasmPack("./rust-src"), wasmPack("./rust-src"),
sassDts({ sassDts({
enabledMode: ["development"], enabledMode: ["development"],
...@@ -25,5 +25,8 @@ export default defineConfig({ ...@@ -25,5 +25,8 @@ export default defineConfig({
], ],
resolve: { resolve: {
extensions: [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json", ".ydk"], extensions: [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json", ".ydk"],
alias: {
"@": path.resolve(__dirname, "./src"),
},
}, },
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment