From 518f3ac017120b442c601f31ad0ce1a25cb1e595 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 14 Apr 2021 16:58:26 -0700 Subject: [PATCH] Don't use esm versions of deps in preload bundle --- webpack-preload.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack-preload.config.ts b/webpack-preload.config.ts index ef9235f98fc3..ee4210c4999c 100644 --- a/webpack-preload.config.ts +++ b/webpack-preload.config.ts @@ -59,6 +59,7 @@ const preloadConfig: Configuration = { resolve: { extensions: ['.js'], alias: {}, + mainFields: ['browser', 'main'], }, externals: [ ({ request = '' }, callback) => {