We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 300ba69 commit bf96018Copy full SHA for bf96018
jscomp/ml/ast_await.ml
@@ -24,7 +24,7 @@ let create_await_module_expression ~module_type_lid (e : Parsetree.module_expr)
24
(Exp.apply ~loc:e.pmod_loc
25
(Exp.ident ~loc:e.pmod_loc
26
{
27
- txt = Longident.Ldot (Lident "Js", "import");
+ txt = Longident.Ldot (Lident Js_runtime_modules.promise, "import");
28
loc = e.pmod_loc;
29
})
30
[
jscomp/runtime/runtime_promise.res
@@ -24,3 +24,5 @@
external unsafe_async: 'a => promise<'a> = "%identity"
external unsafe_await: promise<'a> => 'a = "?await"
+
+external import: 'a => promise<'a> = "#import"
0 commit comments