Skip to content

Commit

Permalink
[#51] Update vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Oct 29, 2024
1 parent 4fe0c2e commit 5e9f8ad
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 5e9f8ad

Please sign in to comment.