@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/esm/index.mjs
CHANGED
|
@@ -1088,7 +1088,7 @@ function makeSentryClient(dsn, allowedToSendTelemetryPromise, userProject) {
|
|
|
1088
1088
|
// a dashboard.
|
|
1089
1089
|
// Yes, this is slightly abusing the purpose of this field.
|
|
1090
1090
|
dist: userProject,
|
|
1091
|
-
release: "0.5.
|
|
1091
|
+
release: "0.5.1",
|
|
1092
1092
|
integrations: [],
|
|
1093
1093
|
tracePropagationTargets: ["sentry.io/api"],
|
|
1094
1094
|
stackParser: defaultStackParser,
|
|
@@ -2211,10 +2211,14 @@ var unplugin = createUnplugin(function (options, unpluginMetaContext) {
|
|
|
2211
2211
|
});
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
|
-
|
|
2214
|
+
if (process.cwd().match(/\\node_modules\\|\/node_modules\//)) {
|
|
2215
|
+
logger.warn("Running Sentry plugin from within a `node_modules` folder. Some features may not work.");
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
_context.next = 8;
|
|
2215
2219
|
return releaseNamePromise;
|
|
2216
2220
|
|
|
2217
|
-
case
|
|
2221
|
+
case 8:
|
|
2218
2222
|
releaseName = _context.sent;
|
|
2219
2223
|
|
|
2220
2224
|
// At this point, we either have determined a release or we have to bail
|
|
@@ -2233,7 +2237,7 @@ var unplugin = createUnplugin(function (options, unpluginMetaContext) {
|
|
|
2233
2237
|
cli: cli
|
|
2234
2238
|
}, "function.plugin.inject_release", "Release injection");
|
|
2235
2239
|
|
|
2236
|
-
case
|
|
2240
|
+
case 12:
|
|
2237
2241
|
case "end":
|
|
2238
2242
|
return _context.stop();
|
|
2239
2243
|
}
|
|
@@ -2274,9 +2278,14 @@ var unplugin = createUnplugin(function (options, unpluginMetaContext) {
|
|
|
2274
2278
|
transformInclude: function transformInclude(id) {
|
|
2275
2279
|
logger.debug('Called "transformInclude":', {
|
|
2276
2280
|
id: id
|
|
2277
|
-
});
|
|
2281
|
+
});
|
|
2282
|
+
|
|
2283
|
+
if (id.match(/\\node_modules\\|\/node_modules\//)) {
|
|
2284
|
+
return false; // never transform 3rd party modules
|
|
2285
|
+
} // We normalize the id because vite always passes `id` as a unix style path which causes problems when a user passes
|
|
2278
2286
|
// a windows style path to `releaseInjectionTargets`
|
|
2279
2287
|
|
|
2288
|
+
|
|
2280
2289
|
var normalizedId = path__default.normalize(id);
|
|
2281
2290
|
|
|
2282
2291
|
if (id.includes("sentry-release-injection-file")) {
|