Comments (2)
Hi, you don't have to use the plugin's injection mechanism. You can simply pass in a release value yourself. For the debug ID mechansim of associating source maps, injection into every file is a necessity, we cannot get around that. The injection should be deterministic so the hash should only change when stuff is actually changing.
from sentry-javascript-bundler-plugins.
Hi @lforst , thank you for the explanation. I didn't realize the solution is that simple – explicitly setting the release name in vite.config.mts
, and in the app code where we call Sentry.init()
.
It works wonderfully – vendor.js
is not invalidated, errors are assigned to the release name, source maps are uploaded for the release name ✅
So basically, the code injection is a useful default to save us a few lines of config, by setting the release name during runtime. But we can just as well do it explicitly during build time 👍
Suggestion: there could be a brief mention in docs – that disabling injection and setting release name explicitly is useful in case we want to the code-splitting.
Otherwise it truly does mutate the vendor.js
, and change its fingerprint, when there were no changes to its content.
from sentry-javascript-bundler-plugins.
Related Issues (20)
- [sentry-vite-debug-id-upload-plugin] Client network socket disconnected before TLS connection was established HOT 7
- error: Two different url values supplied: HOT 3
- @sentry/vite-plugin stuck on vercel HOT 2
- Cannot find module 'webpack' or its corresponding type declarations HOT 1
- API request failed HOT 10
- When using esbuild plugin, import-is-undefined warning raised HOT 2
- Got the next error: sentryWebpackPlugin is not a constructor HOT 2
- Why `@sentry/vite-plugin` install half of internet to my node_modules? HOT 5
- Sourcemap upload successful, artifacts show in UI, no sourcemaps in Sentry HOT 4
- Setting `cleanArtifacts: true` fails with a 403 HOT 7
- esbuild-plugin is missing a name HOT 8
- @sentry/vite-plugin inclusion in vite.config.js causes it to skip .env.production HOT 5
- @sentry/vite-plugin regex used while inserting debugId matches till the wrong index, throws a syntax error HOT 2
- Unclear on how to urlPrefix my maps. HOT 6
- Using the "filesToDeleteAfterUpload" plugin setting breaks source maps with esbuild plugin HOT 3
- Proxy for uploading sourcemaps? HOT 3
- reactComponentAnnotation. I use an unintended value for a prop. HOT 1
- Sentry Vite Plugin throws error while building the app: TypeError: Converting circular structure to JSON HOT 2
- error: release not found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-javascript-bundler-plugins.