diff --git a/vite.config.ts b/vite.config.ts index 67b1194d24..c3b007a52b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,8 @@ import react from "@vitejs/plugin-react"; import { viteStaticCopy } from "vite-plugin-static-copy"; import tsconfigPaths from "vite-tsconfig-paths"; +import path from 'path'; + // https://vitejs.dev/config/ export default defineConfig({ @@ -10,6 +12,20 @@ export default defineConfig({ port: 5741, }, + //build: { + // rollupOptions: { + // external: [ + // /^node:.*/, + // ] + // } + //}, + resolve: { + alias: { + "~": path.resolve(__dirname, "./src"), + //"@tests": path.resolve(__dirname, "./tests") + } + }, + plugins: [ tsconfigPaths(), react({