@sentry/bundler-plugin-core 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.mjs
CHANGED
|
@@ -8270,7 +8270,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8270
8270
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
8271
8271
|
tracesSampleRate: 1,
|
|
8272
8272
|
sampleRate: 1,
|
|
8273
|
-
release: "4.
|
|
8273
|
+
release: "4.4.0",
|
|
8274
8274
|
integrations: [],
|
|
8275
8275
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8276
8276
|
stackParser: stackParser,
|
|
@@ -8438,12 +8438,16 @@ function createDebugIdUploadFunction(_ref) {
|
|
|
8438
8438
|
var sentryBuildPluginManager = _ref.sentryBuildPluginManager;
|
|
8439
8439
|
return /*#__PURE__*/function () {
|
|
8440
8440
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(buildArtifactPaths) {
|
|
8441
|
+
var cleanedPaths;
|
|
8441
8442
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8442
8443
|
while (1) switch (_context.prev = _context.next) {
|
|
8443
8444
|
case 0:
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8445
|
+
// Webpack and perhaps other bundlers allow you to append query strings to
|
|
8446
|
+
// filenames for cache busting purposes. We should strip these before upload.
|
|
8447
|
+
cleanedPaths = buildArtifactPaths.map(stripQueryAndHashFromPath);
|
|
8448
|
+
_context.next = 3;
|
|
8449
|
+
return sentryBuildPluginManager.uploadSourcemaps(cleanedPaths);
|
|
8450
|
+
case 3:
|
|
8447
8451
|
case "end":
|
|
8448
8452
|
return _context.stop();
|
|
8449
8453
|
}
|
|
@@ -8873,7 +8877,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
8873
8877
|
});
|
|
8874
8878
|
|
|
8875
8879
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
8876
|
-
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.
|
|
8880
|
+
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.4.0");
|
|
8877
8881
|
|
|
8878
8882
|
// Not a bulletproof check but should be good enough to at least sometimes determine
|
|
8879
8883
|
// if the plugin is called in dev/watch mode or for a prod build. The important part
|