Skip to content

Commit

Permalink
Use webpack auto public path for native ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Oct 2, 2024
1 parent 8c42ea5 commit 7f61ab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/calm-lions-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-config-single-spa": patch
---

Use webpack auto public path for native ES modules
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function webpackConfigSingleSpa(opts) {
path: path.resolve(process.cwd(), "dist"),
uniqueName: opts.projectName,
devtoolNamespace: `${opts.projectName}`,
publicPath: "",
publicPath: opts.outputSystemJS ? "" : "auto",
},
module: {
rules: [
Expand Down

0 comments on commit 7f61ab0

Please sign in to comment.