Nuxt config sourcemap option ignored
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 285
- Forks
- 33
- Avg merge
- 22h 38m
- Merged PRs (30d)
- 3
Description
Environment
- Operating System:
Darwin - Node Version:
v16.15.0 - Nuxt Version:
2.16.0-27720022.54e852f - Nitro Version:
0.6.1 - Package Manager:
yarn@1.22.19 - Builder:
webpack - User Config:
sourcemap,serverHandlers,devServerHandlers,typescript,bridge,buildModules - Runtime Modules:
- - Build Modules:
(),@nuxt/bridge@3.0.0-27778503.de9e5c2
Reproduction
https://github.com/IlyaSemenov/nuxt-bridge-sourcemap-ignored
Describe the bug
The sourcemap option in nuxt config is completely ignored, both as an object or as a boolean.
Example:
export default defineNuxtConfig({
sourcemap: { server: false, client: true },
})
nuxi build still generates server source map and doesn't generate client source map.
Additional context
The option is advertised by @nuxt/schema@3.0.0-rc.12 which is a direct dependency of @nuxt/bridge:
/**
* Whether to generate sourcemaps.
*
* @version 3
*/
sourcemap: boolean | { server?: boolean, client?: boolean },
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction repository and run nuxi build using the shown sourcemap configuration. Trace how the Nuxt config is handled by the webpack builder, then verify that server maps are disabled and client maps are generated for both boolean and object forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100