rollup-plugin-polyfill-node
rollup-plugin-polyfill-node copied to clipboard
A modern Node.js polyfill for your Rollup bundle.
I'm using 0.13.0 and seeing this error when I bundle. ```bash [!] Error: "urlToHttpOptions" is not exported by "polyfill-node.url.js". 9: import { URL, urlToHttpOptions } from 'url'; ^ ``` I'd...
See [(https://github.com/parcel-bundler/parcel/issues/2833)] I've tried so many ways to prevent this error and finally found this approach to solve it.
When using with Vite I am getting the following error during build: `Module "stream" has been externalized for browser compatibility...`. It seems like the polyfills are not working? Is there...
Please add polyfill support for `TextEncoder` https://nodejs.org/api/util.html#class-utiltextencoder
Using Buffer and zlib from this rollup-plugin-polyfill-node package In zlib.js polyfill, when an error occurs, zlib is supposed to emit and error. Related code below: ```js this._binding.onerror = function(message, errno)...
Even though it is not a very commonly used built-in, the [Inspector](https://nodejs.org/dist/latest-v19.x/docs/api/inspector.html) is not in the list and might break some packages (for instance, typescript dynamically import it). I don't...
On npm and the github commit history the latest version is 0.12.0. In the tags tab on github however, there is no tag for 0.12.0 and the latest one is...
I'm using 0.9.0 and seeing this error when I bundle. ~~~ts 2: import { homedir as homeDir } from 'os'; ^ Error: 'homedir' is not exported by polyfill-node.os.js, imported by...
Hi, There is some bundled code whose use of Node modules which I know will not be needed in the browser and which I therefore would prefer to be treated...
### Feat package.json ```json "exports": { ... "./node-buffer": { "default": { "import": "./node-buffer.mjs" } }, ... }, ``` So, every bundler and browser may able to use this awesome repo....