martpie / next-transpile-modules

Next.js plugin to transpile code from node_modules. Please see: https://github.com/martpie/next-transpile-modules/issues/291
MIT License
1.13k stars 85 forks source link

Next.js 13 support #281

Closed martpie closed 1 year ago

martpie commented 1 year ago

About the next transpilePackages option:

TLDR: Transpiling classic modules is ok. Transpiling local TypeScript libraries or component using CSS does not work.

martpie commented 1 year ago

Quickly checked the new transpilePackages option, and it's not working on most of the use cases next-transpile-modules is trying to solve (css imports in dependencies especially).

Considering the feature is also experimental, I don't foresee next-transpile-modules dying anytime soon until those usecases are fixed at Next.js level, and/or a good alternative exists.

I will also open an issue on Next.js' side to explain those different usecases, and see what the team thinks about them.

edit: done, cf https://github.com/vercel/next.js/discussions/42136

martpie commented 1 year ago

noice 😎

I think we could do a first release without support for app-dir / turbopack. I'll quickly mess around with app-dir just in case.

martpie commented 1 year ago

👀