Skip to content

Commit

Permalink
Disable hot reloading when using native modules
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Nov 24, 2024
1 parent af4e668 commit c055587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-islands-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-config-single-spa": patch
---

Disable hot reloading for native es modules
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function webpackConfigSingleSpa(opts) {
},
},
allowedHosts: "all",
hot: opts.outputSystemJS,
},
externals: opts.orgPackagesAsExternal
? ["single-spa", new RegExp(`^@${opts.orgName}/`)]
Expand Down

0 comments on commit c055587

Please sign in to comment.