Skip to content

fix(nextjs): Do not hide sourceMappingURL comment on client when nextConfig.productionBrowserSourceMaps: true is set #12278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2024

Conversation

lforst
Copy link
Contributor

@lforst lforst commented May 29, 2024

#12219 correctly points out that we are stomping the webpack devtool option for when people actually want to have the sourceMappingURL show up via productionBrowserSourceMaps.

With this PR, if people set productionBrowserSourceMaps in Next.js, we will not hide their sourceMappingURL comment.

Fixes #12219

…extConfig.productionBrowserSourceMaps: true` is set
@lforst lforst requested review from Lms24 and andreiborza May 29, 2024 14:15
@lforst lforst merged commit d9562b9 into develop May 29, 2024
80 checks passed
@lforst lforst deleted the lforst-fix-12219 branch May 29, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Client-side sourceMappingURL is being erased despite of settings
2 participants