You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a vue app using vite 4.0.4. It will not run in a regular browser, but in nw.js (https://nwjs.io/) - Therefore all node APIs already exist. But vite is creating these __vite-browser-external:os proxies that prevent access to them. I am trying to completely prevent that behavior, or at least exclude all node APIs, but I have not found an option to do so.
Description
I am trying to build a vue app using vite 4.0.4. It will not run in a regular browser, but in nw.js (https://nwjs.io/) - Therefore all node APIs already exist. But vite is creating these
__vite-browser-external:os
proxies that prevent access to them. I am trying to completely prevent that behavior, or at least exclude all node APIs, but I have not found an option to do so.Simplest example:
is transformed to:
The
optimizeDeps.exclude
option has no effect;the
resolve.alias
happens, but cannot circumvent the problem.alias: { 'os': 'node:os' }
just causes the error to shift to 'node:os' instead.Suggested solution
Add a config option that stops interception of any specified or all node:* imports
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: