Skip to content

Commit

Permalink
Upgrade standalone plugin to v4 (#367)
Browse files Browse the repository at this point in the history
* Upgrade standalone plugin to v4

* Upgrade webpack, fix typescript error in root configs

* Various fixes
  • Loading branch information
joeldenning authored Nov 9, 2022
1 parent a34fad7 commit a287602
Show file tree
Hide file tree
Showing 9 changed files with 1,031 additions and 1,235 deletions.
9 changes: 9 additions & 0 deletions .changeset/nasty-eggs-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"generator-single-spa": patch
"single-spa-welcome": patch
"webpack-config-single-spa": patch
---

- Upgrade standalone-single-spa-webpack-plugin to version 4, for multiple importMapUrls support
- Upgrade webpack to 5.75.0, for Node 18 support
- Fix typescript error with root configs related to System.import
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpx pretty-quick --staged
pnpm exec pretty-quick --staged
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"jest-cli": "^27.0.6",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"webpack": "^5.51.1",
"webpack": "^5.75.0",
"webpack-cli": "^4.8.0",
"webpack-config-single-spa-react": "^4.0.0",
"webpack-dev-server": "^4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"serve": "^12.0.0",
"webpack": "^5.51.1",
"webpack": "^5.75.0",
"webpack-cli": "^4.8.0",
"webpack-config-single-spa": "^5.0.0",
"webpack-dev-server": "^4.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { registerApplication, start } from "single-spa";
import { registerApplication, start<% if (typescript) {%>, LifeCycles<% }%> } from "single-spa";

registerApplication({
name: "@single-spa/welcome",
app: () =>
System.import(
System.import<% if (typescript) {%><LifeCycles><% } %>(
"https://unpkg.com/single-spa-welcome/dist/single-spa-welcome.js"
),
activeWhen: ["/"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"jest-cli": "^27.0.6",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"webpack": "^5.51.1",
"webpack": "^5.75.0",
"webpack-config-single-spa": "^5.0.0",
"webpack-merge": "^5.8.0",
"webpack-cli": "^4.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/single-spa-welcome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"single-spa-react": "^4.3.1",
"style-loader": "^3.2.1",
"ts-config-single-spa": "workspace:*",
"webpack": "^5.51.1",
"webpack": "^5.75.0",
"webpack-cli": "^4.8.0",
"webpack-config-single-spa-react": "workspace:*",
"webpack-dev-server": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack-config-single-spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"babel-loader": "^8.2.2",
"css-loader": "^5.2.7",
"html-webpack-plugin": "^5.3.2",
"standalone-single-spa-webpack-plugin": "^3.0.0",
"standalone-single-spa-webpack-plugin": "^4.0.0",
"style-loader": "^3.2.1",
"systemjs-webpack-interop": "^2.3.7",
"webpack-bundle-analyzer": "^4.4.2"
},
"devDependencies": {
"webpack": "^5.51.1"
"webpack": "^5.75.0"
}
}
Loading

0 comments on commit a287602

Please # to comment.