@sentry/bundler-plugin-core 0.5.0 → 0.5.1
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/cjs/index.js +14 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +14 -5
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1121,7 +1121,7 @@ function makeSentryClient(dsn, allowedToSendTelemetryPromise, userProject) {
|
|
|
1121
1121
|
// a dashboard.
|
|
1122
1122
|
// Yes, this is slightly abusing the purpose of this field.
|
|
1123
1123
|
dist: userProject,
|
|
1124
|
-
release: "0.5.
|
|
1124
|
+
release: "0.5.1",
|
|
1125
1125
|
integrations: [],
|
|
1126
1126
|
tracePropagationTargets: ["sentry.io/api"],
|
|
1127
1127
|
stackParser: node.defaultStackParser,
|
|
@@ -2244,10 +2244,14 @@ var unplugin = unplugin$1.createUnplugin(function (options, unpluginMetaContext)
|
|
|
2244
2244
|
});
|
|
2245
2245
|
}
|
|
2246
2246
|
|
|
2247
|
-
|
|
2247
|
+
if (process.cwd().match(/\\node_modules\\|\/node_modules\//)) {
|
|
2248
|
+
logger.warn("Running Sentry plugin from within a `node_modules` folder. Some features may not work.");
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
_context.next = 8;
|
|
2248
2252
|
return releaseNamePromise;
|
|
2249
2253
|
|
|
2250
|
-
case
|
|
2254
|
+
case 8:
|
|
2251
2255
|
releaseName = _context.sent;
|
|
2252
2256
|
|
|
2253
2257
|
// At this point, we either have determined a release or we have to bail
|
|
@@ -2266,7 +2270,7 @@ var unplugin = unplugin$1.createUnplugin(function (options, unpluginMetaContext)
|
|
|
2266
2270
|
cli: cli
|
|
2267
2271
|
}, "function.plugin.inject_release", "Release injection");
|
|
2268
2272
|
|
|
2269
|
-
case
|
|
2273
|
+
case 12:
|
|
2270
2274
|
case "end":
|
|
2271
2275
|
return _context.stop();
|
|
2272
2276
|
}
|
|
@@ -2307,9 +2311,14 @@ var unplugin = unplugin$1.createUnplugin(function (options, unpluginMetaContext)
|
|
|
2307
2311
|
transformInclude: function transformInclude(id) {
|
|
2308
2312
|
logger.debug('Called "transformInclude":', {
|
|
2309
2313
|
id: id
|
|
2310
|
-
});
|
|
2314
|
+
});
|
|
2315
|
+
|
|
2316
|
+
if (id.match(/\\node_modules\\|\/node_modules\//)) {
|
|
2317
|
+
return false; // never transform 3rd party modules
|
|
2318
|
+
} // We normalize the id because vite always passes `id` as a unix style path which causes problems when a user passes
|
|
2311
2319
|
// a windows style path to `releaseInjectionTargets`
|
|
2312
2320
|
|
|
2321
|
+
|
|
2313
2322
|
var normalizedId = path__default["default"].normalize(id);
|
|
2314
2323
|
|
|
2315
2324
|
if (id.includes("sentry-release-injection-file")) {
|