From 1fb8e72d61f21364a21df12779c8119af3747ca5 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Sun, 22 Oct 2023 20:10:36 +0200 Subject: [PATCH] Adapt `buildNpmJsFile` task to the new Scala.js 1.x output See https://github.com/kaitai-io/kaitai_struct_compiler/pull/230#discussion_r1367945494 --- build.sbt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index af093f451..dc1792883 100644 --- a/build.sbt +++ b/build.sbt @@ -231,13 +231,8 @@ lazy val buildNpmJsFileTask = Def.task { | } |}(typeof self !== 'undefined' ? self : this, function () { | - |var exports = {}; - |var __ScalaJSEnv = { exportsNamespace: exports }; - | |$compiledFileContents - | - |return exports.MainJs; - | + |return MainJs; |})); |""".stripMargin