Skip to content

local imports of node libraries #45

@kleinpetr

Description

@kleinpetr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions