From 5b1661f951f0ee86d9f14e0e5fcebb8b05b20a57 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Tue, 11 Apr 2023 10:22:03 -0700 Subject: [PATCH] Revert "Switch to fewest modules linking in dev." --- build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index a412004262..579a0fd921 100644 --- a/build.sbt +++ b/build.sbt @@ -259,8 +259,8 @@ lazy val esModule = Seq( Compile / fastLinkJS / scalaJSLinkerConfig ~= { _.withSourceMap(false) }, Compile / fullLinkJS / scalaJSLinkerConfig ~= { _.withSourceMap(false) }, Compile / fastLinkJS / scalaJSLinkerConfig ~= (_.withModuleSplitStyle( - // Linking with smaller modules seems to take way longer. - ModuleSplitStyle.FewestModules + // If the browser is too slow for the SmallModulesFor switch to ModuleSplitStyle.FewestModules + ModuleSplitStyle.SmallModulesFor(List("explore")) )), Compile / fullLinkJS / scalaJSLinkerConfig ~= (_.withModuleSplitStyle( ModuleSplitStyle.FewestModules