Skip to content

Commit

Permalink
Upgrade preact
Browse files Browse the repository at this point in the history
  • Loading branch information
ThangHuuVu committed Feb 17, 2022
1 parent 5682339 commit 7801a83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const nextConfig = {
if (!dev && !isServer) {
// Replace React with Preact only in client production build
Object.assign(config.resolve.alias, {
"react/jsx-runtime.js": "preact/compat/jsx-runtime",
react: "preact/compat",
"react-dom/test-utils": "preact/test-utils",
"react-dom": "preact/compat",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"next-seo": "4.28.1",
"next-themes": "^0.0.15",
"postcss": "^8.4.4",
"preact": "^10.5.13",
"preact": "^10.6.6",
"querystring": "^0.2.1",
"react": "^17.0.2",
"react-datocms": "^1.6.3",
Expand Down
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6471,12 +6471,7 @@ preact-render-to-string@^5.1.19:
dependencies:
pretty-format "^3.8.0"

preact@^10.5.13:
version "10.5.15"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.5.15.tgz#6df94d8afecf3f9e10a742fd8c362ddab464225f"
integrity sha512-5chK29n6QcJc3m1lVrKQSQ+V7K1Gb8HeQY6FViQ5AxCAEGu3DaHffWNDkC9+miZgsLvbvU9rxbV1qinGHMHzqA==

preact@^10.6.3:
preact@^10.6.3, preact@^10.6.6:
version "10.6.6"
resolved "https://registry.yarnpkg.com/preact/-/preact-10.6.6.tgz#f1899bc8dab7c0788b858481532cb3b5d764a520"
integrity sha512-dgxpTFV2vs4vizwKohYKkk7g7rmp1wOOcfd4Tz3IB3Wi+ivZzsn/SpeKJhRENSE+n8sUfsAl4S3HiCVT923ABw==
Expand Down

0 comments on commit 7801a83

Please sign in to comment.