question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible not to inject release into chunk?

See original GitHub issue

Somewhat similar to #93 but simpler request:

I had beautiful reproducible builds, then I wanted to push map files up to sentry the easy way, and tried @sentry/webpack-plugin, and lo and behold, it injects release git has into the largest chunk that webpack outputs.

Here’s the beautified diff:

@@ -1,4 +1,4 @@
-/*! For license information please see 2.0ccaa625.chunk.js.LICENSE.txt */
+/*! For license information please see 2.d819ca89.chunk.js.LICENSE.txt */
 (this.webpackJsonpXXX = this.webpackJsonpXXX || []).push([
     [2],
     [function(e, t, n) {
@@ -11453,7 +11453,7 @@
             ("undefined" !== typeof window ? window : "undefined" !==
                 typeof e ? e : "undefined" !== typeof self ? self : {})
             .SENTRY_RELEASE = {
-                id: "acb1212d2e588cf8c71f9608e5ca99f6c0add460"
+                id: "71a1cf60123d0c252552cf2ba146bf8ebed08dc0"
             }
         }).call(this, n(43))
     }, function(e, t, n) {
@@ -29769,4 +29769,4 @@
         }(r.a)
     }]
 ]);
-//# sourceMappingURL=2.0ccaa625.chunk.js.map
\ No newline at end of file
+//# sourceMappingURL=2.d819ca89.chunk.js.map
\ No newline at end of file

Is there a switch to not do that?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dimaqqcommented, Mar 24, 2021

I do this after yarn build (and deployment):

npx @sentry/cli releases --org XX --project XX new "${CIRCLE_SHA1:0:7}"
npx @sentry/cli releases --org XX --project XX files "${CIRCLE_SHA1:0:7}" upload-sourcemaps --rewrite build
npx @sentry/cli releases --org XX --project XX finalize "${CIRCLE_SHA1:0:7}"

IIRC --rewrite actually modifies files in build/, so I do this at the very end.

1reaction
aipheecommented, Mar 24, 2021

@dimaqq Hi, would you be please willing to share how you cli upload code looks?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent commonsChunkPlugin from injecting the ...
I am using preload-webpack-plugin along with the commonschunkplugin for webpack. My webpack version is 3. Now the issue is that using the ...
Read more >
Avoiding unconscious injection of vial-derived rubber particles ...
Therefore, our first hypothesis, that coring may be reduced if a thinner needle is used for injection than for aspiration could not be...
Read more >
Proper Injection Technique to Prevent Coring
Knowing the parts of a syringe and needle is crucial, not only for proper injection techniques but also to keep an aseptic field...
Read more >
filtration method preference among injecting drug users - PMC
Drug preparations are commonly filtered by illicit drug users before injection in order to eliminate impurities of the drug containing ...
Read more >
SplitChunksPlugin - webpack
By default it only affects on-demand chunks, because changing initial chunks would affect the script tags the HTML file should include to run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found