Closed johnson86tw closed 1 year ago
@chnejohnson have you tried using https://github.com/sodatea/vite-plugin-node-stdlib-browser? It uses this module as dependancy.
@niksy Thanks, will take a close look
@chnejohnson have you tried using https://github.com/sodatea/vite-plugin-node-stdlib-browser? It uses this module as dependancy.
throws some errors in combination with vite 4, see https://github.com/sodatea/vite-plugin-node-stdlib-browser/issues/4
This is related to @rollup/plugin-inject
compatibility with Vite:
Will be resolved automatically when fixed upstream.
I am using the Vite configuration with this package written in README.md. When I started my app and go to the localhost url, the console reported two warning logs like this.
@niksy Could you provide me with some advice about how to solve this issue?
The following is my full
vite.config.ts
Reference
P.S. this package is very helpful for dealing with polyfill on Vite, thanks a lot!