vite-plugin-imba
causes 'Module "crypto" has been externalized for browser compatibility warnings
#894
Labels
Description
Hey team, an imba user reported an error in my project, and I ran across a peculiar situation.
In plain vite, If import object-hash, I see no warnings.
However, if I import the same package in an imba project, I see the following warning:
Looking at the URL that vite points too, it seems to say that
object-hash
is requiring a nodejs module.However, this doesn't seem to be the case, when importing object-hash in plain vite. I wonder if there's some environment error that is going on when used with imba.
All thoughts much appreciated!
I created a repro that you can try here:
https://github.com/stopachka/vite-imba-externalized-bug
Reproduction
https://github.com/stopachka/vite-imba-externalized-bug
System Environment
The text was updated successfully, but these errors were encountered: