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

Dynamic variable import map support #16133

Open
4 tasks done
HexaField opened this issue Mar 11, 2024 · 0 comments
Open
4 tasks done

Dynamic variable import map support #16133

HexaField opened this issue Mar 11, 2024 · 0 comments

Comments

@HexaField
Copy link
Contributor

HexaField commented Mar 11, 2024

Description

I would like to be able to load specific modules dynamically using imports maps.

export function importImportMapModule(importMapID: string) {
    return import(importMapID)
}

Which avoids the drawback of dynamic imports not having deep variable imports or having to specify the extension.

Suggested solution

This should be possible since import maps and dynamic imports individuall are supported.

See related issue #15192 which includes a stackblitz

Alternative

No response

Additional context

No response

Validations

@HexaField HexaField changed the title Dynamic import map support Dynamic variable import map support Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant