Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local imports of node libraries #45

Open
kleinpetr opened this issue Dec 19, 2024 · 0 comments
Open

local imports of node libraries #45

kleinpetr opened this issue Dec 19, 2024 · 0 comments

Comments

@kleinpetr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant