-
Notifications
You must be signed in to change notification settings - Fork 101
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
Support ModuleKind.ESModule #293
Comments
Indeed, I think checking that |
As a POC, when deactivating diff --git a/sbt-scalajs-bundler/src/main/scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala b/sbt-scalajs-bundler/src/main/scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala
index ace7f71..a8f6a93 100644
--- a/sbt-scalajs-bundler/src/main/scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala
+++ b/sbt-scalajs-bundler/src/main/scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala
@@ -569,7 +569,7 @@ object ScalaJSBundlerPlugin extends AutoPlugin {
ensureModuleKindIsCommonJSModule := {
if (scalaJSLinkerConfig.value.moduleKind == ModuleKind.CommonJSModule) true
- else sys.error(s"scalaJSModuleKind must be set to ModuleKind.CommonJSModule in projects where ScalaJSBundler plugin is enabled")
+ else true
},
webpackBundlingMode := BundlingMode.Default, with default webpackCliVersion := "3.3.6"
version in webpack := "4.39.1"
version in startWebpackDevServer := "3.8.0"
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) } it just works with Scala.js |
Awesome, thanks for investigating!
Maybe running tests, and running tests that use the DOM. |
Any news on this? |
#336 seems inactive |
Is there anything I can do to help this move? |
Hello! Unfortunately, this project lacks maintainers. Something you could do to help this move would be to locally test the PR that has been open, to fix the git conflicts, and finally to notify the people watching the repository that the PR is ready to be merged. |
Latest Scala.js supports ModuleKind.ESModule, this option can not be used with ScalaJsBundler, we see this error:
The text was updated successfully, but these errors were encountered: