Skip to content

First class modules and dynamic import #7389

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

Open
cometkim opened this issue Apr 10, 2025 · 0 comments
Open

First class modules and dynamic import #7389

cometkim opened this issue Apr 10, 2025 · 0 comments

Comments

@cometkim
Copy link
Member

ReScript's dynamic import feature is not really "dynamic"; it's just a lazy import of a static module.

We haven't caught up with ESM yet, which allows us to change the program remotely via different modules. This is a must-have feature for use cases like plugins or mini apps.

Dynamic import is one of the older use cases for first-class module syntax,
https://github.com/shakacode/rescript-first-class-modules-usage

But I'd like to see it supported natively in ESM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant