-
I currently have an app that uses preact and recently updated our fetch methods to use I can't use the regular is there a way to set up the cache provider with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My current solution is to configure const config = {
//...snip
"resolve": {
"alias": {
"react": "preact/compat",
"react-dom/test-utils": "preact/test-utils",
"react-dom": "preact/compat", // Must be below test-utils
"react/jsx-runtime": "preact/jsx-runtime"
},
}
} mentioned in preact docs to use the following for nodejs {
"dependencies": {
"react": "npm:@preact/compat",
"react-dom": "npm:@preact/compat",
}
} hope this helps others. |
Beta Was this translation helpful? Give feedback.
My current solution is to configure
preact/compact
(alias react to use preact) in my webpackmentioned in preact docs to use the following for nodejs
hope this helps others.