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

Fix errors on Next.JS 13 with appDir enabled #279

Closed cornedor closed 1 year ago

cornedor commented 1 year ago

nextGlobalCssLoader.issuer is undefined with appDir enabled, these changes will filter these out.

I've not tested this very well.

cornedor commented 1 year ago

All tests run successfully locally, even with next upgraded and appDir enabled in the npm-basic tests. I could add an extra test case.

mm-webx commented 1 year ago

Good job

martpie commented 1 year ago

Nice thank you!

martpie commented 1 year ago

I need to add a test to check appDir too now, so many usecases combinations 😱