preactjs / next-plugin-preact

Next.js plugin for preact X
394 stars 9 forks source link

Next@9 compatibily #63

Closed dkrefta closed 1 year ago

dkrefta commented 1 year ago

Hey Guys, I'm trying to check which version this old legacy Next JS project can use the preact, there is nothing I can find about compatibility? the NextJS version of this old project is 9 ( unfortunately I want to do a little bit of booster in performance until we finish another new project lol ) Thanks guys! :D

rschristian commented 1 year ago

Are you asking about Preact's NextJS plugin (next-plugin-preact), or Preact itself?

It looks like the v9.0.0 release of Next supports React 16.x, so there shouldn't be any issues there (theoretically) in swapping in preact/compat. Compatibility in this case is mostly up to Next; while Preact offers nearly full compat with React, Next still needs to facilitate the aliasing.

JoviDeCroock commented 1 year ago

Yes, Next@9 should be fully supported. It's a bit old so I'm not entirely sure whether the next-plugin-preact does too much or too little but following the steps that we do there should be enough to make it work.

dkrefta commented 1 year ago

@JoviDeCroock and @rschristian yeah was the plugin but also the preact version, but I did some changes and I upgraded the next to 10, for this project had a lot of breaking/amounts of cash but all good now. thanks very much guys!