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

Support import maps in Denops plugins #431

Open
lambdalisue opened this issue Jan 3, 2025 · 0 comments
Open

Support import maps in Denops plugins #431

lambdalisue opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@lambdalisue
Copy link
Member

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

@lambdalisue lambdalisue added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant