adamhalasz / uniqid

Unique ID Generator
https://adamhalasz.com
617 stars 49 forks source link

Fix vite 3 warning #48

Open zorn-v opened 1 year ago

zorn-v commented 1 year ago

Vite 3 show warning in console Module "os" has been externalized for browser compatibility. Cannot access "os.networkInterfaces" in client code.

It replace require to __require in .vite/deps/uniqid.js, so that check is always true as __require is defined there.