Skip to content

Add npm package support #163

@CheatCod

Description

@CheatCod

deno_runtime::WorkerOptions has a field:
pub npm_resolver: Option<Arc<dyn deno_node::NpmResolver>>, which is default initialized to None.

If we provide it with an implementation of npm_resolver, we should be able to npm package support.

See more: https://github.com/denoland/deno/blob/main/cli/npm/resolvers/mod.rs.

Note this may be a deep rabbit hole, expect to spend hours on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions