@sentry/bundler-plugins 11.11.0 → 11.13.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.
Files changed (188) hide show
  1. package/build/cjs/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/assertClassBrand.js +6 -0
  2. package/build/cjs/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/checkPrivateRedeclaration.js +5 -0
  3. package/build/cjs/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldGet2.js +6 -0
  4. package/build/cjs/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldInitSpec.js +6 -0
  5. package/build/cjs/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldSet2.js +6 -0
  6. package/build/cjs/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateMethodInitSpec.js +6 -0
  7. package/build/cjs/_virtual/_rolldown/runtime.js +22 -0
  8. package/build/cjs/babel-plugin/component-annotation.js +14 -32
  9. package/build/cjs/babel-plugin/component-annotation.js.map +1 -1
  10. package/build/cjs/babel-plugin/constants.js +140 -122
  11. package/build/cjs/babel-plugin/constants.js.map +1 -1
  12. package/build/cjs/babel-plugin/experimental.js +204 -307
  13. package/build/cjs/babel-plugin/experimental.js.map +1 -1
  14. package/build/cjs/babel-plugin/index.js +315 -437
  15. package/build/cjs/babel-plugin/index.js.map +1 -1
  16. package/build/cjs/bun/index.js +81 -117
  17. package/build/cjs/bun/index.js.map +1 -1
  18. package/build/cjs/core/build-plugin-manager.js +626 -683
  19. package/build/cjs/core/build-plugin-manager.js.map +1 -1
  20. package/build/cjs/core/cli.js +134 -129
  21. package/build/cjs/core/cli.js.map +1 -1
  22. package/build/cjs/core/component-annotate-hooks.js +16 -27
  23. package/build/cjs/core/component-annotate-hooks.js.map +1 -1
  24. package/build/cjs/core/component-annotation-oxc-ast.js +10 -21
  25. package/build/cjs/core/component-annotation-oxc-ast.js.map +1 -1
  26. package/build/cjs/core/component-annotation-oxc-fragments.js +45 -74
  27. package/build/cjs/core/component-annotation-oxc-fragments.js.map +1 -1
  28. package/build/cjs/core/component-annotation-oxc-jsx.js +116 -156
  29. package/build/cjs/core/component-annotation-oxc-jsx.js.map +1 -1
  30. package/build/cjs/core/component-annotation-oxc-walk.js +62 -123
  31. package/build/cjs/core/component-annotation-oxc-walk.js.map +1 -1
  32. package/build/cjs/core/component-annotation-oxc.js +68 -103
  33. package/build/cjs/core/component-annotation-oxc.js.map +1 -1
  34. package/build/cjs/core/debug-id-upload.js +223 -234
  35. package/build/cjs/core/debug-id-upload.js.map +1 -1
  36. package/build/cjs/core/get-code-injection-position.js +59 -74
  37. package/build/cjs/core/get-code-injection-position.js.map +1 -1
  38. package/build/cjs/core/glob.js +9 -7
  39. package/build/cjs/core/glob.js.map +1 -1
  40. package/build/cjs/core/index.js +77 -61
  41. package/build/cjs/core/index.js.map +1 -1
  42. package/build/cjs/core/logger.js +17 -26
  43. package/build/cjs/core/logger.js.map +1 -1
  44. package/build/cjs/core/options-mapping.js +95 -117
  45. package/build/cjs/core/options-mapping.js.map +1 -1
  46. package/build/cjs/core/sentry/telemetry.js +90 -105
  47. package/build/cjs/core/sentry/telemetry.js.map +1 -1
  48. package/build/cjs/core/sentry/transports.js +92 -99
  49. package/build/cjs/core/sentry/transports.js.map +1 -1
  50. package/build/cjs/core/sourcemap-settings.js +98 -61
  51. package/build/cjs/core/sourcemap-settings.js.map +1 -1
  52. package/build/cjs/core/upload-filter.js +52 -0
  53. package/build/cjs/core/upload-filter.js.map +1 -0
  54. package/build/cjs/core/utils.js +228 -219
  55. package/build/cjs/core/utils.js.map +1 -1
  56. package/build/cjs/core/version.js +4 -5
  57. package/build/cjs/core/version.js.map +1 -1
  58. package/build/cjs/esbuild/index.js +180 -210
  59. package/build/cjs/esbuild/index.js.map +1 -1
  60. package/build/cjs/loader-utils/index.js +5 -10
  61. package/build/cjs/rollup/debug-id-injection.js +22 -38
  62. package/build/cjs/rollup/debug-id-injection.js.map +1 -1
  63. package/build/cjs/rollup/debug-id-stamping.js +14 -24
  64. package/build/cjs/rollup/debug-id-stamping.js.map +1 -1
  65. package/build/cjs/rollup/index.js +195 -209
  66. package/build/cjs/rollup/index.js.map +1 -1
  67. package/build/cjs/rollup/source-map-handling.js +178 -0
  68. package/build/cjs/rollup/source-map-handling.js.map +1 -0
  69. package/build/cjs/vite/index.js +19 -35
  70. package/build/cjs/vite/index.js.map +1 -1
  71. package/build/cjs/vite/source-map-hooks.js +116 -0
  72. package/build/cjs/vite/source-map-hooks.js.map +1 -0
  73. package/build/cjs/webpack/component-annotation-transform.js +20 -26
  74. package/build/cjs/webpack/component-annotation-transform.js.map +1 -1
  75. package/build/cjs/webpack/index.js +277 -234
  76. package/build/cjs/webpack/index.js.map +1 -1
  77. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/assertClassBrand.js +6 -0
  78. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/checkPrivateRedeclaration.js +5 -0
  79. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldGet2.js +6 -0
  80. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldInitSpec.js +6 -0
  81. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldSet2.js +6 -0
  82. package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateMethodInitSpec.js +6 -0
  83. package/build/esm/_virtual/_rolldown/runtime.js +2 -0
  84. package/build/esm/babel-plugin/component-annotation.js +13 -29
  85. package/build/esm/babel-plugin/component-annotation.js.map +1 -1
  86. package/build/esm/babel-plugin/constants.js +140 -120
  87. package/build/esm/babel-plugin/constants.js.map +1 -1
  88. package/build/esm/babel-plugin/experimental.js +204 -305
  89. package/build/esm/babel-plugin/experimental.js.map +1 -1
  90. package/build/esm/babel-plugin/index.js +311 -434
  91. package/build/esm/babel-plugin/index.js.map +1 -1
  92. package/build/esm/bun/index.js +76 -101
  93. package/build/esm/bun/index.js.map +1 -1
  94. package/build/esm/core/build-plugin-manager.js +621 -664
  95. package/build/esm/core/build-plugin-manager.js.map +1 -1
  96. package/build/esm/core/cli.js +134 -127
  97. package/build/esm/core/cli.js.map +1 -1
  98. package/build/esm/core/component-annotate-hooks.js +16 -25
  99. package/build/esm/core/component-annotate-hooks.js.map +1 -1
  100. package/build/esm/core/component-annotation-oxc-ast.js +9 -19
  101. package/build/esm/core/component-annotation-oxc-ast.js.map +1 -1
  102. package/build/esm/core/component-annotation-oxc-fragments.js +44 -72
  103. package/build/esm/core/component-annotation-oxc-fragments.js.map +1 -1
  104. package/build/esm/core/component-annotation-oxc-jsx.js +115 -154
  105. package/build/esm/core/component-annotation-oxc-jsx.js.map +1 -1
  106. package/build/esm/core/component-annotation-oxc-walk.js +61 -121
  107. package/build/esm/core/component-annotation-oxc-walk.js.map +1 -1
  108. package/build/esm/core/component-annotation-oxc.js +65 -96
  109. package/build/esm/core/component-annotation-oxc.js.map +1 -1
  110. package/build/esm/core/debug-id-upload.js +218 -213
  111. package/build/esm/core/debug-id-upload.js.map +1 -1
  112. package/build/esm/core/get-code-injection-position.js +59 -72
  113. package/build/esm/core/get-code-injection-position.js.map +1 -1
  114. package/build/esm/core/glob.js +9 -5
  115. package/build/esm/core/glob.js.map +1 -1
  116. package/build/esm/core/index.js +62 -47
  117. package/build/esm/core/index.js.map +1 -1
  118. package/build/esm/core/logger.js +17 -24
  119. package/build/esm/core/logger.js.map +1 -1
  120. package/build/esm/core/options-mapping.js +95 -115
  121. package/build/esm/core/options-mapping.js.map +1 -1
  122. package/build/esm/core/sentry/telemetry.js +89 -102
  123. package/build/esm/core/sentry/telemetry.js.map +1 -1
  124. package/build/esm/core/sentry/transports.js +90 -83
  125. package/build/esm/core/sentry/transports.js.map +1 -1
  126. package/build/esm/core/sourcemap-settings.js +96 -59
  127. package/build/esm/core/sourcemap-settings.js.map +1 -1
  128. package/build/esm/core/upload-filter.js +50 -0
  129. package/build/esm/core/upload-filter.js.map +1 -0
  130. package/build/esm/core/utils.js +221 -209
  131. package/build/esm/core/utils.js.map +1 -1
  132. package/build/esm/core/version.js +4 -3
  133. package/build/esm/core/version.js.map +1 -1
  134. package/build/esm/esbuild/index.js +176 -194
  135. package/build/esm/esbuild/index.js.map +1 -1
  136. package/build/esm/loader-utils/index.js +4 -3
  137. package/build/esm/package.json +1 -1
  138. package/build/esm/rollup/debug-id-injection.js +22 -36
  139. package/build/esm/rollup/debug-id-injection.js.map +1 -1
  140. package/build/esm/rollup/debug-id-stamping.js +14 -22
  141. package/build/esm/rollup/debug-id-stamping.js.map +1 -1
  142. package/build/esm/rollup/index.js +191 -189
  143. package/build/esm/rollup/index.js.map +1 -1
  144. package/build/esm/rollup/source-map-handling.js +173 -0
  145. package/build/esm/rollup/source-map-handling.js.map +1 -0
  146. package/build/esm/vite/index.js +19 -32
  147. package/build/esm/vite/index.js.map +1 -1
  148. package/build/esm/vite/source-map-hooks.js +114 -0
  149. package/build/esm/vite/source-map-hooks.js.map +1 -0
  150. package/build/esm/webpack/component-annotation-transform.js +17 -24
  151. package/build/esm/webpack/component-annotation-transform.js.map +1 -1
  152. package/build/esm/webpack/index.js +274 -216
  153. package/build/esm/webpack/index.js.map +1 -1
  154. package/build/types/core/build-plugin-manager.d.ts +33 -10
  155. package/build/types/core/build-plugin-manager.d.ts.map +1 -1
  156. package/build/types/core/cli.d.ts +6 -1
  157. package/build/types/core/cli.d.ts.map +1 -1
  158. package/build/types/core/debug-id-upload.d.ts +7 -4
  159. package/build/types/core/debug-id-upload.d.ts.map +1 -1
  160. package/build/types/core/index.d.ts +4 -3
  161. package/build/types/core/index.d.ts.map +1 -1
  162. package/build/types/core/options-mapping.d.ts +4 -3
  163. package/build/types/core/options-mapping.d.ts.map +1 -1
  164. package/build/types/core/sentry/telemetry.d.ts.map +1 -1
  165. package/build/types/core/sourcemap-settings.d.ts +10 -1
  166. package/build/types/core/sourcemap-settings.d.ts.map +1 -1
  167. package/build/types/core/types.d.ts +32 -1
  168. package/build/types/core/types.d.ts.map +1 -1
  169. package/build/types/core/upload-filter.d.ts +9 -0
  170. package/build/types/core/upload-filter.d.ts.map +1 -0
  171. package/build/types/core/utils.d.ts +4 -0
  172. package/build/types/core/utils.d.ts.map +1 -1
  173. package/build/types/core/version.d.ts +1 -1
  174. package/build/types/esbuild/index.d.ts +2 -2
  175. package/build/types/esbuild/index.d.ts.map +1 -1
  176. package/build/types/rollup/index.d.ts +107 -7
  177. package/build/types/rollup/index.d.ts.map +1 -1
  178. package/build/types/rollup/source-map-handling.d.ts +59 -0
  179. package/build/types/rollup/source-map-handling.d.ts.map +1 -0
  180. package/build/types/vite/index.d.ts +4 -8
  181. package/build/types/vite/index.d.ts.map +1 -1
  182. package/build/types/vite/source-map-hooks.d.ts +45 -0
  183. package/build/types/vite/source-map-hooks.d.ts.map +1 -0
  184. package/build/types/webpack/index.d.ts +7 -3
  185. package/build/types/webpack/index.d.ts.map +1 -1
  186. package/package.json +33 -38
  187. package/build/cjs/loader-utils/index.js.map +0 -1
  188. package/build/esm/loader-utils/index.js.map +0 -1
@@ -1,8 +1,9 @@
1
- import type { ChunkGraphNode, Options } from '../core';
1
+ import type { ChunkGraphNode, InternalOptions, Options } from '../core';
2
2
  import type { ComponentAnnotationTransformMeta } from '../core/component-annotation-oxc';
3
3
  import type { SourceMap } from 'magic-string';
4
4
  import MagicString from 'magic-string';
5
5
  import { type OutputBundle } from './debug-id-stamping';
6
+ import { type OutputDestinationOptions } from './source-map-handling';
6
7
  type TransformResult = {
7
8
  code: string;
8
9
  map?: SourceMap | string | {
@@ -14,6 +15,83 @@ type PluginContext = {
14
15
  rolldownVersion?: string;
15
16
  };
16
17
  };
18
+ /**
19
+ * @ignore - internal plugin factory shared by the Rollup and Vite plugins.
20
+ *
21
+ * `main` carries injection, release creation and the upload. `post` runs last in `generateBundle`,
22
+ * copies chunks and their source maps into the upload staging folder and drops the map assets
23
+ * from the bundle, so the bundler never writes them.
24
+ */
25
+ export declare function _createRollupPluginInternals(userOptions: InternalOptions | undefined, buildTool: 'rollup' | 'vite', buildToolMajorVersion?: string): {
26
+ main: {
27
+ name: string;
28
+ };
29
+ post: undefined;
30
+ } | {
31
+ main: {
32
+ name: string;
33
+ buildStart: () => void;
34
+ transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
35
+ filter: {
36
+ id: RegExp;
37
+ };
38
+ handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
39
+ } | undefined;
40
+ configResolved: (config: import("../vite/source-map-hooks").ViteResolvedConfig) => void;
41
+ renderChunk: (this: PluginContext | undefined, code: string, chunk: {
42
+ fileName: string;
43
+ facadeModuleId?: string | null;
44
+ isEntry?: boolean;
45
+ }, _?: unknown, meta?: {
46
+ magicString?: MagicString;
47
+ chunks?: Record<string, ChunkGraphNode>;
48
+ }) => {
49
+ code: string;
50
+ map?: SourceMap;
51
+ } | null;
52
+ generateBundle: {
53
+ order: 'pre';
54
+ handler: (this: PluginContext | undefined, _outputOptions: unknown, bundle: OutputBundle) => void;
55
+ };
56
+ writeBundle: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<void>;
57
+ } | {
58
+ name: string;
59
+ buildStart: () => void;
60
+ transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
61
+ filter: {
62
+ id: RegExp;
63
+ };
64
+ handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
65
+ } | undefined;
66
+ outputOptions: (rawOutputOptions: import("./source-map-handling").OutputOptions) => import("./source-map-handling").OutputOptions | null;
67
+ renderChunk: (this: PluginContext | undefined, code: string, chunk: {
68
+ fileName: string;
69
+ facadeModuleId?: string | null;
70
+ isEntry?: boolean;
71
+ }, _?: unknown, meta?: {
72
+ magicString?: MagicString;
73
+ chunks?: Record<string, ChunkGraphNode>;
74
+ }) => {
75
+ code: string;
76
+ map?: SourceMap;
77
+ } | null;
78
+ generateBundle: {
79
+ order: 'pre';
80
+ handler: (this: PluginContext | undefined, _outputOptions: unknown, bundle: OutputBundle) => void;
81
+ };
82
+ writeBundle: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<void>;
83
+ };
84
+ post: {
85
+ name: string;
86
+ config?: ((userConfig: import("../vite/source-map-hooks").ViteUserConfig, env: {
87
+ command: string;
88
+ }) => import("../vite/source-map-hooks").ViteUserConfig | null) | undefined;
89
+ generateBundle: {
90
+ order: 'post';
91
+ handler(outputOptions: OutputDestinationOptions, bundle: OutputBundle, isWrite?: boolean): Promise<void>;
92
+ };
93
+ };
94
+ };
17
95
  /**
18
96
  * @ignore - this is the internal plugin factory function only used for the Vite plugin!
19
97
  */
@@ -28,6 +106,33 @@ export declare function _rollupPluginInternal(userOptions: Options | undefined,
28
106
  };
29
107
  handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
30
108
  } | undefined;
109
+ configResolved: (config: import("../vite/source-map-hooks").ViteResolvedConfig) => void;
110
+ renderChunk: (this: PluginContext | undefined, code: string, chunk: {
111
+ fileName: string;
112
+ facadeModuleId?: string | null;
113
+ isEntry?: boolean;
114
+ }, _?: unknown, meta?: {
115
+ magicString?: MagicString;
116
+ chunks?: Record<string, ChunkGraphNode>;
117
+ }) => {
118
+ code: string;
119
+ map?: SourceMap;
120
+ } | null;
121
+ generateBundle: {
122
+ order: 'pre';
123
+ handler: (this: PluginContext | undefined, _outputOptions: unknown, bundle: OutputBundle) => void;
124
+ };
125
+ writeBundle: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<void>;
126
+ } | {
127
+ name: string;
128
+ buildStart: () => void;
129
+ transform?: ((code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>) | {
130
+ filter: {
131
+ id: RegExp;
132
+ };
133
+ handler: (code: string, id: string, meta?: ComponentAnnotationTransformMeta) => Promise<TransformResult>;
134
+ } | undefined;
135
+ outputOptions: (rawOutputOptions: import("./source-map-handling").OutputOptions) => import("./source-map-handling").OutputOptions | null;
31
136
  renderChunk: (this: PluginContext | undefined, code: string, chunk: {
32
137
  fileName: string;
33
138
  facadeModuleId?: string | null;
@@ -43,12 +148,7 @@ export declare function _rollupPluginInternal(userOptions: Options | undefined,
43
148
  order: 'pre';
44
149
  handler: (this: PluginContext | undefined, _outputOptions: unknown, bundle: OutputBundle) => void;
45
150
  };
46
- writeBundle: (outputOptions: {
47
- dir?: string;
48
- file?: string;
49
- }, bundle: {
50
- [fileName: string]: unknown;
51
- }) => Promise<void>;
151
+ writeBundle: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<void>;
52
152
  };
53
153
  export declare function sentryRollupPlugin(userOptions?: Options): any;
54
154
  export type { Options as SentryRollupPluginOptions } from '../core';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rollup/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAgBvD,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;AAKvE,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;IAAE,IAAI,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AA4C7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AAW,GAAE,OAAY,GAAG,GAAG,CAKjE;AAED,YAAY,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,59 @@
1
+ import type { SentryBuildPluginManager, SourceMapDecision, SourceMapKind, UploadStaging } from '../core';
2
+ import type { OutputBundle } from './debug-id-stamping';
3
+ export type RollupSourceMapSetting = boolean | 'inline' | 'hidden' | undefined;
4
+ export type OutputDestinationOptions = {
5
+ dir?: string;
6
+ file?: string;
7
+ };
8
+ /**
9
+ * The output options that tell outputs of one directory apart. Several outputs can write into the
10
+ * same directory at once, for example an ES and a CJS build, each with its own `sourcemap` setting.
11
+ * `sourcemap` holds the setting as the plugin left it, so an output it switched to hidden maps
12
+ * differs from one the user set.
13
+ */
14
+ export type OutputMatch = {
15
+ dir?: unknown;
16
+ file?: unknown;
17
+ format?: unknown;
18
+ entryFileNames?: unknown;
19
+ chunkFileNames?: unknown;
20
+ preserveModules?: unknown;
21
+ sourcemap?: unknown;
22
+ };
23
+ export type OutputOptions = OutputDestinationOptions & OutputMatch & {
24
+ sourcemap?: RollupSourceMapSetting;
25
+ };
26
+ /** Maps Rollup's (and Vite's) `sourcemap` setting onto the plugin's source map kinds. */
27
+ export declare function sourceMapKindFromRollupSetting(setting: RollupSourceMapSetting): SourceMapKind;
28
+ /** The directory an output writes to. Decisions and stagings are keyed by it. */
29
+ export declare function getOutputDestination(outputOptions: OutputDestinationOptions): string;
30
+ /** The fields of `OutputMatch` an output sets, in the form the normalized options carry them. */
31
+ export declare function getOutputMatch(outputOptions: OutputMatch): OutputMatch;
32
+ export type DecisionRecord = {
33
+ match: OutputMatch;
34
+ kind: SourceMapKind;
35
+ decision: SourceMapDecision;
36
+ };
37
+ export type SourceMapHandling = {
38
+ /** Rollup's `outputOptions` hook: decides for the output and switches it to hidden source maps when needed. */
39
+ outputOptions: (rawOutputOptions: OutputOptions) => OutputOptions | null;
40
+ /** Records the decision for an output, for bundlers that decide outside `outputOptions`. */
41
+ setDecision: (destination: string, record: DecisionRecord) => void;
42
+ /**
43
+ * `generateBundle` with `order: 'post'`: copies each chunk and its source map into a staging folder
44
+ * and drops the map asset from the bundle, so the bundler never writes it.
45
+ */
46
+ stageSourceMaps: (outputOptions: OutputOptions, bundle: OutputBundle, isWrite?: boolean) => Promise<void>;
47
+ /**
48
+ * Hands the staging of this bundle to `writeBundle`. Without a bundle (SvelteKit calls the hook
49
+ * with output options only) the oldest staging is taken.
50
+ */
51
+ takeStaging: (outputOptions: OutputDestinationOptions, bundle: OutputBundle | undefined) => Promise<UploadStaging | undefined>;
52
+ };
53
+ /**
54
+ * Source map decisions and upload stagings of one plugin instance. Keyed by output destination
55
+ * because one instance can serve several outputs, and watch mode or several `write()` calls
56
+ * rebuild the same one. Outputs that share a directory are told apart by `OutputMatch`.
57
+ */
58
+ export declare function createSourceMapHandling(sentryBuildPluginManager: SentryBuildPluginManager): SourceMapHandling;
59
+ //# sourceMappingURL=source-map-handling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-map-handling.d.ts","sourceRoot":"","sources":["../../../src/rollup/source-map-handling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEzG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/E,MAAM,MAAM,wBAAwB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EA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,CAgL7G"}
@@ -1,13 +1,9 @@
1
- import type { SentryRollupPluginOptions } from '../rollup';
2
- import { type OutputBundle } from '../rollup/debug-id-stamping';
1
+ import type { InternalOptions } from '../core';
3
2
  interface SentryVitePlugin {
4
3
  name: string;
5
4
  enforce: 'pre' | 'post';
6
- generateBundle?: {
7
- order: 'pre' | 'post';
8
- handler: (_outputOptions: unknown, bundle: OutputBundle) => void;
9
- };
5
+ [hook: string]: unknown;
10
6
  }
11
- export declare const sentryVitePlugin: (options?: SentryRollupPluginOptions) => SentryVitePlugin[];
12
- export type { Options as SentryVitePluginOptions } from '../core';
7
+ export declare const sentryVitePlugin: (options?: InternalOptions) => SentryVitePlugin[];
8
+ export type { Options as SentryVitePluginOptions, InternalOptions as SentryVitePluginInternalOptions } from '../core';
13
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAG3D,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE/E,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;QACtB,OAAO,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;KAClE,CAAC;CACH;AAgBD,eAAO,MAAM,gBAAgB,aAAc,yBAAyB,KAAG,gBAAgB,EAyBtF,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAI/C,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAgBD,eAAO,MAAM,gBAAgB,aAAc,eAAe,KAAG,gBAAgB,EAU5E,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,uBAAuB,EAAE,eAAe,IAAI,+BAA+B,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { SentryBuildPluginManager } from '../core';
2
+ import type { OutputMatch, RollupSourceMapSetting, SourceMapHandling } from '../rollup/source-map-handling';
3
+ type BundlerOutput = OutputMatch & {
4
+ dir?: string;
5
+ sourcemap?: RollupSourceMapSetting;
6
+ };
7
+ type BundlerOutputOptions = BundlerOutput | BundlerOutput[] | undefined;
8
+ type ViteBuildOptions = {
9
+ sourcemap?: RollupSourceMapSetting;
10
+ outDir?: string;
11
+ rollupOptions?: {
12
+ output?: BundlerOutputOptions;
13
+ };
14
+ rolldownOptions?: {
15
+ output?: BundlerOutputOptions;
16
+ };
17
+ };
18
+ export type ViteUserConfig = {
19
+ build?: ViteBuildOptions;
20
+ environments?: Record<string, {
21
+ build?: ViteBuildOptions;
22
+ } | undefined>;
23
+ };
24
+ export type ViteResolvedConfig = {
25
+ root: string;
26
+ build: ViteBuildOptions;
27
+ environments?: Record<string, {
28
+ build: ViteBuildOptions;
29
+ }>;
30
+ };
31
+ export type ViteSourceMapHooks = {
32
+ config: (userConfig: ViteUserConfig, env: {
33
+ command: string;
34
+ }) => ViteUserConfig | null;
35
+ configResolved: (config: ViteResolvedConfig) => void;
36
+ };
37
+ /**
38
+ * Vite warns about `rollupOptions.output.sourcemap`, so the Vite plugin decides on `build.sourcemap`
39
+ * in a `config` hook. The hook belongs on the post plugin: framework plugins that set
40
+ * `build.sourcemap` themselves run first, and the decision sees the merged setting. The output
41
+ * directories are only known in `configResolved`, which then records the decision for each of them.
42
+ */
43
+ export declare function createViteSourceMapHooks(sentryBuildPluginManager: SentryBuildPluginManager, sourceMapHandling: SourceMapHandling): ViteSourceMapHooks;
44
+ export {};
45
+ //# sourceMappingURL=source-map-hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-map-hooks.d.ts","sourceRoot":"","sources":["../../../src/vite/source-map-hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAoC,MAAM,SAAS,CAAC;AAE1F,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAG5G,KAAK,aAAa,GAAG,WAAW,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,sBAAsB,CAAA;CAAE,CAAC;AACxF,KAAK,oBAAoB,GAAG,aAAa,GAAG,aAAa,EAAE,GAAG,SAAS,CAAC;AAExE,KAAK,gBAAgB,GAAG;IACtB,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC;IAClD,eAAe,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,gBAAgB,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE,CAAC,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,CAAC,UAAU,EAAE,cAAc,EAAE,GAAG,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,cAAc,GAAG,IAAI,CAAC;IACxF,cAAc,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACtD,CAAC;AAiCF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,wBAAwB,EAAE,wBAAwB,EAClD,iBAAiB,EAAE,iBAAiB,GACnC,kBAAkB,CAmFpB"}
@@ -1,6 +1,9 @@
1
- import type { Options } from '../core/index';
2
- export declare const sentryWebpackPlugin: (options?: SentryWebpackPluginOptions) => any;
3
- export type SentryWebpackPluginOptions = Options & {
1
+ import type { InternalOptions, Options } from '../core/index';
2
+ export declare const sentryWebpackPlugin: (options?: SentryWebpackPluginInternalOptions) => any;
3
+ /** @internal For Sentry SDK packages only. See `InternalOptions`. */
4
+ export type SentryWebpackPluginInternalOptions = InternalOptions & WebpackExperiments;
5
+ export type SentryWebpackPluginOptions = Options & WebpackExperiments;
6
+ type WebpackExperiments = {
4
7
  _experiments?: Options['_experiments'] & {
5
8
  /**
6
9
  * If enabled, the webpack plugin will exit the build process after the build completes.
@@ -13,4 +16,5 @@ export type SentryWebpackPluginOptions = Options & {
13
16
  forceExitOnBuildCompletion?: boolean;
14
17
  };
15
18
  };
19
+ export {};
16
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webpack/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAoY7C,eAAO,MAAM,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,0BAA0B,KAAK,GAA+B,CAAC;AAE5G,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;QACvC;;;;;;;WAOG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webpack/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,OAAO,EAKR,MAAM,eAAe,CAAC;AA0kBvB,eAAO,MAAM,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,kCAAkC,KAAK,GAA+B,CAAC;AAEpH,qEAAqE;AACrE,MAAM,MAAM,kCAAkC,GAAG,eAAe,GAAG,kBAAkB,CAAC;AAEtF,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,kBAAkB,CAAC;AAEtE,KAAK,kBAAkB,GAAG;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;QACvC;;;;;;;WAOG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,CAAC;CACH,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@sentry/bundler-plugins",
3
- "version": "11.11.0",
3
+ "version": "11.13.0",
4
4
  "description": "Sentry Bundler Plugins",
5
- "repository": "git://github.com/getsentry/sentry-javascript.git",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/getsentry/sentry-javascript.git"
8
+ },
6
9
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/main/packages/bundler-plugins",
7
10
  "author": "Sentry",
8
11
  "license": "MIT",
@@ -71,33 +74,6 @@
71
74
  "require": "./build/cjs/webpack/component-annotation-transform.js"
72
75
  }
73
76
  },
74
- "scripts": {
75
- "build": "run-p build:transpile build:types",
76
- "build:dev": "pnpm run build",
77
- "build:version": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/core/version.ts",
78
- "build:transpile": "rollup -c rollup.npm.config.mjs",
79
- "build:types": "tsc -p tsconfig.types.json",
80
- "build:watch": "run-p build:transpile:watch",
81
- "build:dev:watch": "pnpm run build:watch",
82
- "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
83
- "build:tarball": "npm pack",
84
- "prebuild": "pnpm run build:version",
85
- "precheck:types": "pnpm run build:version",
86
- "prelint:types": "pnpm run build:version",
87
- "pretest": "pnpm run build:version",
88
- "pretest:unit": "pnpm run build:version",
89
- "check:types": "run-p check:types:src check:types:test",
90
- "check:types:src": "tsc --project ./tsconfig.json --noEmit",
91
- "check:types:test": "tsc --project ./test/tsconfig.json --noEmit",
92
- "clean": "rimraf build dist coverage sentry-bundler-plugins-*.tgz",
93
- "clean:all": "run-p clean clean:deps",
94
- "clean:deps": "rimraf node_modules",
95
- "lint": "oxlint . --type-aware",
96
- "lint:types": "oxlint src --type-aware --type-check",
97
- "lint:fix": "oxlint . --fix --type-aware",
98
- "test": "vitest run",
99
- "test:unit": "vitest run"
100
- },
101
77
  "nx": {
102
78
  "targets": {
103
79
  "build:transpile": {
@@ -115,13 +91,12 @@
115
91
  }
116
92
  },
117
93
  "dependencies": {
118
- "@sentry/core": "11.11.0",
94
+ "@sentry/core": "11.13.0",
119
95
  "dotenv": "^17.4.2",
120
96
  "glob": "^14.0.3",
121
97
  "magic-string": "~0.30.8 || ^1.0.0",
122
98
  "oxc-parser": "^0.152.0",
123
- "sentry": "^0.45.0",
124
- "supports-color": "^8.1.1"
99
+ "sentry": "^0.49.0"
125
100
  },
126
101
  "peerDependencies": {
127
102
  "rollup": ">=3.2.0",
@@ -139,13 +114,13 @@
139
114
  "@babel/core": "^7.18.5",
140
115
  "@babel/parser": "^8.0.10",
141
116
  "@babel/preset-react": "^7.23.3",
142
- "@sentry-internal/rollup-utils": "11.11.0",
143
- "@sentry-internal/test-utils": "11.11.0",
117
+ "@sentry-internal/rollup-utils": "11.13.0",
118
+ "@sentry-internal/test-utils": "11.13.0",
144
119
  "@types/babel__core": "^7.20.5",
145
120
  "@types/node": "^20.19.0",
146
- "premove": "^4.0.0",
147
121
  "rolldown": "^1.0.0",
148
- "vitest": "^4.1.11",
122
+ "vite": "^8.3.6",
123
+ "vitest": "^4.1.12",
149
124
  "webpack": "5.112.2"
150
125
  },
151
126
  "engines": {
@@ -154,5 +129,25 @@
154
129
  "sideEffects": [
155
130
  "./sentry-release-injection-file.js",
156
131
  "./sentry-esbuild-debugid-injection-file.js"
157
- ]
158
- }
132
+ ],
133
+ "scripts": {
134
+ "build": "pnpm run \"/^build:(transpile|types)$/\"",
135
+ "build:dev": "pnpm run build",
136
+ "build:version": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/core/version.ts",
137
+ "build:transpile": "rolldown -c rollup.npm.config.mjs",
138
+ "build:types": "tsc -p tsconfig.types.json",
139
+ "build:tarball": "pnpm pack",
140
+ "prebuild": "pnpm run build:version",
141
+ "prelint:types": "pnpm run build:version",
142
+ "pretest": "pnpm run build:version",
143
+ "pretest:unit": "pnpm run build:version",
144
+ "clean": "node ../../scripts/rm.mjs build dist coverage sentry-bundler-plugins-*.tgz",
145
+ "clean:all": "pnpm run \"/^(clean|clean:deps)$/\"",
146
+ "clean:deps": "node ../../scripts/rm.mjs node_modules",
147
+ "lint": "oxlint . --type-aware",
148
+ "lint:types": "oxlint src test --type-aware --type-check",
149
+ "lint:fix": "oxlint . --fix --type-aware",
150
+ "test": "vitest run",
151
+ "test:unit": "vitest run"
152
+ }
153
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}