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

On temporarily re-opening next-transpile-modules #291

Open martpie opened 1 year ago

martpie commented 1 year ago

I'll keep it short: one edgecase of next-transpile-modules it not covered by Next.js 13's transpilePackages, a few people cannot use the official solution, and require their packages to not be deprecated (corporate policies yadi yadi yada).

Eventually...

... it could be a good idea to have next-transpile-modules@vNext as a bridge between current next-transpile-modules and transpilePackages, so we would remove most of the code of next-transpile-modules (now obsolete, and native in Next.js), and just make sure next-transpile-modules overload transpilesPackages to make sure all existing setups work, until official fixes land in Next.js.

I said it and will repeat it again: if you want to invest time closing this gap: work directly on Next.js and submit a PR there. The only advantage of next-transpile-modules is speed of release, but this won't be last forever, and there will be a time I will retire this package for good.