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 84 forks source link

How it can support sourcemap for third party libarary installed node_modules #256

Closed tianyingchun closed 1 year ago

tianyingchun commented 2 years ago

Are you trying to transpile a local package or an npm package? @dimjs/utils

Describe the bug how it can support sourcemap for third party libarary installed node_modules

i tried install thrid party libarary in node-modules in next app, import function from node_modules it seems it could not load source map file in chrome, e.g. i. have module file is-null.js & is-null.js.map the is-null.js.map indicates the source ts file.

but it can not display is-null.ts in chrome sources panel. is there missed some configuratins?

To Reproduce see https://github.com/vercel/next.js/issues/34026

Expected behavior see https://github.com/vercel/next.js/issues/34026

Setup

Additional context next 12

ronenempathy commented 2 years ago

having the same issue .

any workaround found around that?

ronenempathy commented 1 year ago

why is this closed?

martpie commented 1 year ago

cf. #291