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

Fix build error with Dynamic import of module in nested expressions #6431

Merged
merged 6 commits into from
Oct 11, 2023

Conversation

mununki
Copy link
Member

@mununki mununki commented Oct 10, 2023

Fix #6430

This PR modifies dynamic import of module to be a transformation even when used in nested expressions (let-in). Adds handling for the following cases:

  • Pexp_let
  • Pexp_ifthenelse
  • Pexp_fun
  • Pexp_newtype

CHANGELOG.md Outdated
@@ -33,6 +33,7 @@

- Fix issue with GenType and labelled arguments. https://github.com/rescript-lang/rescript-compiler/pull/6406
- Fix dependencies reinitialization on every change in watch mode. Leads to faster rebuilds and cleaner terminal. https://github.com/rescript-lang/rescript-compiler/pull/6404
- Fix issue with Dynamic import of module in nested expressions https://github.com/rescript-lang/rescript-compiler/pull/6431
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be in rc.5

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.
After this PR #6427 merged, then I'll rebase this PR and move it to rc.5.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cknitt What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, rc.5 please, as rc.4 is out already.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mununki mununki force-pushed the nested-import-module branch from 4b7d77b to 8dbb0f8 Compare October 10, 2023 17:46
@zth
Copy link
Collaborator

zth commented Oct 11, 2023

Merge?

@mununki mununki merged commit b9df8ac into master Oct 11, 2023
@mununki mununki deleted the nested-import-module branch October 11, 2023 15:39
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

Successfully merging this pull request may close these issues.

Build error: Dynamic module import of nested expressions
4 participants