Commit 8f1d400e authored by timel's avatar timel

chore: add ts path plugin to vite config

parent c2027b54
...@@ -3,13 +3,20 @@ import react from "@vitejs/plugin-react"; ...@@ -3,13 +3,20 @@ import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr"; import svgr from "vite-plugin-svgr";
import wasmPack from "vite-plugin-wasm-pack"; import wasmPack from "vite-plugin-wasm-pack";
import ydkLoader from "vite-ydk-loader"; import ydkLoader from "vite-ydk-loader";
import tsconfigPaths from "vite-tsconfig-paths";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
build: { build: {
minify: false, minify: false,
}, },
plugins: [react(), svgr(), wasmPack("./rust-src"), ydkLoader()], plugins: [
react(),
svgr(),
wasmPack("./rust-src"),
ydkLoader(),
tsconfigPaths(),
],
resolve: { resolve: {
extensions: [".js", ".json", ".ydk"], extensions: [".js", ".json", ".ydk"],
}, },
......
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