Mistereo / next-linaria

Linaria support for Next.js
MIT License
93 stars 10 forks source link

Support for version 3 #2

Open nunof07 opened 3 years ago

nunof07 commented 3 years ago

Hi @Mistereo ,

Thank you for this package!

Do you plan on supporting version 3 of Linaria (currently in beta)? It splits Linaria into different packages (@linaria/webpack-loader, etc.).

From the Linaria docs the installation process seems the same, except the different naming, so in next-linaria I tried replacing this:

            loader: require.resolve('linaria/loader'),

With this:

            loader: '@linaria/webpack-loader',

But got some weird errors.

Anyway, I still got it to work with the previous version. Thanks.