MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / run

Function run

packages/bundler-plugins/src/webpack/webpack4and5.ts:279–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277 const upload = createDebugIdUploadFunction({ sentryBuildPluginManager });
278
279 const run = async (): Promise<void> => {
280 try {
281 await sentryBuildPluginManager.createRelease();
282 if (sourcemapsEnabled && options.sourcemaps?.disable !== 'disable-upload') {
283 const outputPath = compilation.outputOptions.path ?? path.resolve();
284 const buildArtifacts = Object.keys(compilation.assets).map(asset => path.join(outputPath, asset));
285 await upload(buildArtifacts);
286 }
287 } finally {
288 freeGlobalDependencyOnBuildArtifacts();
289 await sentryBuildPluginManager.deleteArtifacts();
290 }
291 };
292
293 run().then(
294 () => callback(),

Callers 1

applyFunction · 0.70

Calls 2

resolveMethod · 0.65
keysMethod · 0.65

Tested by

no test coverage detected