@sentry/rollup-plugin 2.8.0 → 2.9.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/dist/cjs/index.js +8 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +9 -2
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -28,11 +28,18 @@ function rollupDebugIdUploadPlugin(upload) {
|
|
|
28
28
|
rollup: bundlerPluginCore.createRollupDebugIdUploadHooks(upload)
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
function rollupBundleSizeOptimizationsPlugin(replacementValues) {
|
|
32
|
+
return {
|
|
33
|
+
name: "sentry-rollup-bundle-size-optimizations-plugin",
|
|
34
|
+
rollup: bundlerPluginCore.createRollupBundleSizeOptimizationHooks(replacementValues)
|
|
35
|
+
};
|
|
36
|
+
}
|
|
31
37
|
var sentryUnplugin = bundlerPluginCore.sentryUnpluginFactory({
|
|
32
38
|
releaseInjectionPlugin: rollupReleaseInjectionPlugin,
|
|
33
39
|
debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,
|
|
34
40
|
moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,
|
|
35
|
-
debugIdUploadPlugin: rollupDebugIdUploadPlugin
|
|
41
|
+
debugIdUploadPlugin: rollupDebugIdUploadPlugin,
|
|
42
|
+
bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin
|
|
36
43
|
});
|
|
37
44
|
|
|
38
45
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","sentryRollupPlugin"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nfunction rollupBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-bundle-size-optimizations-plugin\",\n rollup: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;;;;AAYA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,mDAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,4BAA4BA,GAAoB;EACvD,OAAO;AACLH,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEG,mDAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACN,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEK,0DAAwC,CAACP,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASQ,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLR,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEQ,gDAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLX,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEW,yDAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEjB,4BAA4B;AACpDkB,EAAAA,sBAAsB,EAAEb,4BAA4B;AACpDc,EAAAA,6BAA6B,EAAEZ,mCAAmC;AAClEa,EAAAA,mBAAmB,EAAEX,yBAAyB;AAC9CY,EAAAA,6BAA6B,EAAET,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaU,IAAAA,kBAA6C,GAAGP,cAAc,CAACZ;;;;;;;;"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sentryUnpluginFactory, createRollupReleaseInjectionHooks, createRollupDebugIdInjectionHooks, createRollupModuleMetadataInjectionHooks, createRollupDebugIdUploadHooks } from '@sentry/bundler-plugin-core';
|
|
1
|
+
import { sentryUnpluginFactory, createRollupReleaseInjectionHooks, createRollupDebugIdInjectionHooks, createRollupModuleMetadataInjectionHooks, createRollupDebugIdUploadHooks, createRollupBundleSizeOptimizationHooks } from '@sentry/bundler-plugin-core';
|
|
2
2
|
export { sentryCliBinaryExists } from '@sentry/bundler-plugin-core';
|
|
3
3
|
|
|
4
4
|
function rollupReleaseInjectionPlugin(injectionCode) {
|
|
@@ -25,11 +25,18 @@ function rollupDebugIdUploadPlugin(upload) {
|
|
|
25
25
|
rollup: createRollupDebugIdUploadHooks(upload)
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
function rollupBundleSizeOptimizationsPlugin(replacementValues) {
|
|
29
|
+
return {
|
|
30
|
+
name: "sentry-rollup-bundle-size-optimizations-plugin",
|
|
31
|
+
rollup: createRollupBundleSizeOptimizationHooks(replacementValues)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
28
34
|
var sentryUnplugin = sentryUnpluginFactory({
|
|
29
35
|
releaseInjectionPlugin: rollupReleaseInjectionPlugin,
|
|
30
36
|
debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,
|
|
31
37
|
moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,
|
|
32
|
-
debugIdUploadPlugin: rollupDebugIdUploadPlugin
|
|
38
|
+
debugIdUploadPlugin: rollupDebugIdUploadPlugin,
|
|
39
|
+
bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin
|
|
33
40
|
});
|
|
34
41
|
|
|
35
42
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","sentryRollupPlugin"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n sentryUnpluginFactory,\n Options,\n createRollupReleaseInjectionHooks,\n createRollupModuleMetadataInjectionHooks,\n createRollupDebugIdInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n} from \"@sentry/bundler-plugin-core\";\nimport type { UnpluginOptions } from \"unplugin\";\n\nfunction rollupReleaseInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-release-injection-plugin\",\n rollup: createRollupReleaseInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdInjectionPlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-injection-plugin\",\n rollup: createRollupDebugIdInjectionHooks(),\n };\n}\n\nfunction rollupModuleMetadataInjectionPlugin(injectionCode: string): UnpluginOptions {\n return {\n name: \"sentry-rollup-module-metadata-injection-plugin\",\n rollup: createRollupModuleMetadataInjectionHooks(injectionCode),\n };\n}\n\nfunction rollupDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-debug-id-upload-plugin\",\n rollup: createRollupDebugIdUploadHooks(upload),\n };\n}\n\nfunction rollupBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-rollup-bundle-size-optimizations-plugin\",\n rollup: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n releaseInjectionPlugin: rollupReleaseInjectionPlugin,\n debugIdInjectionPlugin: rollupDebugIdInjectionPlugin,\n moduleMetadataInjectionPlugin: rollupModuleMetadataInjectionPlugin,\n debugIdUploadPlugin: rollupDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: rollupBundleSizeOptimizationsPlugin,\n});\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const sentryRollupPlugin: (options: Options) => any = sentryUnplugin.rollup;\n\nexport type { Options as SentryRollupPluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["rollupReleaseInjectionPlugin","injectionCode","name","rollup","createRollupReleaseInjectionHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;AAYA,SAASA,4BAA4BA,CAACC,aAAqB,EAAmB;EAC5E,OAAO;AACLC,IAAAA,IAAI,EAAE,wCAAwC;IAC9CC,MAAM,EAAEC,iCAAiC,CAACH,aAAa,CAAA;GACxD,CAAA;AACH,CAAA;AAEA,SAASI,4BAA4BA,GAAoB;EACvD,OAAO;AACLH,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEG,iCAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACN,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEK,wCAAwC,CAACP,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASQ,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLR,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEQ,8BAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLX,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEW,uCAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEjB,4BAA4B;AACpDkB,EAAAA,sBAAsB,EAAEb,4BAA4B;AACpDc,EAAAA,6BAA6B,EAAEZ,mCAAmC;AAClEa,EAAAA,mBAAmB,EAAEX,yBAAyB;AAC9CY,EAAAA,6BAA6B,EAAET,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaU,IAAAA,kBAA6C,GAAGP,cAAc,CAACZ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/rollup-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Official Sentry Rollup plugin",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/rollup-plugin",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"prepack": "ts-node ./src/prepack.ts"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sentry/bundler-plugin-core": "2.
|
|
52
|
+
"@sentry/bundler-plugin-core": "2.9.0",
|
|
53
53
|
"unplugin": "1.0.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@babel/preset-typescript": "7.17.12",
|
|
62
62
|
"@rollup/plugin-babel": "5.3.1",
|
|
63
63
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
64
|
-
"@sentry-internal/eslint-config": "2.
|
|
65
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.
|
|
64
|
+
"@sentry-internal/eslint-config": "2.9.0",
|
|
65
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.9.0",
|
|
66
66
|
"@swc/core": "^1.2.205",
|
|
67
67
|
"@swc/jest": "^0.2.21",
|
|
68
68
|
"@types/jest": "^28.1.3",
|