Skip to content

Support import maps in Denops plugins #431

@lambdalisue

Description

@lambdalisue

Currently, import maps cannot be used for Denops plugins because Deno does not support dynamic import maps or multiple import maps.

This limitation is quite inconvenient. To address this, we propose adding a transformation layer that substitutes @std/async with jsr:@std/async@^1.0.0 or any other mappings defined in an import_map.json file located in the parent directories of the Denops plugin.

The transformation layer could be implemented as an HTTP server, similar to deno-localfile-registry. Denops would import plugins via this server, ensuring that the appropriate import_map.json for each plugin is correctly applied.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions