Skip to content

Commit

Permalink
[#51] Update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan authored and blcham committed Nov 1, 2024
1 parent 2c31a1e commit 58c58d8
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import envCompatible from "vite-plugin-env-compatible";
import { nodePolyfills } from "vite-plugin-node-polyfills";

export default defineConfig({
plugins: [
react(),
envCompatible(),
nodePolyfills({
globals: {
Buffer: true,
global: true,
process: true,
},
include: ["websocket", "tty", "http"],
}),
],
plugins: [react(), envCompatible()],
build: {
sourcemap: true,
},
Expand All @@ -24,7 +12,6 @@ export default defineConfig({
},
envPrefix: "S_PIPES_",
resolve: {
mainFields: [],
alias: {
"@config": "/src/config",
},
Expand Down

0 comments on commit 58c58d8

Please sign in to comment.