Skip to content

Commit

Permalink
Disable SystemJSPublicPathPlugin when outputting to native modules (#415
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joeldenning authored Oct 2, 2024
1 parent 16f74d7 commit 4ad86d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-goats-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-config-single-spa": patch
---

Disable SystemJSPublicPathPlugin when not outputting to SystemJS format
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ function webpackConfigSingleSpa(opts) {
new BundleAnalyzerPlugin({
analyzerMode: webpackConfigEnv.analyze ? "server" : "disabled",
}),
new SystemJSPublicPathPlugin({
systemjsModuleName: `@${opts.orgName}/${opts.projectName}`,
rootDirectoryLevel: opts.rootDirectoryLevel,
}),
opts.outputSystemJS &&
new SystemJSPublicPathPlugin({
systemjsModuleName: `@${opts.orgName}/${opts.projectName}`,
rootDirectoryLevel: opts.rootDirectoryLevel,
}),
!isProduction && !opts.disableHtmlGeneration && new HtmlWebpackPlugin(),
!isProduction &&
!opts.disableHtmlGeneration &&
Expand Down

0 comments on commit 4ad86d6

Please sign in to comment.