-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nuxt): Respect user-provided source map generation settings (#14020
) Nuxt implementation for: #13993 Fixes: #13997 In Nuxt, there are 3 places to set source maps (and all need to be enabled): - `sourcemap` - `nitro.rollupConfig.output.sourcemap` - `vite.build.sourcemap` As Nuxt sets `sourcemap.client: false` ([docs here](https://nuxt.com/docs/api/nuxt-config#sourcemap)), it's not possible to determine whether this setting was set by the user or the framework. Users have to set this manually like this: ```js export default defineNuxtConfig({ sourcemap: { client: true, }, }) ``` With this PR, all source maps are set to `'hidden'` if they were undefined before and keep the setting otherwise. This is done in 3 separate functions (one for vite, rollup and nuxt) to better distinguish between the settings.
- Loading branch information
Showing
2 changed files
with
362 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.