vite-plugin-node-polyfills icon indicating copy to clipboard operation
vite-plugin-node-polyfills copied to clipboard

A Vite plugin to polyfill Node's Core Modules for browser environments.

Results 45 vite-plugin-node-polyfills issues
Sort by recently updated
recently updated
newest added
trafficstars

### Summary This is the error I am getting. ``` Internal server error: Failed to resolve import "node:assert/strict" from "...". Does the file exist? ``` If I patch the package...

I'm using this plugin in a project that started throwing errors in some sub-dependency because `globalThis` wasn't defined yet when this code ran. This one-line change resolves those errors. :-)

The following commit breaks `yarn build && yarn preview`: https://github.com/integritee-network/incognitee-campaign-page/commit/87272d0e60ae30cef384cc87b2918249a0073938. However, unlike https://github.com/davidmyersdev/vite-plugin-node-polyfills/issues/90, I can't opt out of crypto as I need its function. The code runs fine with `yarn...

Hello I've created an npm package using your package and I am able to build successfully. However when it runs on browser I see the error given. I suspect there...

missing reproduction

Hi, I just started using this plugin. I get this error: ``` TypeError: net.createConnection is not a function ``` Whenever I look at what the `import('net')` contains, then it doesn't...

missing reproduction

### Summary very helpful plugin, but I seems run into a conflict with an express server plugin. 1. brand new react app generate by vite (JavaScript + SWC), version "vite":...

When using a version higher than 0.17.0, and polyfilling a bunch of stuff (see vite config snippet below), I get the following error: ![image](https://github.com/davidmyersdev/vite-plugin-node-polyfills/assets/35409274/d9881d1e-b4f8-4b4e-9373-8e56a4782645) The relevant section of my vite...

missing reproduction

### Summary In a project, I use the following dependency : https://www.npmjs.com/package/minify-xml Because it is a dependency written for a pure NodeJS project, I had to use polyfills like this...

Reproduction: https://stackblitz.com/edit/vitejs-vite-1axycb?file=main.js Its currently possible to do `import { join } from 'path'` or `import { posix } from 'path'` but not these: ```js import { join } from 'path/posix';...

triage