From c055587503550c9e941aa710e31369a831015c8f Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Sun, 24 Nov 2024 02:12:12 -0700 Subject: [PATCH] Disable hot reloading when using native modules --- .changeset/tall-islands-remain.md | 5 +++++ .../lib/webpack-config-single-spa.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/tall-islands-remain.md diff --git a/.changeset/tall-islands-remain.md b/.changeset/tall-islands-remain.md new file mode 100644 index 00000000..7f4a5c2a --- /dev/null +++ b/.changeset/tall-islands-remain.md @@ -0,0 +1,5 @@ +--- +"webpack-config-single-spa": patch +--- + +Disable hot reloading for native es modules diff --git a/packages/webpack-config-single-spa/lib/webpack-config-single-spa.js b/packages/webpack-config-single-spa/lib/webpack-config-single-spa.js index 2b694f92..0c27f970 100644 --- a/packages/webpack-config-single-spa/lib/webpack-config-single-spa.js +++ b/packages/webpack-config-single-spa/lib/webpack-config-single-spa.js @@ -120,6 +120,7 @@ function webpackConfigSingleSpa(opts) { }, }, allowedHosts: "all", + hot: opts.outputSystemJS, }, externals: opts.orgPackagesAsExternal ? ["single-spa", new RegExp(`^@${opts.orgName}/`)]