Skip to content
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

Unable to generate hidden source maps #25324

Closed
michalzaq12 opened this issue Jan 19, 2024 · 0 comments · Fixed by #25329
Closed

Unable to generate hidden source maps #25324

michalzaq12 opened this issue Jan 19, 2024 · 0 comments · Fixed by #25329

Comments

@michalzaq12
Copy link
Contributor

Environment

  • Operating System: Windows_NT
  • Node Version: v20.10.0
  • Nuxt Version: 3.9.1
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: npm@10.2.3

Reproduction

Nuxt config:

export default defineNuxtConfig({
  sourcemap: { // <= TS type:  boolean | { server?: boolean | 'hidden', client?: boolean | 'hidden' },
    server: true,
    client: 'hidden'
  }
})

Describe the bug

Nuxt sourcemap: 'hidden' config is not passed to Vite (https://vitejs.dev/config/build-options.html#build-sourcemap).

Workaround:

export default defineNuxtConfig({
  sourcemap: true,
  vite: {
    build: {
      sourcemap:  'hidden' 
    }
  }
})

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants