We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b5fea commit 4a0110dCopy full SHA for 4a0110d
nodejs-env/src/main/scala/org/scalajs/jsenv/nodejs/NodeJSEnv.scala
@@ -146,7 +146,7 @@ object NodeJSEnv {
146
* `import()` cannot be used from the standard input).
147
*/
148
val importChain = input.foldLeft("Promise.resolve()") { (prev, item) =>
149
- s"$prev.\n then(${execInputExpr(item)})"
+ s"$prev.\n then(() => ${execInputExpr(item)})"
150
}
151
val importerFileContent = {
152
s"""
0 commit comments