From 58c58d83b1a6de057ce4426b6d4a05907b639bd0 Mon Sep 17 00:00:00 2001 From: Daniil Palagin Date: Tue, 29 Oct 2024 16:39:21 +0100 Subject: [PATCH] [#51] Update vite config --- vite.config.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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", },