diff --git a/vite.config.js b/vite.config.js index 28e2f0f..cfc6e3e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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, }, @@ -24,7 +12,6 @@ export default defineConfig({ }, envPrefix: "S_PIPES_", resolve: { - mainFields: [], alias: { "@config": "/src/config", },