From 934b1a0192db0c743c3f40883ab8c82473e35b5e Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Tue, 24 Jan 2023 20:43:00 -0800 Subject: [PATCH] Support Node.js 18 out-of-box Currently when Node.js 18 is used with `scalajs-bundler`, webpack will throw an `ERR_OSSL_EVP_UNSUPPORTED` error as described in https://github.com/webpack/webpack/issues/14532 This PR fixes the error by upgrading webpack to 5.75.0, which includes the fix to `ERR_OSSL_EVP_UNSUPPORTED`. --- .../scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fdda11e5..5d35f0e4 100644 --- a/sbt-scalajs-bundler/src/main/scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala +++ b/sbt-scalajs-bundler/src/main/scala/scalajsbundler/sbtplugin/ScalaJSBundlerPlugin.scala @@ -553,7 +553,7 @@ object ScalaJSBundlerPlugin extends AutoPlugin { scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }, - version in webpack := "5.24.3", + version in webpack := "5.75.0", webpackCliVersion := "4.5.0",