Skip to content

Conversation

mununki
Copy link
Member

@mununki mununki commented Sep 30, 2024

Fixes #6985

This PR fixes that the dynamic imports don't work correctly with external declarations that define functions.

@module("mylib") external f: string => unit = "default" let mylibF = Js.import(f)

compiled to

let mylibF = import("mylib").then(m => m.default);
@zth
Copy link
Member

zth commented Oct 1, 2024

I'm not familiar with this part of the code base, but it looks good to me from what I can tell. @cristianoc ?

@mununki mununki merged commit 70700fe into master Oct 1, 2024
20 checks passed
@mununki mununki deleted the fix-fun-dynamic-import branch October 1, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants