Turns out you can just use Preact...
This commit is contained in:
parent
b38c2528fa
commit
a2ac8da817
3 changed files with 15 additions and 0 deletions
|
@ -24,6 +24,17 @@ const config = {
|
||||||
images: {
|
images: {
|
||||||
domains: ["avatars.githubusercontent.com", "lh3.googleusercontent.com"],
|
domains: ["avatars.githubusercontent.com", "lh3.googleusercontent.com"],
|
||||||
},
|
},
|
||||||
|
webpack: (config, { dev, isServer }) => {
|
||||||
|
if (!dev && !isServer) {
|
||||||
|
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",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return config;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const nextConfig = withPWA({
|
const nextConfig = withPWA({
|
||||||
dest: "public",
|
dest: "public",
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
"next": "^13.4.4",
|
"next": "^13.4.4",
|
||||||
"next-auth": "^4.22.1",
|
"next-auth": "^4.22.1",
|
||||||
"postcss": "^8.4.24",
|
"postcss": "^8.4.24",
|
||||||
|
"preact": "^10.15.1",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-icons": "^4.9.0",
|
"react-icons": "^4.9.0",
|
||||||
|
|
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
|
@ -53,6 +53,9 @@ dependencies:
|
||||||
postcss:
|
postcss:
|
||||||
specifier: ^8.4.24
|
specifier: ^8.4.24
|
||||||
version: 8.4.24
|
version: 8.4.24
|
||||||
|
preact:
|
||||||
|
specifier: ^10.15.1
|
||||||
|
version: 10.15.1
|
||||||
react:
|
react:
|
||||||
specifier: 18.2.0
|
specifier: 18.2.0
|
||||||
version: 18.2.0
|
version: 18.2.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue