-
-
Notifications
You must be signed in to change notification settings - Fork 252
Dynamic imports v11 blog post #683
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great.
A minor commenta and a Q: what's the current state of the art in TS for checking dynamic imports: when the path is not correct or the type of the module is not correct is there a way to get notified by a type error?
@cknitt I drastically reduced the content of the blog post to make it as on-point as possible, so please have a look again if this looks fine.
In TS, in both cases it will either raise a "module not found" or a type error. The tooling is really good in that regard. Our main advantage is that ReScript is just "simpler" by nature (less |
Any feedback welcome.