Open winixt opened 8 months ago
import { defineConfig } from 'vite' import { nodePolyfills } from 'vite-plugin-node-polyfills' // https://vitejs.dev/config/ export default defineConfig({ define: { "process.env.A": 1, }, plugins: [ nodePolyfills({ globals: { process: true, }, }), ], })
Hey @winixt. Would you mind adding a reproducible example via Stackblitz or similar?