Skip to content

feat(schema): support setting hidden sourcemaps - #22787

Merged
danielroe merged 3 commits into
mainfrom
feat/inline-sourcemaps
Aug 24, 2023
Merged

danielroe merged 3 commits into
mainfrom
feat/inline-sourcemaps

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

resolves #19253

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

We now support setting hidden as a possible option for sourcemaps since this is now supported in Nitro. Vite already supported it and we now also set appropriate sourcemap settings in webpack.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added ✨ enhancement New feature or improvement to existing functionality 3.x schema Nuxt config schema and types labels Aug 24, 2023
@danielroe
danielroe requested review from antfu and pi0 August 24, 2023 09:56
@danielroe danielroe self-assigned this Aug 24, 2023
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@danielroe
danielroe merged commit 2372330 into main Aug 24, 2023
@danielroe
danielroe deleted the feat/inline-sourcemaps branch August 24, 2023 12:06
@github-actions github-actions Bot mentioned this pull request Aug 24, 2023
s1gr1d added a commit to getsentry/sentry-javascript that referenced this pull request Nov 26, 2024
This PR adds a minimum required version for the Nuxt SDK. Version 3.7.0
was selected because this version adds the possibility to set client
source maps to `'hidden'` ([PR
here](nuxt/nuxt#22787)).

However, as the SDK relies on other versions as well (see below, at the
bottom), those packages need to be manually bumped (in case the
lock-file is not updated yet). **Nuxt 3.7.0** at least supports the
correct version range:
["nitropack":
"^2.6.1"](https://github.com/nuxt/nuxt/blob/v3.7.0/packages/nuxt/package.json#L84)
["ofetch":
"^1.3.3"](https://github.com/nuxt/nuxt/blob/v3.7.0/packages/nuxt/package.json#L87)

Above **Nuxt v3.14.0**, everything works out of the box, as the versions
are already updated:
["nitropack":
"^2.10.2"](https://github.com/nuxt/nuxt/blob/v3.14.0/packages/nuxt/package.json#L97)
["ofetch":
"^1.4.1"](https://github.com/nuxt/nuxt/blob/v3.14.0/packages/nuxt/package.json#L100)

#### Minimum versions, the SDK relies on:
- `nitropack` 2.10.0: for the correct peerDependency of `@vercel/nft`
- `ofetch` 1.4.0: for being able to patch `$fetch`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x ✨ enhancement New feature or improvement to existing functionality schema Nuxt config schema and types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to set sourcemap.client = hidden

2 participants