davidmyersdev / vite-plugin-node-polyfills

A Vite plugin to polyfill Node's Core Modules for browser environments.
MIT License
263 stars 17 forks source link

Fixed error during "yarn build" #8

Closed cristian-spiescu closed 1 year ago

cristian-spiescu commented 1 year ago

When I run yarn build, I have the error:

[vite]: Rollup failed to resolve import "Buffer" from "../../node_modules/loupe/loupe.js".

I applied the instructions from the doc from node-stdlib-browser, and this fixed the issues.

davidmyersdev commented 1 year ago

Thanks for the fix!

cristian-spiescu commented 1 year ago

You're welcome. 😄 Thanks for the fast merging. I took the new version, and confirm that it works. Hence I removed the monkeypatching I did in the project.