Skip to content

Commit

Permalink
fix(configuration): reenable automatic React transform
Browse files Browse the repository at this point in the history
Avoids having to import React manually. release-npm
  • Loading branch information
tobua committed Nov 27, 2023
1 parent db8b8e3 commit 4bea6e2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions configuration/rspack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default (development: boolean): RspackOptions => {
},
transform: {
react: {
runtime: 'automatic',
development,
refresh: development,
},
Expand Down Expand Up @@ -175,6 +176,7 @@ export default (development: boolean): RspackOptions => {
},
transform: {
react: {
runtime: 'automatic',
development,
refresh: development,
},
Expand Down
4 changes: 2 additions & 2 deletions template/default/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"papua": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
6 changes: 3 additions & 3 deletions template/pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"title": "Progressive Web App"
},
"dependencies": {
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@types/url-join": "^4.0.3",
"mobx": "^6.11.0",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"papua": "latest",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion template/serverless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"vercel": "^32.5.3"
"vercel": "^32.5.6"
}
}
6 changes: 3 additions & 3 deletions template/website/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"dependencies": {
"@stitches/react": "^1.2.8",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"mobx": "^6.11.0",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"papua": "latest",
"react": "^18.2.0",
Expand Down

0 comments on commit 4bea6e2

Please sign in to comment.