@sentry/bundler-plugins 11.13.0 → 11.15.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/build/cjs/bun/index.js +6 -2
- package/build/cjs/bun/index.js.map +1 -1
- package/build/cjs/core/build-plugin-manager.js +6 -2
- package/build/cjs/core/build-plugin-manager.js.map +1 -1
- package/build/cjs/core/debug-id-upload.js +1 -1
- package/build/cjs/core/debug-id-upload.js.map +1 -1
- package/build/cjs/core/index.js +3 -0
- package/build/cjs/core/index.js.map +1 -1
- package/build/cjs/core/options-mapping.js +6 -1
- package/build/cjs/core/options-mapping.js.map +1 -1
- package/build/cjs/core/sentry/telemetry.js +3 -0
- package/build/cjs/core/sentry/telemetry.js.map +1 -1
- package/build/cjs/core/sentry/transports.js +1 -1
- package/build/cjs/core/sourcemap-settings.js +85 -5
- package/build/cjs/core/sourcemap-settings.js.map +1 -1
- package/build/cjs/core/utils.js +14 -6
- package/build/cjs/core/utils.js.map +1 -1
- package/build/cjs/core/version.js +1 -1
- package/build/cjs/core/version.js.map +1 -1
- package/build/cjs/esbuild/index.js +17 -11
- package/build/cjs/esbuild/index.js.map +1 -1
- package/build/cjs/rollup/index.js +20 -12
- package/build/cjs/rollup/index.js.map +1 -1
- package/build/cjs/rollup/source-map-handling.js +19 -1
- package/build/cjs/rollup/source-map-handling.js.map +1 -1
- package/build/cjs/vite/release-html-injection.js +33 -0
- package/build/cjs/vite/release-html-injection.js.map +1 -0
- package/build/cjs/vite/source-map-hooks.js +8 -6
- package/build/cjs/vite/source-map-hooks.js.map +1 -1
- package/build/cjs/webpack/index.js +40 -8
- package/build/cjs/webpack/index.js.map +1 -1
- package/build/esm/bun/index.js +6 -2
- package/build/esm/bun/index.js.map +1 -1
- package/build/esm/core/build-plugin-manager.js +7 -3
- package/build/esm/core/build-plugin-manager.js.map +1 -1
- package/build/esm/core/debug-id-upload.js +1 -1
- package/build/esm/core/debug-id-upload.js.map +1 -1
- package/build/esm/core/index.js +3 -3
- package/build/esm/core/index.js.map +1 -1
- package/build/esm/core/options-mapping.js +7 -2
- package/build/esm/core/options-mapping.js.map +1 -1
- package/build/esm/core/sentry/telemetry.js +3 -0
- package/build/esm/core/sentry/telemetry.js.map +1 -1
- package/build/esm/core/sentry/transports.js +1 -1
- package/build/esm/core/sourcemap-settings.js +84 -6
- package/build/esm/core/sourcemap-settings.js.map +1 -1
- package/build/esm/core/utils.js +11 -4
- package/build/esm/core/utils.js.map +1 -1
- package/build/esm/core/version.js +1 -1
- package/build/esm/core/version.js.map +1 -1
- package/build/esm/esbuild/index.js +17 -11
- package/build/esm/esbuild/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/rollup/index.js +20 -12
- package/build/esm/rollup/index.js.map +1 -1
- package/build/esm/rollup/source-map-handling.js +19 -1
- package/build/esm/rollup/source-map-handling.js.map +1 -1
- package/build/esm/vite/release-html-injection.js +33 -0
- package/build/esm/vite/release-html-injection.js.map +1 -0
- package/build/esm/vite/source-map-hooks.js +9 -7
- package/build/esm/vite/source-map-hooks.js.map +1 -1
- package/build/esm/webpack/index.js +40 -8
- package/build/esm/webpack/index.js.map +1 -1
- package/build/types/bun/index.d.ts.map +1 -1
- package/build/types/core/build-plugin-manager.d.ts.map +1 -1
- package/build/types/core/debug-id-upload.d.ts +1 -1
- package/build/types/core/index.d.ts +2 -2
- package/build/types/core/index.d.ts.map +1 -1
- package/build/types/core/options-mapping.d.ts +4 -1
- package/build/types/core/options-mapping.d.ts.map +1 -1
- package/build/types/core/sentry/telemetry.d.ts.map +1 -1
- package/build/types/core/sourcemap-settings.d.ts +19 -0
- package/build/types/core/sourcemap-settings.d.ts.map +1 -1
- package/build/types/core/types.d.ts +54 -1
- package/build/types/core/types.d.ts.map +1 -1
- package/build/types/core/utils.d.ts +7 -0
- package/build/types/core/utils.d.ts.map +1 -1
- package/build/types/core/version.d.ts +1 -1
- package/build/types/esbuild/index.d.ts.map +1 -1
- package/build/types/rollup/index.d.ts +36 -5
- package/build/types/rollup/index.d.ts.map +1 -1
- package/build/types/rollup/source-map-handling.d.ts +5 -0
- package/build/types/rollup/source-map-handling.d.ts.map +1 -1
- package/build/types/vite/release-html-injection.d.ts +31 -0
- package/build/types/vite/release-html-injection.d.ts.map +1 -0
- package/build/types/vite/source-map-hooks.d.ts +1 -0
- package/build/types/vite/source-map-hooks.d.ts.map +1 -1
- package/build/types/webpack/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/webpack/index.ts"],"sourcesContent":["/* oxlint-disable max-lines */\n\nimport type {\n InternalOptions,\n Options,\n SourceMapDecision,\n SourceMapKind,\n UploadFilter,\n UploadStaging,\n} from '../core/index';\nimport {\n createSentryBuildPluginManager,\n generateReleaseInjectorCode,\n generateModuleMetadataInjectorCode,\n stringToUUID,\n createComponentNameAnnotateHooks,\n CodeInjection,\n getDebugIdSnippet,\n createDebugIdUploadFunction,\n getCodeInjectionPosition,\n isJsFile,\n stampDebugId,\n} from '../core/index';\nimport * as path from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { createRequire } from 'node:module';\nimport { randomUUID } from 'node:crypto';\n\nconst _req = createRequire(import.meta.url);\n\n// Resolve the loader path via the package's own exports.\n// This module may end up in a shared chunk (_chunks/) whose import.meta.url\n// does not point to the webpack/ directory where the transform file lives, so\n// a path-relative lookup would fail. Using require.resolve on the package export\n// always finds the correct installed file regardless of chunk placement.\nlet COMPONENT_ANNOTATION_LOADER: string;\ntry {\n COMPONENT_ANNOTATION_LOADER = _req.resolve('@sentry/bundler-plugins/webpack-loader');\n} catch {\n // Fallback for non-packaged environments (e.g., monorepo source runs without dist)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Rollup transpiles import.meta for us for CJS\n const dirname = path.dirname(fileURLToPath(import.meta.url));\n // The Rollup build emits `.js` for both CJS and ESM, so the extension is the same in both.\n COMPONENT_ANNOTATION_LOADER = path.resolve(dirname, 'component-annotation-transform.js');\n}\n\ntype PluginClass = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n new (options: any): unknown;\n};\n\ntype WebpackSource = {\n source: () => string | Buffer;\n};\n\ntype WebpackRawSource = {\n new (source: string): WebpackSource;\n};\n\ntype WebpackReplaceSource = WebpackSource & {\n insert: (position: number, value: string) => void;\n};\n\nconst WEBPACK_JAVASCRIPT_ASSET_REGEX = /\\.(?:js|ts|jsx|tsx|mjs|cjs|mts|cts)(?:\\?[^?]*)?(?:#[^#]*)?$/;\n\ntype WebpackAsset = {\n name: string;\n source: WebpackSource;\n info: {\n related?: {\n sourceMap?: string | string[];\n };\n };\n};\n\ntype WebpackCompiler = {\n options: {\n plugins?: unknown[];\n mode?: string;\n devtool?: string | false;\n module?: {\n rules?: unknown[];\n };\n };\n hooks: {\n compilation: {\n tap: (name: string, callback: (compilation: WebpackCompilation) => void) => void;\n };\n thisCompilation: {\n tap: (name: string, callback: (compilation: WebpackCompilation) => void) => void;\n };\n emit: {\n tap: (name: string, callback: (compilation: WebpackCompilation) => void) => void;\n };\n afterEmit: {\n tapAsync: (name: string, callback: (compilation: WebpackCompilation, cb: () => void) => void) => void;\n };\n done: {\n tap: (name: string, callback: () => void) => void;\n };\n failed?: {\n tap: (name: string, callback: () => void) => void;\n };\n };\n webpack?: {\n DefinePlugin?: PluginClass;\n Compilation?: {\n PROCESS_ASSETS_STAGE_ADDITIONS?: number;\n PROCESS_ASSETS_STAGE_DEV_TOOLING?: number;\n PROCESS_ASSETS_STAGE_REPORT?: number;\n };\n sources?: {\n RawSource?: WebpackRawSource;\n ReplaceSource?: new (source: WebpackSource) => WebpackReplaceSource;\n };\n };\n};\n\ntype WebpackCompilation = {\n chunks: Iterable<{\n files: Iterable<string>;\n hash?: string;\n contentHash?: { javascript?: string };\n canBeInitial?: () => boolean;\n }>;\n outputOptions: {\n path?: string;\n };\n assets: Record<string, unknown>;\n getAssets: () => WebpackAsset[];\n getAsset: (name: string) => WebpackAsset | undefined;\n updateAsset: (name: string, source: WebpackSource) => void;\n deleteAsset: (name: string) => void;\n hooks: {\n processAssets: {\n tap: (\n options: { name: string; stage: number },\n callback: (assets: Record<string, WebpackSource>) => void,\n ) => void;\n tapPromise: (options: { name: string; stage: number }, callback: () => Promise<void>) => void;\n };\n };\n};\n\n/**\n * Maps webpack's `devtool` onto the plugin's source map kinds. A user who sets `devtool: false`\n * and adds a `SourceMapDevToolPlugin` manages source maps themselves.\n */\nfunction sourceMapKindFromDevtool(compiler: WebpackCompiler): SourceMapKind | undefined {\n const devtool = compiler.options.devtool;\n\n if (devtool === undefined) {\n return 'unset';\n }\n if (devtool === false) {\n const hasSourceMapPlugin = compiler.options.plugins?.some(\n plugin =>\n (plugin as { constructor?: { name?: string } } | undefined)?.constructor?.name === 'SourceMapDevToolPlugin',\n );\n return hasSourceMapPlugin ? undefined : 'off';\n }\n // Plain `eval` has no source maps at all.\n if (!devtool.includes('source-map')) {\n return 'off';\n }\n if (devtool.includes('inline') || devtool.includes('eval')) {\n return 'inline';\n }\n if (devtool.includes('hidden')) {\n return 'hidden';\n }\n return 'visible';\n}\n\ntype WebpackModule = {\n version?: string;\n default?: { version?: string };\n};\n\n// Only used for telemetry; `webpack` is an optional peer dependency and may be absent (e.g. rspack).\nfunction getWebpackMajorVersion(): string | undefined {\n try {\n const webpack = _req('webpack') as WebpackModule;\n const version = webpack.version ?? webpack.default?.version;\n return version?.split('.')[0];\n } catch {\n return undefined;\n }\n}\n\n/**\n * Stamps each JS asset's debug ID into the asset itself and its source map asset.\n *\n * Runs after source maps have been generated, so the JS asset no longer needs to carry\n * source map information and can be replaced with a plain `RawSource`.\n */\nfunction addDebugIdsToAssets(compilation: WebpackCompilation, RawSource: WebpackRawSource): void {\n for (const asset of compilation.getAssets()) {\n if (!isJsFile(asset.name)) {\n continue;\n }\n\n const bundleSource = asset.source.source().toString();\n const relatedSourceMap = asset.info.related?.sourceMap;\n const sourceMapName = typeof relatedSourceMap === 'string' ? relatedSourceMap : `${asset.name}.map`;\n const sourceMapAsset = compilation.getAsset(sourceMapName);\n\n const stamped = stampDebugId(bundleSource, sourceMapAsset?.source.source().toString());\n if (!stamped) {\n continue;\n }\n\n compilation.updateAsset(asset.name, new RawSource(stamped.bundleSource));\n if (stamped.sourceMapSource !== undefined) {\n compilation.updateAsset(sourceMapName, new RawSource(stamped.sourceMapSource));\n }\n }\n}\n\n/** Drops a source map asset and its compressed variants from the compilation. */\nfunction deleteSourceMapAssets(compilation: WebpackCompilation, sourceMapName: string): void {\n for (const candidate of compilation.getAssets()) {\n if (candidate.name === sourceMapName || candidate.name.startsWith(`${sourceMapName}.`)) {\n compilation.deleteAsset(candidate.name);\n }\n }\n}\n\n/**\n * Drops the source maps of the JS assets that an upload would include. With `removeAll` it drops\n * the source maps of all assets, CSS included.\n */\nfunction dropSourceMaps(compilation: WebpackCompilation, shouldUpload: UploadFilter, removeAll: boolean): void {\n const outputPath = compilation.outputOptions.path ?? path.resolve();\n\n for (const asset of compilation.getAssets()) {\n if (!removeAll && (!isJsFile(asset.name) || !shouldUpload(path.join(outputPath, asset.name)))) {\n continue;\n }\n const relatedSourceMap = asset.info.related?.sourceMap;\n const sourceMapName = typeof relatedSourceMap === 'string' ? relatedSourceMap : `${asset.name}.map`;\n if (compilation.getAsset(sourceMapName)) {\n deleteSourceMapAssets(compilation, sourceMapName);\n }\n }\n}\n\n/**\n * Copies each JS asset and its source map into the upload staging folder and drops the source map\n * assets (and their compressed variants) from the compilation, so webpack never emits them.\n *\n * A map the plugin or the SDK turned on (`pluginEnabledMaps`) never reaches the output, whether or\n * not its asset is uploaded. That covers CSS maps, which `devtool` turns on along with the JS ones.\n * A map the user enabled stays unless it was staged.\n */\nasync function stageSourceMaps(\n compilation: WebpackCompilation,\n staging: UploadStaging,\n logger: { warn: (message: string) => void },\n pluginEnabledMaps: boolean,\n): Promise<void> {\n const outputPath = compilation.outputOptions.path ?? path.resolve();\n\n for (const asset of compilation.getAssets()) {\n const relatedSourceMap = asset.info.related?.sourceMap;\n const sourceMapName = typeof relatedSourceMap === 'string' ? relatedSourceMap : `${asset.name}.map`;\n const sourceMapAsset = compilation.getAsset(sourceMapName);\n if (!sourceMapAsset) {\n continue;\n }\n\n if (!isJsFile(asset.name)) {\n if (pluginEnabledMaps) {\n deleteSourceMapAssets(compilation, sourceMapName);\n }\n continue;\n }\n\n const result = await staging.stage({\n code: asset.source.source().toString(),\n mapSource: sourceMapAsset.source.source().toString(),\n mapDir: path.join(outputPath, path.dirname(sourceMapName)),\n chunkPath: path.join(outputPath, asset.name),\n });\n\n if (result === 'skipped' || result === 'failed') {\n logger.warn(\n pluginEnabledMaps\n ? `Could not prepare ${asset.name} for upload, so it is not uploaded and its source map ${sourceMapName} was removed from the build output.`\n : `Could not prepare ${asset.name} for upload, so its source map ${sourceMapName} stays in the build output.`,\n );\n }\n if (result === 'staged' || pluginEnabledMaps) {\n deleteSourceMapAssets(compilation, sourceMapName);\n }\n }\n}\n\nfunction createSentryWebpackPlugin(userOptions: SentryWebpackPluginInternalOptions = {}) {\n const sentryBuildPluginManager = createSentryBuildPluginManager(userOptions, {\n loggerPrefix: userOptions._metaOptions?.loggerPrefixOverride ?? '[sentry-webpack-plugin]',\n buildTool: 'webpack',\n buildToolMajorVersion: getWebpackMajorVersion(),\n });\n\n const {\n logger,\n normalizedOptions: options,\n bundleSizeOptimizationReplacementValues: replacementValues,\n bundleMetadata,\n createDependencyOnBuildArtifacts,\n } = sentryBuildPluginManager;\n\n if (options.disable) {\n return {\n apply() {\n // noop plugin\n },\n };\n }\n\n if (process.cwd().match(/\\\\node_modules\\\\|\\/node_modules\\//)) {\n logger.warn('Running Sentry plugin from within a `node_modules` folder. Some features may not work.');\n }\n\n const sourcemapsEnabled = options.sourcemaps?.disable !== true;\n const releaseInjectionCode = new CodeInjection();\n const chunkInjectionCode = new CodeInjection();\n\n if (!options.release.inject) {\n logger.debug('Release injection disabled via `release.inject` option. Will not inject release.');\n } else if (!options.release.name) {\n logger.debug(\n 'No release name provided. Will not inject release. Please set the `release.name` option to identify your release.',\n );\n } else {\n releaseInjectionCode.append(\n generateReleaseInjectorCode({\n release: options.release.name,\n injectBuildInformation: options._experiments.injectBuildInformation || false,\n }),\n );\n }\n\n if (Object.keys(bundleMetadata).length > 0) {\n chunkInjectionCode.append(generateModuleMetadataInjectorCode(bundleMetadata));\n }\n\n const transformAnnotations = options.reactComponentAnnotation?.enabled\n ? createComponentNameAnnotateHooks(\n options.reactComponentAnnotation?.ignoredComponents || [],\n !!options.reactComponentAnnotation?._experimentalInjectIntoHtml,\n { logger },\n )\n : undefined;\n\n const transformReplace = Object.keys(replacementValues).length > 0;\n\n function decideSourceMaps(compiler: WebpackCompiler): { kind?: SourceMapKind; decision: SourceMapDecision } {\n const kind = compiler.options.mode === 'development' ? undefined : sourceMapKindFromDevtool(compiler);\n if (kind === undefined) {\n return { decision: { enableHidden: false, deleteAfterUpload: false } };\n }\n\n const decision = sentryBuildPluginManager.sourceMaps.decide(kind);\n\n if (decision.enableHidden) {\n compiler.options.devtool = kind === 'visible' ? `hidden-${compiler.options.devtool}` : 'hidden-source-map';\n }\n\n return { kind, decision };\n }\n\n function addCodeInjection(compiler: WebpackCompiler): void {\n if (releaseInjectionCode.isEmpty() && chunkInjectionCode.isEmpty() && !sourcemapsEnabled) {\n return;\n }\n\n const ReplaceSource = compiler.webpack?.sources?.ReplaceSource;\n const processAssetsStage = compiler.webpack?.Compilation?.PROCESS_ASSETS_STAGE_ADDITIONS;\n\n if (!ReplaceSource || processAssetsStage === undefined) {\n logger.warn(\n 'Webpack sources are not available. Skipping code injection. This usually means webpack is not properly configured.',\n );\n return;\n }\n\n compiler.hooks.compilation.tap('sentry-webpack-plugin-injection', compilation => {\n compilation.hooks.processAssets.tap(\n {\n name: 'sentry-webpack-plugin-injection',\n stage: processAssetsStage,\n },\n assets => {\n const injectedAssets = new Set<string>();\n\n for (const chunk of compilation.chunks) {\n for (const assetName of chunk.files) {\n if (injectedAssets.has(assetName) || !WEBPACK_JAVASCRIPT_ASSET_REGEX.test(assetName)) {\n continue;\n }\n\n const source = assets[assetName];\n if (!source) {\n continue;\n }\n injectedAssets.add(assetName);\n\n const sourceContents = source.source();\n const code = typeof sourceContents === 'string' ? sourceContents : Buffer.from(sourceContents).toString();\n const codeToInject = new CodeInjection();\n if (chunk.canBeInitial?.() ?? true) {\n codeToInject.append(releaseInjectionCode);\n }\n codeToInject.append(chunkInjectionCode);\n if (sourcemapsEnabled) {\n const hash = chunk.contentHash?.javascript ?? chunk.hash;\n codeToInject.append(getDebugIdSnippet(hash ? stringToUUID(hash) : randomUUID()));\n }\n\n const injectionPosition = getCodeInjectionPosition(code);\n const injection = injectionPosition === code.length ? `\\n${codeToInject.code()}` : codeToInject.code();\n const updatedSource = new ReplaceSource(source);\n updatedSource.insert(injectionPosition, injection);\n compilation.updateAsset(assetName, updatedSource);\n }\n }\n },\n );\n });\n }\n\n return {\n apply(compiler: WebpackCompiler) {\n void sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal().catch(() => {\n // Telemetry failures are acceptable\n });\n\n const { DefinePlugin } = compiler.webpack ?? {};\n\n // One plugin instance can serve several compilers (`MultiCompiler`) and\n // a compiler several compilations (watch mode), so nothing is shared.\n const { decision: sourceMapDecision } = decideSourceMaps(compiler);\n const removeAllSourceMaps = sourceMapDecision.removeAllSourceMaps === true;\n const pendingStagings = new Map<WebpackCompilation, UploadStaging>();\n\n // After `RealContentHashPlugin` rewrote the hash placeholders, so the staged\n // JS equals the emitted file and `[contenthash]` names are final.\n const deleteStage = (compiler.webpack?.Compilation?.PROCESS_ASSETS_STAGE_REPORT ?? 5000) + 1;\n\n if (sourceMapDecision.deleteAfterUpload && !sentryBuildPluginManager.sourceMaps.uploadPossible) {\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n compilation.hooks.processAssets.tap({ name: 'sentry-webpack-plugin', stage: deleteStage }, () => {\n dropSourceMaps(compilation, sentryBuildPluginManager.sourceMaps.shouldUpload, removeAllSourceMaps);\n });\n });\n } else if (sourceMapDecision.deleteAfterUpload) {\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n compilation.hooks.processAssets.tapPromise(\n { name: 'sentry-webpack-plugin', stage: deleteStage },\n async () => {\n const staging = await sentryBuildPluginManager.createUploadStaging();\n pendingStagings.set(compilation, staging);\n await stageSourceMaps(compilation, staging, logger, removeAllSourceMaps);\n },\n );\n });\n\n // A staging that `afterEmit` never took belongs to a compilation that\n // failed before emitting, or to one whose assets were emitted without\n // their maps because an earlier `afterEmit` tap failed. Only the\n // second kind has no other copy of the maps.\n const emittedCompilations = new Set<WebpackCompilation>();\n compiler.hooks.emit.tap('sentry-webpack-plugin', compilation => {\n emittedCompilations.add(compilation);\n });\n const settlePendingStagings = (): void => {\n for (const [compilation, staging] of pendingStagings) {\n if (emittedCompilations.has(compilation)) {\n void staging.keep('The source map upload did not run.');\n } else {\n void staging.discard();\n }\n }\n pendingStagings.clear();\n emittedCompilations.clear();\n };\n compiler.hooks.done.tap('sentry-webpack-plugin', settlePendingStagings);\n compiler.hooks.failed?.tap('sentry-webpack-plugin', settlePendingStagings);\n }\n\n // BannerPlugin prepends executable code before directive prologues.\n addCodeInjection(compiler);\n\n // The upload routine (which stamps debug IDs into temp copies of the artifacts) is skipped\n // with `disable-upload`, so the emitted artifacts get stamped in the asset pipeline instead.\n if (sourcemapsEnabled && options.sourcemaps?.disable === 'disable-upload') {\n const RawSource = compiler.webpack?.sources?.RawSource;\n // Right after source map generation (and thus after minification, which would strip the comment),\n // so later stages (real content hashing, subresource integrity) see the final assets.\n const stage = (compiler.webpack?.Compilation?.PROCESS_ASSETS_STAGE_DEV_TOOLING ?? 500) + 1;\n\n if (!RawSource) {\n logger.warn(\n 'Webpack sources are not available. Skipping debug ID injection into emitted source maps. This usually means webpack is not properly configured.',\n );\n } else {\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n compilation.hooks.processAssets.tap({ name: 'sentry-webpack-plugin', stage }, () => {\n addDebugIdsToAssets(compilation, RawSource);\n });\n });\n }\n }\n\n // Add DefinePlugin for bundle size optimizations\n if (transformReplace && DefinePlugin) {\n compiler.options.plugins = compiler.options.plugins || [];\n compiler.options.plugins.push(new DefinePlugin(replacementValues));\n }\n\n // Add component name annotation transform\n if (transformAnnotations?.transform) {\n compiler.options.module = compiler.options.module || {};\n compiler.options.module.rules = compiler.options.module.rules || [];\n compiler.options.module.rules.unshift({\n test: /\\.[jt]sx$/,\n exclude: /node_modules/,\n enforce: 'pre',\n use: [\n {\n loader: COMPONENT_ANNOTATION_LOADER,\n options: {\n transform: transformAnnotations.transform,\n },\n },\n ],\n });\n }\n\n compiler.hooks.afterEmit.tapAsync(\n 'sentry-webpack-plugin',\n (compilation: WebpackCompilation, callback: (err?: Error) => void) => {\n const freeGlobalDependencyOnBuildArtifacts = createDependencyOnBuildArtifacts();\n const upload = createDebugIdUploadFunction({ sentryBuildPluginManager });\n\n const staging = pendingStagings.get(compilation);\n pendingStagings.delete(compilation);\n let stagingHandedOver = false;\n\n const run = async (): Promise<void> => {\n try {\n await sentryBuildPluginManager.createRelease();\n if (sourcemapsEnabled && options.sourcemaps?.disable !== 'disable-upload') {\n const outputPath = compilation.outputOptions.path ?? path.resolve();\n const buildArtifacts = Object.keys(compilation.assets).map(asset => path.join(outputPath, asset));\n stagingHandedOver = true;\n await upload(buildArtifacts, { staging });\n } else {\n stagingHandedOver = true;\n await staging?.discard();\n }\n } catch (e) {\n if (!stagingHandedOver) {\n await staging?.keep('The source map upload did not run.');\n }\n throw e;\n } finally {\n freeGlobalDependencyOnBuildArtifacts();\n await sentryBuildPluginManager.deleteArtifacts();\n }\n };\n\n run().then(\n () => callback(),\n (err: Error) => callback(err),\n );\n },\n );\n\n if (userOptions._experiments?.forceExitOnBuildCompletion && compiler.options.mode === 'production') {\n compiler.hooks.done.tap('sentry-webpack-plugin', () => {\n setTimeout(() => {\n logger.debug('Exiting process after debug file upload');\n process.exit(0);\n });\n });\n }\n },\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryWebpackPlugin: (options?: SentryWebpackPluginInternalOptions) => any = createSentryWebpackPlugin;\n\n/** @internal For Sentry SDK packages only. See `InternalOptions`. */\nexport type SentryWebpackPluginInternalOptions = InternalOptions & WebpackExperiments;\n\nexport type SentryWebpackPluginOptions = Options & WebpackExperiments;\n\ntype WebpackExperiments = {\n _experiments?: Options['_experiments'] & {\n /**\n * If enabled, the webpack plugin will exit the build process after the build completes.\n * Use this with caution, as it will terminate the process.\n *\n * More information: https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/345\n *\n * @default false\n */\n forceExitOnBuildCompletion?: boolean;\n };\n};\n"],"mappings":";;;;;;;;;;;;AA4BA,MAAM,OAAO,cAAc,YAAY,GAAG;AAO1C,IAAI;AACJ,IAAI;CACF,8BAA8B,KAAK,QAAQ,wCAAwC;AACrF,QAAQ;CAIN,MAAM,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;CAE3D,8BAA8B,KAAK,QAAQ,SAAS,mCAAmC;AACzF;AAmBA,MAAM,iCAAiC;;;;;AAqFvC,SAAS,yBAAyB,UAAsD;CACtF,MAAM,UAAU,SAAS,QAAQ;CAEjC,IAAI,YAAY,KAAA,GACd,OAAO;CAET,IAAI,YAAY,OAKd,OAJ2B,SAAS,QAAQ,SAAS,MACnD,WACG,QAA4D,aAAa,SAAS,wBACvF,IAC4B,KAAA,IAAY;CAG1C,IAAI,CAAC,QAAQ,SAAS,YAAY,GAChC,OAAO;CAET,IAAI,QAAQ,SAAS,QAAQ,KAAK,QAAQ,SAAS,MAAM,GACvD,OAAO;CAET,IAAI,QAAQ,SAAS,QAAQ,GAC3B,OAAO;CAET,OAAO;AACT;AAQA,SAAS,yBAA6C;CACpD,IAAI;EACF,MAAM,UAAU,KAAK,SAAS;EAE9B,QADgB,QAAQ,WAAW,QAAQ,SAAS,QAAA,EACpC,MAAM,GAAG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R,qCAAqC;KACrC,MAAM,yBAAyB,gBAAgB;IACjD;GACF;GAEA,IAAI,CAAC,CAAC,WACE,SAAS,IACd,QAAe,SAAS,GAAG,CAC9B;EACF,CACF;EAEA,IAAI,YAAY,cAAc,8BAA8B,SAAS,QAAQ,SAAS,cACpF,SAAS,MAAM,KAAK,IAAI,+BAA+B;GACrD,iBAAiB;IACf,OAAO,MAAM,yCAAyC;IACtD,QAAQ,KAAK,CAAC;GAChB,CAAC;EACH,CAAC;CAEL,EACF;AACF;AAGA,MAAa,sBAA6E"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/webpack/index.ts"],"sourcesContent":["/* oxlint-disable max-lines */\n\nimport type {\n InternalOptions,\n Options,\n SourceMapDecision,\n SourceMapKind,\n UploadFilter,\n UploadStaging,\n} from '../core/index';\nimport {\n createSentryBuildPluginManager,\n generateReleaseInjectorCode,\n generateModuleMetadataInjectorCode,\n stringToUUID,\n createComponentNameAnnotateHooks,\n CodeInjection,\n getDebugIdSnippet,\n createDebugIdUploadFunction,\n getCodeInjectionPosition,\n isJsFile,\n stampDebugId,\n getSourceMapFeatures,\n} from '../core/index';\nimport * as path from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { createRequire } from 'node:module';\nimport { randomUUID } from 'node:crypto';\n\nconst _req = createRequire(import.meta.url);\n\n// Resolve the loader path via the package's own exports.\n// This module may end up in a shared chunk (_chunks/) whose import.meta.url\n// does not point to the webpack/ directory where the transform file lives, so\n// a path-relative lookup would fail. Using require.resolve on the package export\n// always finds the correct installed file regardless of chunk placement.\nlet COMPONENT_ANNOTATION_LOADER: string;\ntry {\n COMPONENT_ANNOTATION_LOADER = _req.resolve('@sentry/bundler-plugins/webpack-loader');\n} catch {\n // Fallback for non-packaged environments (e.g., monorepo source runs without dist)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore Rollup transpiles import.meta for us for CJS\n const dirname = path.dirname(fileURLToPath(import.meta.url));\n // The Rollup build emits `.js` for both CJS and ESM, so the extension is the same in both.\n COMPONENT_ANNOTATION_LOADER = path.resolve(dirname, 'component-annotation-transform.js');\n}\n\ntype PluginClass = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n new (options: any): unknown;\n};\n\ntype WebpackSource = {\n source: () => string | Buffer;\n};\n\ntype WebpackRawSource = {\n new (source: string): WebpackSource;\n};\n\ntype WebpackReplaceSource = WebpackSource & {\n insert: (position: number, value: string) => void;\n};\n\nconst WEBPACK_JAVASCRIPT_ASSET_REGEX = /\\.(?:js|ts|jsx|tsx|mjs|cjs|mts|cts)(?:\\?[^?]*)?(?:#[^#]*)?$/;\n\ntype WebpackAsset = {\n name: string;\n source: WebpackSource;\n info: {\n related?: {\n sourceMap?: string | string[];\n };\n };\n};\n\ntype WebpackCompiler = {\n options: {\n plugins?: unknown[];\n mode?: string;\n devtool?: string | false;\n module?: {\n rules?: unknown[];\n };\n };\n hooks: {\n compilation: {\n tap: (name: string, callback: (compilation: WebpackCompilation) => void) => void;\n };\n thisCompilation: {\n tap: (name: string, callback: (compilation: WebpackCompilation) => void) => void;\n };\n emit: {\n tap: (name: string, callback: (compilation: WebpackCompilation) => void) => void;\n };\n afterEmit: {\n tapAsync: (name: string, callback: (compilation: WebpackCompilation, cb: () => void) => void) => void;\n };\n done: {\n tap: (name: string, callback: () => void) => void;\n };\n failed?: {\n tap: (name: string, callback: () => void) => void;\n };\n };\n webpack?: {\n DefinePlugin?: PluginClass;\n Compilation?: {\n PROCESS_ASSETS_STAGE_ADDITIONS?: number;\n PROCESS_ASSETS_STAGE_DEV_TOOLING?: number;\n PROCESS_ASSETS_STAGE_REPORT?: number;\n };\n sources?: {\n RawSource?: WebpackRawSource;\n ReplaceSource?: new (source: WebpackSource) => WebpackReplaceSource;\n };\n };\n};\n\ntype WebpackCompilation = {\n chunks: Iterable<{\n files: Iterable<string>;\n hash?: string;\n contentHash?: { javascript?: string };\n canBeInitial?: () => boolean;\n }>;\n outputOptions: {\n path?: string;\n };\n assets: Record<string, unknown>;\n getAssets: () => WebpackAsset[];\n getAsset: (name: string) => WebpackAsset | undefined;\n updateAsset: (name: string, source: WebpackSource) => void;\n deleteAsset: (name: string) => void;\n hooks: {\n processAssets: {\n tap: (\n options: { name: string; stage: number },\n callback: (assets: Record<string, WebpackSource>) => void,\n ) => void;\n tapPromise: (options: { name: string; stage: number }, callback: () => Promise<void>) => void;\n };\n };\n};\n\ntype HtmlTagObject = {\n tagName: string;\n voidTag: boolean;\n attributes: Record<string, string | boolean>;\n meta: Record<string, unknown>;\n innerHTML?: string;\n};\n\n// The part of `html-webpack-plugin`'s API (v4 and later) that the plugin uses. Found among the\n// configured plugins instead of imported, because it is an optional dependency of the user.\ntype HtmlWebpackPluginClass = {\n getHooks: (compilation: WebpackCompilation) => {\n alterAssetTagGroups: {\n tap: (name: string, callback: <T extends { headTags: HtmlTagObject[] }>(data: T) => T) => void;\n };\n };\n};\n\nfunction findHtmlWebpackPlugin(compiler: WebpackCompiler): HtmlWebpackPluginClass | undefined {\n for (const plugin of compiler.options.plugins ?? []) {\n const pluginClass = (plugin as { constructor?: { name?: string; getHooks?: unknown } } | undefined)?.constructor;\n if (pluginClass?.name === 'HtmlWebpackPlugin' && typeof pluginClass.getHooks === 'function') {\n return pluginClass as HtmlWebpackPluginClass;\n }\n }\n return undefined;\n}\n\n/**\n * Maps webpack's `devtool` onto the plugin's source map kinds. A user who sets `devtool: false`\n * and adds a `SourceMapDevToolPlugin` manages source maps themselves.\n */\nfunction sourceMapKindFromDevtool(compiler: WebpackCompiler): SourceMapKind | undefined {\n const devtool = compiler.options.devtool;\n\n if (devtool === undefined) {\n return 'unset';\n }\n if (devtool === false) {\n const hasSourceMapPlugin = compiler.options.plugins?.some(\n plugin =>\n (plugin as { constructor?: { name?: string } } | undefined)?.constructor?.name === 'SourceMapDevToolPlugin',\n );\n return hasSourceMapPlugin ? undefined : 'off';\n }\n // Plain `eval` has no source maps at all.\n if (!devtool.includes('source-map')) {\n return 'off';\n }\n if (devtool.includes('inline') || devtool.includes('eval')) {\n return 'inline';\n }\n if (devtool.includes('hidden')) {\n return 'hidden';\n }\n return 'visible';\n}\n\ntype WebpackModule = {\n version?: string;\n default?: { version?: string };\n};\n\n// Only used for telemetry; `webpack` is an optional peer dependency and may be absent (e.g. rspack).\nfunction getWebpackMajorVersion(): string | undefined {\n try {\n const webpack = _req('webpack') as WebpackModule;\n const version = webpack.version ?? webpack.default?.version;\n return version?.split('.')[0];\n } catch {\n return undefined;\n }\n}\n\n/**\n * Stamps each JS asset's debug ID into the asset itself and its source map asset.\n *\n * Runs after source maps have been generated, so the JS asset no longer needs to carry\n * source map information and can be replaced with a plain `RawSource`.\n */\nfunction addDebugIdsToAssets(compilation: WebpackCompilation, RawSource: WebpackRawSource): void {\n for (const asset of compilation.getAssets()) {\n if (!isJsFile(asset.name)) {\n continue;\n }\n\n const bundleSource = asset.source.source().toString();\n const relatedSourceMap = asset.info.related?.sourceMap;\n const sourceMapName = typeof relatedSourceMap === 'string' ? relatedSourceMap : `${asset.name}.map`;\n const sourceMapAsset = compilation.getAsset(sourceMapName);\n\n const stamped = stampDebugId(bundleSource, sourceMapAsset?.source.source().toString());\n if (!stamped) {\n continue;\n }\n\n compilation.updateAsset(asset.name, new RawSource(stamped.bundleSource));\n if (stamped.sourceMapSource !== undefined) {\n compilation.updateAsset(sourceMapName, new RawSource(stamped.sourceMapSource));\n }\n }\n}\n\n/** Drops a source map asset and its compressed variants from the compilation. */\nfunction deleteSourceMapAssets(compilation: WebpackCompilation, sourceMapName: string): void {\n for (const candidate of compilation.getAssets()) {\n if (candidate.name === sourceMapName || candidate.name.startsWith(`${sourceMapName}.`)) {\n compilation.deleteAsset(candidate.name);\n }\n }\n}\n\n/**\n * Drops the source maps of the JS assets that an upload would include. With `removeAll` it drops\n * the source maps of all assets, CSS included.\n */\nfunction dropSourceMaps(compilation: WebpackCompilation, shouldUpload: UploadFilter, removeAll: boolean): void {\n const outputPath = compilation.outputOptions.path ?? path.resolve();\n\n for (const asset of compilation.getAssets()) {\n if (!removeAll && (!isJsFile(asset.name) || !shouldUpload(path.join(outputPath, asset.name)))) {\n continue;\n }\n const relatedSourceMap = asset.info.related?.sourceMap;\n const sourceMapName = typeof relatedSourceMap === 'string' ? relatedSourceMap : `${asset.name}.map`;\n if (compilation.getAsset(sourceMapName)) {\n deleteSourceMapAssets(compilation, sourceMapName);\n }\n }\n}\n\n/**\n * Copies each JS asset and its source map into the upload staging folder and drops the source map\n * assets (and their compressed variants) from the compilation, so webpack never emits them.\n *\n * A map the plugin or the SDK turned on (`pluginEnabledMaps`) never reaches the output, whether or\n * not its asset is uploaded. That covers CSS maps, which `devtool` turns on along with the JS ones.\n * A map the user enabled stays unless it was staged.\n */\nasync function stageSourceMaps(\n compilation: WebpackCompilation,\n staging: UploadStaging,\n logger: { warn: (message: string) => void },\n pluginEnabledMaps: boolean,\n): Promise<void> {\n const outputPath = compilation.outputOptions.path ?? path.resolve();\n\n for (const asset of compilation.getAssets()) {\n const relatedSourceMap = asset.info.related?.sourceMap;\n const sourceMapName = typeof relatedSourceMap === 'string' ? relatedSourceMap : `${asset.name}.map`;\n const sourceMapAsset = compilation.getAsset(sourceMapName);\n if (!sourceMapAsset) {\n continue;\n }\n\n if (!isJsFile(asset.name)) {\n if (pluginEnabledMaps) {\n deleteSourceMapAssets(compilation, sourceMapName);\n }\n continue;\n }\n\n const result = await staging.stage({\n code: asset.source.source().toString(),\n mapSource: sourceMapAsset.source.source().toString(),\n mapDir: path.join(outputPath, path.dirname(sourceMapName)),\n chunkPath: path.join(outputPath, asset.name),\n });\n\n if (result === 'skipped' || result === 'failed') {\n logger.warn(\n pluginEnabledMaps\n ? `Could not prepare ${asset.name} for upload, so it is not uploaded and its source map ${sourceMapName} was removed from the build output.`\n : `Could not prepare ${asset.name} for upload, so its source map ${sourceMapName} stays in the build output.`,\n );\n }\n if (result === 'staged' || pluginEnabledMaps) {\n deleteSourceMapAssets(compilation, sourceMapName);\n }\n }\n}\n\nfunction createSentryWebpackPlugin(userOptions: SentryWebpackPluginInternalOptions = {}) {\n const sentryBuildPluginManager = createSentryBuildPluginManager(userOptions, {\n loggerPrefix: userOptions._metaOptions?.loggerPrefixOverride ?? '[sentry-webpack-plugin]',\n buildTool: 'webpack',\n buildToolMajorVersion: getWebpackMajorVersion(),\n });\n\n const {\n logger,\n normalizedOptions: options,\n bundleSizeOptimizationReplacementValues: replacementValues,\n bundleMetadata,\n createDependencyOnBuildArtifacts,\n } = sentryBuildPluginManager;\n\n if (options.disable) {\n return {\n apply() {\n // noop plugin\n },\n };\n }\n\n if (process.cwd().match(/\\\\node_modules\\\\|\\/node_modules\\//)) {\n logger.warn('Running Sentry plugin from within a `node_modules` folder. Some features may not work.');\n }\n\n const { injectDebugIds, upload: uploadEnabled, stampEmittedFiles } = getSourceMapFeatures(options);\n const releaseInjectionCode = new CodeInjection();\n const chunkInjectionCode = new CodeInjection();\n\n if (!options.release.inject) {\n logger.debug('Release injection disabled via `release.inject` option. Will not inject release.');\n } else if (!options.release.name) {\n logger.debug(\n 'No release name provided. Will not inject release. Please set the `release.name` option to identify your release.',\n );\n } else {\n releaseInjectionCode.append(\n generateReleaseInjectorCode({\n release: options.release.name,\n injectBuildInformation: options._experiments.injectBuildInformation || false,\n }),\n );\n }\n\n if (Object.keys(bundleMetadata).length > 0) {\n chunkInjectionCode.append(generateModuleMetadataInjectorCode(bundleMetadata));\n }\n\n const transformAnnotations = options.reactComponentAnnotation?.enabled\n ? createComponentNameAnnotateHooks(\n options.reactComponentAnnotation?.ignoredComponents || [],\n !!options.reactComponentAnnotation?._experimentalInjectIntoHtml,\n { logger },\n )\n : undefined;\n\n const transformReplace = Object.keys(replacementValues).length > 0;\n\n function decideSourceMaps(compiler: WebpackCompiler): { kind?: SourceMapKind; decision: SourceMapDecision } {\n const kind = compiler.options.mode === 'development' ? undefined : sourceMapKindFromDevtool(compiler);\n if (kind === undefined) {\n return { decision: { enableHidden: false, deleteAfterUpload: false } };\n }\n\n const decision = sentryBuildPluginManager.sourceMaps.decide(kind);\n\n if (decision.enableHidden) {\n compiler.options.devtool = kind === 'visible' ? `hidden-${compiler.options.devtool}` : 'hidden-source-map';\n }\n\n return { kind, decision };\n }\n\n /**\n * Adds the release snippet to the `<head>` of every page that `html-webpack-plugin` generates.\n * Returns `false` when the build has no `html-webpack-plugin`.\n */\n function addReleaseToHtml(compiler: WebpackCompiler): boolean {\n const HtmlWebpackPlugin = findHtmlWebpackPlugin(compiler);\n if (!HtmlWebpackPlugin) {\n logger.warn(\n \"`release.inject: 'html'` needs `html-webpack-plugin` to generate the HTML, and this build does not use it. Injecting the release into the startup chunks instead.\",\n );\n return false;\n }\n\n const tag: HtmlTagObject = {\n tagName: 'script',\n voidTag: false,\n attributes: {},\n meta: { plugin: 'sentry-webpack-plugin' },\n innerHTML: releaseInjectionCode.code(),\n };\n\n // All instances of the plugin share the hooks of a compilation, so one tap covers every page.\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n HtmlWebpackPlugin.getHooks(compilation).alterAssetTagGroups.tap('sentry-webpack-plugin', data => {\n data.headTags.unshift(tag);\n return data;\n });\n });\n return true;\n }\n\n function addCodeInjection(compiler: WebpackCompiler, injectRelease: boolean): void {\n if ((!injectRelease || releaseInjectionCode.isEmpty()) && chunkInjectionCode.isEmpty() && !injectDebugIds) {\n return;\n }\n\n const ReplaceSource = compiler.webpack?.sources?.ReplaceSource;\n const processAssetsStage = compiler.webpack?.Compilation?.PROCESS_ASSETS_STAGE_ADDITIONS;\n\n if (!ReplaceSource || processAssetsStage === undefined) {\n logger.warn(\n 'Webpack sources are not available. Skipping code injection. This usually means webpack is not properly configured.',\n );\n return;\n }\n\n compiler.hooks.compilation.tap('sentry-webpack-plugin-injection', compilation => {\n compilation.hooks.processAssets.tap(\n {\n name: 'sentry-webpack-plugin-injection',\n stage: processAssetsStage,\n },\n assets => {\n const injectedAssets = new Set<string>();\n\n for (const chunk of compilation.chunks) {\n for (const assetName of chunk.files) {\n if (injectedAssets.has(assetName) || !WEBPACK_JAVASCRIPT_ASSET_REGEX.test(assetName)) {\n continue;\n }\n\n const source = assets[assetName];\n if (!source) {\n continue;\n }\n injectedAssets.add(assetName);\n\n const sourceContents = source.source();\n const code = typeof sourceContents === 'string' ? sourceContents : Buffer.from(sourceContents).toString();\n const codeToInject = new CodeInjection();\n if (injectRelease && (chunk.canBeInitial?.() ?? true)) {\n codeToInject.append(releaseInjectionCode);\n }\n codeToInject.append(chunkInjectionCode);\n if (injectDebugIds) {\n const hash = chunk.contentHash?.javascript ?? chunk.hash;\n codeToInject.append(getDebugIdSnippet(hash ? stringToUUID(hash) : randomUUID()));\n }\n\n const injectionPosition = getCodeInjectionPosition(code);\n const injection = injectionPosition === code.length ? `\\n${codeToInject.code()}` : codeToInject.code();\n const updatedSource = new ReplaceSource(source);\n updatedSource.insert(injectionPosition, injection);\n compilation.updateAsset(assetName, updatedSource);\n }\n }\n },\n );\n });\n }\n\n return {\n apply(compiler: WebpackCompiler) {\n void sentryBuildPluginManager.telemetry.emitBundlerPluginExecutionSignal().catch(() => {\n // Telemetry failures are acceptable\n });\n\n const { DefinePlugin } = compiler.webpack ?? {};\n\n // One plugin instance can serve several compilers (`MultiCompiler`) and\n // a compiler several compilations (watch mode), so nothing is shared.\n const { decision: sourceMapDecision } = decideSourceMaps(compiler);\n const removeAllSourceMaps = sourceMapDecision.removeAllSourceMaps === true;\n const pendingStagings = new Map<WebpackCompilation, UploadStaging>();\n\n // After `RealContentHashPlugin` rewrote the hash placeholders, so the staged\n // JS equals the emitted file and `[contenthash]` names are final.\n const deleteStage = (compiler.webpack?.Compilation?.PROCESS_ASSETS_STAGE_REPORT ?? 5000) + 1;\n\n if (sourceMapDecision.deleteAfterUpload && !sentryBuildPluginManager.sourceMaps.uploadPossible) {\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n compilation.hooks.processAssets.tap({ name: 'sentry-webpack-plugin', stage: deleteStage }, () => {\n dropSourceMaps(compilation, sentryBuildPluginManager.sourceMaps.shouldUpload, removeAllSourceMaps);\n });\n });\n } else if (sourceMapDecision.deleteAfterUpload) {\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n compilation.hooks.processAssets.tapPromise(\n { name: 'sentry-webpack-plugin', stage: deleteStage },\n async () => {\n const staging = await sentryBuildPluginManager.createUploadStaging();\n pendingStagings.set(compilation, staging);\n await stageSourceMaps(compilation, staging, logger, removeAllSourceMaps);\n },\n );\n });\n\n // A staging that `afterEmit` never took belongs to a compilation that\n // failed before emitting, or to one whose assets were emitted without\n // their maps because an earlier `afterEmit` tap failed. Only the\n // second kind has no other copy of the maps.\n const emittedCompilations = new Set<WebpackCompilation>();\n compiler.hooks.emit.tap('sentry-webpack-plugin', compilation => {\n emittedCompilations.add(compilation);\n });\n const settlePendingStagings = (): void => {\n for (const [compilation, staging] of pendingStagings) {\n if (emittedCompilations.has(compilation)) {\n void staging.keep('The source map upload did not run.');\n } else {\n void staging.discard();\n }\n }\n pendingStagings.clear();\n emittedCompilations.clear();\n };\n compiler.hooks.done.tap('sentry-webpack-plugin', settlePendingStagings);\n compiler.hooks.failed?.tap('sentry-webpack-plugin', settlePendingStagings);\n }\n\n const releaseInHtml =\n options.release.inject === 'html' && !releaseInjectionCode.isEmpty() && addReleaseToHtml(compiler);\n\n // BannerPlugin prepends executable code before directive prologues.\n addCodeInjection(compiler, !releaseInHtml);\n\n if (stampEmittedFiles) {\n const RawSource = compiler.webpack?.sources?.RawSource;\n // Right after source map generation (and thus after minification, which would strip the comment),\n // so later stages (real content hashing, subresource integrity) see the final assets.\n const stage = (compiler.webpack?.Compilation?.PROCESS_ASSETS_STAGE_DEV_TOOLING ?? 500) + 1;\n\n if (!RawSource) {\n logger.warn(\n 'Webpack sources are not available. Skipping debug ID injection into emitted source maps. This usually means webpack is not properly configured.',\n );\n } else {\n compiler.hooks.thisCompilation.tap('sentry-webpack-plugin', compilation => {\n compilation.hooks.processAssets.tap({ name: 'sentry-webpack-plugin', stage }, () => {\n addDebugIdsToAssets(compilation, RawSource);\n });\n });\n }\n }\n\n // Add DefinePlugin for bundle size optimizations\n if (transformReplace && DefinePlugin) {\n compiler.options.plugins = compiler.options.plugins || [];\n compiler.options.plugins.push(new DefinePlugin(replacementValues));\n }\n\n // Add component name annotation transform\n if (transformAnnotations?.transform) {\n compiler.options.module = compiler.options.module || {};\n compiler.options.module.rules = compiler.options.module.rules || [];\n compiler.options.module.rules.unshift({\n test: /\\.[jt]sx$/,\n exclude: /node_modules/,\n enforce: 'pre',\n use: [\n {\n loader: COMPONENT_ANNOTATION_LOADER,\n options: {\n transform: transformAnnotations.transform,\n },\n },\n ],\n });\n }\n\n compiler.hooks.afterEmit.tapAsync(\n 'sentry-webpack-plugin',\n (compilation: WebpackCompilation, callback: (err?: Error) => void) => {\n const freeGlobalDependencyOnBuildArtifacts = createDependencyOnBuildArtifacts();\n const upload = createDebugIdUploadFunction({ sentryBuildPluginManager });\n\n const staging = pendingStagings.get(compilation);\n pendingStagings.delete(compilation);\n let stagingHandedOver = false;\n\n const run = async (): Promise<void> => {\n try {\n await sentryBuildPluginManager.createRelease();\n if (uploadEnabled) {\n const outputPath = compilation.outputOptions.path ?? path.resolve();\n const buildArtifacts = Object.keys(compilation.assets).map(asset => path.join(outputPath, asset));\n stagingHandedOver = true;\n await upload(buildArtifacts, { staging });\n } else {\n stagingHandedOver = true;\n await staging?.discard();\n }\n } catch (e) {\n if (!stagingHandedOver) {\n await staging?.keep('The source map upload did not run.');\n }\n throw e;\n } finally {\n freeGlobalDependencyOnBuildArtifacts();\n await sentryBuildPluginManager.deleteArtifacts();\n }\n };\n\n run().then(\n () => callback(),\n (err: Error) => callback(err),\n );\n },\n );\n\n if (userOptions._experiments?.forceExitOnBuildCompletion && compiler.options.mode === 'production') {\n compiler.hooks.done.tap('sentry-webpack-plugin', () => {\n setTimeout(() => {\n logger.debug('Exiting process after debug file upload');\n process.exit(0);\n });\n });\n }\n },\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryWebpackPlugin: (options?: SentryWebpackPluginInternalOptions) => any = createSentryWebpackPlugin;\n\n/** @internal For Sentry SDK packages only. See `InternalOptions`. */\nexport type SentryWebpackPluginInternalOptions = InternalOptions & WebpackExperiments;\n\nexport type SentryWebpackPluginOptions = Options & WebpackExperiments;\n\ntype WebpackExperiments = {\n _experiments?: Options['_experiments'] & {\n /**\n * If enabled, the webpack plugin will exit the build process after the build completes.\n * Use this with caution, as it will terminate the process.\n *\n * More information: https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/345\n *\n * @default false\n */\n forceExitOnBuildCompletion?: boolean;\n };\n};\n"],"mappings":";;;;;;;;;;;;;AA6BA,MAAM,OAAO,cAAc,YAAY,GAAG;AAO1C,IAAI;AACJ,IAAI;CACF,8BAA8B,KAAK,QAAQ,wCAAwC;AACrF,QAAQ;CAIN,MAAM,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;CAE3D,8BAA8B,KAAK,QAAQ,SAAS,mCAAmC;AACzF;AAmBA,MAAM,iCAAiC;AAmGvC,SAAS,sBAAsB,UAA+D;CAC5F,KAAK,MAAM,UAAU,SAAS,QAAQ,WAAW,CAAC,GAAG;EACnD,MAAM,cAAe,QAAgF;EACrG,IAAI,aAAa,SAAS,uBAAuB,OAAO,YAAY,aAAa,YAC/E,OAAO;CAEX;AAEF;;;;;AAMA,SAAS,yBAAyB,UAAsD;CACtF,MAAM,UAAU,SAAS,QAAQ;CAEjC,IAAI,YAAY,KAAA,GACd,OAAO;CAET,IAAI,YAAY,OAKd,OAJ2B,SAAS,QAAQ,SAAS,MACnD,WACG,QAA4D,aAAa,SAAS,wBACvF,IAC4B,KAAA,IAAY;CAG1C,IAAI,CAAC,QAAQ,SAAS,YAAY,GAChC,OAAO;CAET,IAAI,QAAQ,SAAS,QAAQ,KAAK,QAAQ,SAAS,MAAM,GACvD,OAAO;CAET,IAAI,QAAQ,SAAS,QAAQ,GAC3B,OAAO;C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GACF,CAAC;EACH;EAEA,SAAS,MAAM,UAAU,SACvB,0BACC,aAAiC,aAAoC;GACpE,MAAM,uCAAuC,iCAAiC;GAC9E,MAAM,SAAS,4BAA4B,EAAE,yBAAyB,CAAC;GAEvE,MAAM,UAAU,gBAAgB,IAAI,WAAW;GAC/C,gBAAgB,OAAO,WAAW;GAClC,IAAI,oBAAoB;GAExB,MAAM,MAAM,YAA2B;IACrC,IAAI;KACF,MAAM,yBAAyB,cAAc;KAC7C,IAAI,eAAe;MACjB,MAAM,aAAa,YAAY,cAAc,QAAQ,KAAK,QAAQ;MAClE,MAAM,iBAAiB,OAAO,KAAK,YAAY,MAAM,CAAC,CAAC,KAAI,UAAS,KAAK,KAAK,YAAY,KAAK,CAAC;MAChG,oBAAoB;MACpB,MAAM,OAAO,gBAAgB,EAAE,QAAQ,CAAC;KAC1C,OAAO;MACL,oBAAoB;MACpB,MAAM,SAAS,QAAQ;KACzB;IACF,SAAS,GAAG;KACV,IAAI,CAAC,mBACH,MAAM,SAAS,KAAK,oCAAoC;KAE1D,MAAM;IACR,UAAU;KACR,qCAAqC;KACrC,MAAM,yBAAyB,gBAAgB;IACjD;GACF;GAEA,IAAI,CAAC,CAAC,WACE,SAAS,IACd,QAAe,SAAS,GAAG,CAC9B;EACF,CACF;EAEA,IAAI,YAAY,cAAc,8BAA8B,SAAS,QAAQ,SAAS,cACpF,SAAS,MAAM,KAAK,IAAI,+BAA+B;GACrD,iBAAiB;IACf,OAAO,MAAM,yCAAyC;IACtD,QAAQ,KAAK,CAAC;GAChB,CAAC;EACH,CAAC;CAEL,EACF;AACF;AAGA,MAAa,sBAA6E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bun/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bun/index.ts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,CAAC,IAAI,CAAC,CAAC;KAC3D,CAAC;IAEF;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjC,gCAAgC,EAAE,MAAM,MAAM,IAAI,CAAC;CACpD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,eAAe,EAC5B,wBAAwB,EAAE;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,wBAAwB,CA80B1B"}
|
|
@@ -54,7 +54,7 @@ export type StampedArtifacts = {
|
|
|
54
54
|
* Stamps the debug ID injected into `bundleSource` into the bundle (as `//# debugId=` comment) and its
|
|
55
55
|
* source map (as `debug_id`/`debugId` fields).
|
|
56
56
|
*
|
|
57
|
-
* This exists for `sourcemaps.
|
|
57
|
+
* This exists for builds without an upload (`sourcemaps.upload: false`): the regular upload path only stamps
|
|
58
58
|
* temporary copies of the artifacts (see `prepareBundleForDebugIdUpload`), so without this the
|
|
59
59
|
* emitted artifacts would carry no debug ID and a later manual upload could not match them.
|
|
60
60
|
* Callers must apply the result inside the bundler's asset pipeline (or, for bundlers without one,
|
|
@@ -38,11 +38,11 @@ export { createComponentNameAnnotateHooks } from './component-annotate-hooks';
|
|
|
38
38
|
export declare function getDebugIdSnippet(debugId: string): CodeInjection;
|
|
39
39
|
export type { Logger } from './logger';
|
|
40
40
|
export type { InternalOptions, Options, SentrySDKBuildFlags } from './types';
|
|
41
|
-
export { CodeInjection, replaceBooleanFlagsInCode, stringToUUID, generateReleaseInjectorCode, generateModuleMetadataInjectorCode, } from './utils';
|
|
41
|
+
export { CodeInjection, replaceBooleanFlagsInCode, stringToUUID, generateReleaseInjectorCode, generateModuleMetadataInjectorCode, resolveReleaseName, } from './utils';
|
|
42
42
|
export { createSentryBuildPluginManager } from './build-plugin-manager';
|
|
43
43
|
export type { SentryBuildPluginManager, UploadResult, UploadStaging } from './build-plugin-manager';
|
|
44
44
|
export { createDebugIdUploadFunction, addDebugIdToEmittedArtifacts, stampDebugId } from './debug-id-upload';
|
|
45
|
-
export { decideSourceMapHandling, getDeleteSourcemapsAfterUpload, getSdkEnabledSourceMaps } from './sourcemap-settings';
|
|
45
|
+
export { decideSourceMapHandling, getDeleteOption, getDeleteSourcemapsAfterUpload, getSdkEnabledSourceMaps, getSourceMapFeatures, } from './sourcemap-settings';
|
|
46
46
|
export type { SourceMapDecision, SourceMapKind } from './sourcemap-settings';
|
|
47
47
|
export type { UploadFilter } from './upload-filter';
|
|
48
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAkD,MAAM,SAAS,CAAC;AAExF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGlD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAYxG;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AA8BD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,EACnD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,SAAS,GACjD,OAAO,CAMT;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,C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AY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,YAAY,EACZ,2BAA2B,EAC3B,kCAAkC,EAClC,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,YAAY,EAAE,wBAAwB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,8BAA8B,EAC9B,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC7E,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -13,6 +13,9 @@ export type NormalizedOptions = {
|
|
|
13
13
|
disable: boolean;
|
|
14
14
|
sourcemaps: {
|
|
15
15
|
disable?: boolean | 'disable-upload';
|
|
16
|
+
upload?: boolean;
|
|
17
|
+
injectDebugIds?: boolean;
|
|
18
|
+
delete?: boolean;
|
|
16
19
|
assets?: string | string[];
|
|
17
20
|
ignore?: string | string[];
|
|
18
21
|
rewriteSources?: RewriteSourcesHook;
|
|
@@ -23,7 +26,7 @@ export type NormalizedOptions = {
|
|
|
23
26
|
} | undefined;
|
|
24
27
|
release: {
|
|
25
28
|
name: string | undefined;
|
|
26
|
-
inject: boolean;
|
|
29
|
+
inject: boolean | 'html';
|
|
27
30
|
create: boolean;
|
|
28
31
|
finalize: boolean;
|
|
29
32
|
vcsRemote: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options-mapping.d.ts","sourceRo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,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO5E"}
|
|
@@ -24,8 +24,27 @@ export type SourceMapDecision = {
|
|
|
24
24
|
message: string;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
export type SourceMapFeatures = {
|
|
28
|
+
/** The plugin adds debug IDs to the bundles and their source maps. */
|
|
29
|
+
injectDebugIds: boolean;
|
|
30
|
+
/** The plugin uploads the source maps. Never `true` without `injectDebugIds`. */
|
|
31
|
+
upload: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The plugin writes the debug IDs into the emitted files and source maps. The upload only stamps
|
|
34
|
+
* temp copies, so without an upload the emitted files get them and a later manual upload needs
|
|
35
|
+
* no inject step.
|
|
36
|
+
*/
|
|
37
|
+
stampEmittedFiles: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Reads `sourcemaps.upload` and `sourcemaps.injectDebugIds`. When neither is set,
|
|
41
|
+
* `sourcemaps.disable` decides.
|
|
42
|
+
*/
|
|
43
|
+
export declare function getSourceMapFeatures(options: NormalizedOptions): SourceMapFeatures;
|
|
27
44
|
/** Reads `sourcemaps.deleteSourcemapsAfterUpload`, calling the internal function form if given. */
|
|
28
45
|
export declare function getDeleteSourcemapsAfterUpload(options: NormalizedOptions, environment?: string): boolean | undefined;
|
|
46
|
+
/** Reads `sourcemaps.delete`. When it is unset, `sourcemaps.deleteSourcemapsAfterUpload` decides. */
|
|
47
|
+
export declare function getDeleteOption(options: NormalizedOptions, environment?: string): boolean | undefined;
|
|
29
48
|
/** Reads the internal `sourcemaps.sdkEnabledSourceMaps` option, calling its function form if given. */
|
|
30
49
|
export declare function getSdkEnabledSourceMaps(options: NormalizedOptions, environment?: string): boolean;
|
|
31
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcemap-settings.d.ts","sourceRoot":"","sources":["../../../src/core/sourcemap-settings.ts"],"names":[],"mappings":"
|
|
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,EAAE,aAAa,EACnB,OAAO,EAAE,iBAAiB,EAC1B,cAAc,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,MAAM,GACnB,iBAAiB,CAyGnB"}
|
|
@@ -94,6 +94,45 @@ export interface Options {
|
|
|
94
94
|
* Options related to source maps upload and processing.
|
|
95
95
|
*/
|
|
96
96
|
sourcemaps?: {
|
|
97
|
+
/**
|
|
98
|
+
* Whether the plugin uploads source maps to Sentry.
|
|
99
|
+
*
|
|
100
|
+
* With `false` the plugin uploads nothing, but it still injects debug IDs: the bundles get the debug ID snippet and
|
|
101
|
+
* a `//# debugId=` comment, and the emitted source maps get the matching `debug_id` field. Use this to upload the
|
|
102
|
+
* source maps yourself later, for example with `sentry sourcemap upload`. No `inject` step is needed.
|
|
103
|
+
*
|
|
104
|
+
* With `false` the plugin only turns source maps on when `sourcemaps.delete` is `false`.
|
|
105
|
+
*
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
upload?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the plugin injects debug IDs into the bundles and their source maps.
|
|
111
|
+
*
|
|
112
|
+
* With `false` the plugin adds no debug IDs and uploads no source maps, because the upload matches files by debug
|
|
113
|
+
* ID. Use this when another tool injects the debug IDs and uploads the source maps, for example the Sentry CLI.
|
|
114
|
+
*
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
injectDebugIds?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Whether source maps are removed from the build output.
|
|
120
|
+
*
|
|
121
|
+
* - Unset: the plugin removes the source maps it turned on itself, that is, when the bundler's source map setting
|
|
122
|
+
* was not set. Source maps you turned on stay.
|
|
123
|
+
* - `true`: the plugin removes every source map of the build, also the ones you turned on, and also those of
|
|
124
|
+
* chunks that `sourcemaps.assets` or `sourcemaps.ignore` keep out of the upload. Visible source maps are
|
|
125
|
+
* switched to hidden ones, so that no `sourceMappingURL` comment points to a removed file.
|
|
126
|
+
* - `false`: the plugin removes no source map. When the bundler's source map setting is not set, the plugin turns
|
|
127
|
+
* hidden source maps on and they stay in the build output.
|
|
128
|
+
*
|
|
129
|
+
* `true` and `false` do not depend on an upload. They also apply when the upload is switched off, when it cannot
|
|
130
|
+
* run (for example without an auth token) and when it fails.
|
|
131
|
+
*
|
|
132
|
+
* With Rollup, Vite and webpack the removed source maps are never written to the output directory. With esbuild
|
|
133
|
+
* they are deleted after the build.
|
|
134
|
+
*/
|
|
135
|
+
delete?: boolean;
|
|
97
136
|
/**
|
|
98
137
|
* Disables all functionality related to sourcemaps if set to `true`.
|
|
99
138
|
*
|
|
@@ -214,9 +253,23 @@ export interface Options {
|
|
|
214
253
|
/**
|
|
215
254
|
* Whether the plugin should inject release information into the build for the SDK to pick it up when sending events. (recommended)
|
|
216
255
|
*
|
|
256
|
+
* The plugin injects the release into the chunks that load at startup. The release name usually changes on every
|
|
257
|
+
* commit, so these chunks get new content hashes, and new file names, on every release, even when their code did not
|
|
258
|
+
* change. The chunks that import them get new file names too, so returning visitors download all of them again.
|
|
259
|
+
*
|
|
260
|
+
* To keep these file names stable, set this to `'html'`. The plugin then adds the release to the `<head>` of each
|
|
261
|
+
* emitted HTML page, in an inline `<script>`, and not to any chunk. The Vite plugin supports this for builds with
|
|
262
|
+
* HTML entry points, and the webpack plugin for builds that generate their HTML with `html-webpack-plugin`. A
|
|
263
|
+
* Content Security Policy must allow the inline script, for example with Vite's `html.cspNonce` or a hash of the
|
|
264
|
+
* script. Where the plugin cannot add the release to HTML, it warns and injects it into the startup chunks.
|
|
265
|
+
*
|
|
266
|
+
* You can also set this to `false` and pass `release` to `Sentry.init` at runtime, from a value that is not part of
|
|
267
|
+
* your bundled code. A release written into bundled code, for example with `define`, changes the content hashes in
|
|
268
|
+
* the same way.
|
|
269
|
+
*
|
|
217
270
|
* Defaults to `true`.
|
|
218
271
|
*/
|
|
219
|
-
inject?: boolean;
|
|
272
|
+
inject?: boolean | 'html';
|
|
220
273
|
/**
|
|
221
274
|
* Whether the plugin should create a release on Sentry during the build.
|
|
222
275
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEjG,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,OAAO;IACtB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;;;;;;;;;OAcG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IAEpC;;;;;;;;;;OAUG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEjG,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,GACrB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C7B,IAAI,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAEzB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;AAEzF;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG;IAC1D,UAAU,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,6BAA6B,CAAC,GAAG;QACrF,2BAA2B,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,CAAC,CAAC;QACxF;;;;WAIG;QACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,CAAC,CAAC;KAClF,CAAC;CACH,CAAC"}
|
|
@@ -34,6 +34,13 @@ export declare function canAutoDetectRepository(): boolean;
|
|
|
34
34
|
* Tries to guess a release name based on environmental data.
|
|
35
35
|
*/
|
|
36
36
|
export declare function determineReleaseName(): string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Resolves the release name the way the bundler plugins do: the configured name, then the `SENTRY_RELEASE`
|
|
39
|
+
* environment variable, then a name detected from CI environment variables or git.
|
|
40
|
+
*
|
|
41
|
+
* Framework SDKs that pass the release to the SDK at runtime use this to get the same name the plugin uses.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveReleaseName(name?: string): string | undefined;
|
|
37
44
|
/**
|
|
38
45
|
* Reads an environment variable that should hold a commit SHA, ignoring a value that is the
|
|
39
46
|
* variable's own name. See `_INTERNAL_readCommitEnvVar` in `@sentry/core/server`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ9C;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAE9D;AAED,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3C;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,WAAW,GAAG,SAAS,CAE/G;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA4DjE;AAmBD,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG;IACzD,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC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AAG,MAAM,EAAE,GAAG,SAAS,CAUxF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAkBzD;AAED,qBAAa,aAAa;IAMZ,OAAO,CAAC,IAAI;IAHxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,YAAoB,IAAI,GAAE,MAAW,EAUpC;IAEM,IAAI,IAAI,MAAM,CAMpB;IAEM,OAAO,IAAI,OAAO,CAExB;IAEM,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAMhD;IAEM,KAAK,IAAI,IAAI,CAEnB;IAEM,KAAK,IAAI,aAAa,CAE5B;CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "11.
|
|
1
|
+
export declare const LIB_VERSION = "11.15.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/esbuild/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/esbuild/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAoC,MAAM,SAAS,CAAC;AAkHjF,wBAAgB,mBAAmB,CAAC,WAAW,GAAE,eAAoB,GAAG,GAAG,CAgS1E;eAGc,mBAAmB;AAClC,YAAY,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -4,13 +4,14 @@ import type { SourceMap } from 'magic-string';
|
|
|
4
4
|
import MagicString from 'magic-string';
|
|
5
5
|
import { type OutputBundle } from './debug-id-stamping';
|
|
6
6
|
import { type OutputDestinationOptions } from './source-map-handling';
|
|
7
|
+
import { type BuildInputOptions, type ViteHookContext } from '../vite/release-html-injection';
|
|
7
8
|
type TransformResult = {
|
|
8
9
|
code: string;
|
|
9
10
|
map?: SourceMap | string | {
|
|
10
11
|
mappings: string;
|
|
11
12
|
} | null;
|
|
12
13
|
} | null | undefined;
|
|
13
|
-
type PluginContext = {
|
|
14
|
+
type PluginContext = ViteHookContext & {
|
|
14
15
|
meta?: {
|
|
15
16
|
rolldownVersion?: string;
|
|
16
17
|
};
|
|
@@ -30,7 +31,7 @@ export declare function _createRollupPluginInternals(userOptions: InternalOption
|
|
|
30
31
|
} | {
|
|
31
32
|
main: {
|
|
32
33
|
name: string;
|
|
33
|
-
buildStart: () => void;
|
|
34
|
+
buildStart: (this: ViteHookContext | undefined, inputOptions?: BuildInputOptions) => void;
|
|
34
35
|
transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
|
|
35
36
|
filter: {
|
|
36
37
|
id: RegExp;
|
|
@@ -38,6 +39,14 @@ export declare function _createRollupPluginInternals(userOptions: InternalOption
|
|
|
38
39
|
handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
|
|
39
40
|
} | undefined;
|
|
40
41
|
configResolved: (config: import("../vite/source-map-hooks").ViteResolvedConfig) => void;
|
|
42
|
+
outputOptions: (rawOutputOptions: import("./source-map-handling").OutputOptions) => import("./source-map-handling").OutputOptions | null;
|
|
43
|
+
transformIndexHtml?: ((html: string, ctx: {
|
|
44
|
+
server?: unknown;
|
|
45
|
+
}) => {
|
|
46
|
+
tag: string;
|
|
47
|
+
children: string;
|
|
48
|
+
injectTo: 'head';
|
|
49
|
+
}[] | undefined) | undefined;
|
|
41
50
|
renderChunk: (this: PluginContext | undefined, code: string, chunk: {
|
|
42
51
|
fileName: string;
|
|
43
52
|
facadeModuleId?: string | null;
|
|
@@ -56,7 +65,7 @@ export declare function _createRollupPluginInternals(userOptions: InternalOption
|
|
|
56
65
|
writeBundle: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<void>;
|
|
57
66
|
} | {
|
|
58
67
|
name: string;
|
|
59
|
-
buildStart: () => void;
|
|
68
|
+
buildStart: (this: ViteHookContext | undefined, inputOptions?: BuildInputOptions) => void;
|
|
60
69
|
transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
|
|
61
70
|
filter: {
|
|
62
71
|
id: RegExp;
|
|
@@ -64,6 +73,13 @@ export declare function _createRollupPluginInternals(userOptions: InternalOption
|
|
|
64
73
|
handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
|
|
65
74
|
} | undefined;
|
|
66
75
|
outputOptions: (rawOutputOptions: import("./source-map-handling").OutputOptions) => import("./source-map-handling").OutputOptions | null;
|
|
76
|
+
transformIndexHtml?: ((html: string, ctx: {
|
|
77
|
+
server?: unknown;
|
|
78
|
+
}) => {
|
|
79
|
+
tag: string;
|
|
80
|
+
children: string;
|
|
81
|
+
injectTo: 'head';
|
|
82
|
+
}[] | undefined) | undefined;
|
|
67
83
|
renderChunk: (this: PluginContext | undefined, code: string, chunk: {
|
|
68
84
|
fileName: string;
|
|
69
85
|
facadeModuleId?: string | null;
|
|
@@ -99,7 +115,7 @@ export declare function _rollupPluginInternal(userOptions: Options | undefined,
|
|
|
99
115
|
name: string;
|
|
100
116
|
} | {
|
|
101
117
|
name: string;
|
|
102
|
-
buildStart: () => void;
|
|
118
|
+
buildStart: (this: ViteHookContext | undefined, inputOptions?: BuildInputOptions) => void;
|
|
103
119
|
transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
|
|
104
120
|
filter: {
|
|
105
121
|
id: RegExp;
|
|
@@ -107,6 +123,14 @@ export declare function _rollupPluginInternal(userOptions: Options | undefined,
|
|
|
107
123
|
handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
|
|
108
124
|
} | undefined;
|
|
109
125
|
configResolved: (config: import("../vite/source-map-hooks").ViteResolvedConfig) => void;
|
|
126
|
+
outputOptions: (rawOutputOptions: import("./source-map-handling").OutputOptions) => import("./source-map-handling").OutputOptions | null;
|
|
127
|
+
transformIndexHtml?: ((html: string, ctx: {
|
|
128
|
+
server?: unknown;
|
|
129
|
+
}) => {
|
|
130
|
+
tag: string;
|
|
131
|
+
children: string;
|
|
132
|
+
injectTo: 'head';
|
|
133
|
+
}[] | undefined) | undefined;
|
|
110
134
|
renderChunk: (this: PluginContext | undefined, code: string, chunk: {
|
|
111
135
|
fileName: string;
|
|
112
136
|
facadeModuleId?: string | null;
|
|
@@ -125,7 +149,7 @@ export declare function _rollupPluginInternal(userOptions: Options | undefined,
|
|
|
125
149
|
writeBundle: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<void>;
|
|
126
150
|
} | {
|
|
127
151
|
name: string;
|
|
128
|
-
buildStart: () => void;
|
|
152
|
+
buildStart: (this: ViteHookContext | undefined, inputOptions?: BuildInputOptions) => void;
|
|
129
153
|
transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
|
|
130
154
|
filter: {
|
|
131
155
|
id: RegExp;
|
|
@@ -133,6 +157,13 @@ export declare function _rollupPluginInternal(userOptions: Options | undefined,
|
|
|
133
157
|
handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
|
|
134
158
|
} | undefined;
|
|
135
159
|
outputOptions: (rawOutputOptions: import("./source-map-handling").OutputOptions) => import("./source-map-handling").OutputOptions | null;
|
|
160
|
+
transformIndexHtml?: ((html: string, ctx: {
|
|
161
|
+
server?: unknown;
|
|
162
|
+
}) => {
|
|
163
|
+
tag: string;
|
|
164
|
+
children: string;
|
|
165
|
+
injectTo: 'head';
|
|
166
|
+
}[] | undefined) | undefined;
|
|
136
167
|
renderChunk: (this: PluginContext | undefined, code: string, chunk: {
|
|
137
168
|
fileName: string;
|
|
138
169
|
facadeModuleId?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rollup/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rollup/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAiBxE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,WAAW,MAAM,cAAc,CAAC;AAIvC,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,gCAAgC,CAAC;AAKxC,KAAK,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAWnH,KAAK,aAAa,GAAG,eAAe,GAAG;IAAE,IAAI,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AA4C/E;;;;;;GAMG;AAEH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,eAAe,YAAK,EACjC,SAAS,EAAE,QAAQ,GAAG,MAAM,EAC5B,qBAAqB,CAAC,EAAE,MAAM;;QAmBxB,IAAI;;;;;;2BA8DgB,eAAe,GAAG,SAAS,iBAAiB,iBAAiB,KAAG,IAAI;4BAStF,MAAM,MACR,MAAM,SACH,gCAAgC,KACtC,OAAO,CAAC,eAAe,CAA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OAAO,CAAA;KAAE,MAC1E,OAAO,SACJ;QAAE,WAAW,CAAC,EAAE,WAAW,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;KAAE,KAC5E;QACD,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,SAAS,CAAC;KACjB,GAAG,IAAI;;QAkIY,KAAK,EAAE,KAAK;QAAW,OAAO,SA7EpB,aAAa,GAAG,SAAS,kBAAkB,OAAO,UAAU,YAAY,KAAG,IAAI;;iCAYnE,wBAAwB,UAAU,YAAY,GAAG,SAAS,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiEhG,KAAK,EAAE,KAAK;QAAW,OAAO;;;EAqCnD;AAGD,wBAAgB,kBAAkB,CAAC,WAAW,GAAE,OAAY,GAAG,GAAG,CAKjE;AAED,YAAY,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -39,6 +39,11 @@ export type SourceMapHandling = {
|
|
|
39
39
|
outputOptions: (rawOutputOptions: OutputOptions) => OutputOptions | null;
|
|
40
40
|
/** Records the decision for an output, for bundlers that decide outside `outputOptions`. */
|
|
41
41
|
setDecision: (destination: string, record: DecisionRecord) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Vite's `outputOptions` hook: switches an output with its own visible setting to hidden source
|
|
44
|
+
* maps when its recorded decision removes them.
|
|
45
|
+
*/
|
|
46
|
+
applyHiddenDecision: (rawOutputOptions: OutputOptions) => OutputOptions | null;
|
|
42
47
|
/**
|
|
43
48
|
* `generateBundle` with `order: 'post'`: copies each chunk and its source map into a staging folder
|
|
44
49
|
* and drops the map asset from the bundle, so the bundler never writes it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-map-handling.d.ts","sourceRoot":"","sources":["../../../src/rollup/source-map-handling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBA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