You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I’d like to see the original source of a third-party package in DevTools instead of the minified bundle. The library ships .map files and they’re present in node_modules, but Chrome only shows minified code when viewing the source. Is there a way to configure NextJS to include the map files for this third party library? I’ve carried out a quick test in a project using vite to ensure that the map files are valid and it works as expected, so I am assuming there is just some configuration I need to setup for this to work in NextJS. Thanks in advance for any help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In my project I’d like to see the original source of a third-party package in DevTools instead of the minified bundle. The library ships .map files and they’re present in node_modules, but Chrome only shows minified code when viewing the source. Is there a way to configure NextJS to include the map files for this third party library? I’ve carried out a quick test in a project using vite to ensure that the map files are valid and it works as expected, so I am assuming there is just some configuration I need to setup for this to work in NextJS. Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions