Hi,
I realized that the library uses local imports of known libraries such as /buffer /process and so on
When we use it within Nuxt and trying to build for edge, such as cloudflare pages, and it uses https://github.com/unjs/unenv to optimize deps for edge providers, but unfortunately it resolves buffer/ as a Buffer (which typically comes from node itself)
I just wonder if this is a happy solution, maybe it would be better to change import names, to be obvious that it depends on local versions of this packages.
What do you think? :)
original issue: nuxt/nuxt#29978
Hi,
I realized that the library uses local imports of known libraries such as
/buffer/processand so onWhen we use it within Nuxt and trying to build for edge, such as cloudflare pages, and it uses https://github.com/unjs/unenv to optimize deps for edge providers, but unfortunately it resolves
buffer/as a Buffer (which typically comes from node itself)I just wonder if this is a happy solution, maybe it would be better to change import names, to be obvious that it depends on local versions of this packages.
What do you think? :)
original issue: nuxt/nuxt#29978