From 9bfe6026cb2839944c5b47ac4f8723f62d52a288 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 18 Sep 2024 20:45:39 -0400 Subject: [PATCH] change build configs --- vite.config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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({