Merge pull request #24 from storytold/build-test

change build configs
This commit is contained in:
Brandon Thomas authored and GitHub committed 2024-09-18 20:48:53 -04:00
commit 76549c1a32
1 file changed
+16
+16
View File
@@ -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({