@sentry/rollup-plugin 2.14.3 → 2.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/README.md +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -235,7 +235,7 @@ Unique identifier for the release you want to create.
|
|
|
235
235
|
|
|
236
236
|
This value can also be specified via the `SENTRY_RELEASE` environment variable.
|
|
237
237
|
|
|
238
|
-
Defaults to automatically detecting a value for your environment. This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA. (the
|
|
238
|
+
Defaults to automatically detecting a value for your environment. This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA. (the latter requires access to git CLI and for the root directory to be a valid repository)
|
|
239
239
|
|
|
240
240
|
If you didn't provide a value and the plugin can't automatically detect one, no release will be created.
|
|
241
241
|
|
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 SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\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 rollupComponentNameAnnotatePlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(),\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 componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\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
|
|
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 createComponentNameAnnotateHooks,\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 rollupComponentNameAnnotatePlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(),\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 componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\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","rollupComponentNameAnnotatePlugin","createComponentNameAnnotateHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","componentNameAnnotatePlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;;;;AAaA,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,iCAAiCA,GAAoB;EAC5D,OAAO;AACLH,IAAAA,IAAI,EAAE,8CAA8C;IACpDC,MAAM,EAAEG,kDAAgC,EAAC;GAC1C,CAAA;AACH,CAAA;AAEA,SAASC,4BAA4BA,GAAoB;EACvD,OAAO;AACLL,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEK,mDAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACR,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEO,0DAAwC,CAACT,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASU,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLV,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEU,gDAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLb,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEa,yDAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEnB,4BAA4B;AACpDoB,EAAAA,2BAA2B,EAAEf,iCAAiC;AAC9DgB,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,6BAA6B,EAAEb,mCAAmC;AAClEc,EAAAA,mBAAmB,EAAEZ,yBAAyB;AAC9Ca,EAAAA,6BAA6B,EAAEV,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaW,IAAAA,kBAA8C,GAAGR,cAAc,CAACd;;;;;;;;"}
|
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 SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\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 rollupComponentNameAnnotatePlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(),\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 componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\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
|
|
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 createComponentNameAnnotateHooks,\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 rollupComponentNameAnnotatePlugin(): UnpluginOptions {\n return {\n name: \"sentry-rollup-component-name-annotate-plugin\",\n rollup: createComponentNameAnnotateHooks(),\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 componentNameAnnotatePlugin: rollupComponentNameAnnotatePlugin,\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","rollupComponentNameAnnotatePlugin","createComponentNameAnnotateHooks","rollupDebugIdInjectionPlugin","createRollupDebugIdInjectionHooks","rollupModuleMetadataInjectionPlugin","createRollupModuleMetadataInjectionHooks","rollupDebugIdUploadPlugin","upload","createRollupDebugIdUploadHooks","rollupBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","releaseInjectionPlugin","componentNameAnnotatePlugin","debugIdInjectionPlugin","moduleMetadataInjectionPlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryRollupPlugin"],"mappings":";;;AAaA,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,iCAAiCA,GAAoB;EAC5D,OAAO;AACLH,IAAAA,IAAI,EAAE,8CAA8C;IACpDC,MAAM,EAAEG,gCAAgC,EAAC;GAC1C,CAAA;AACH,CAAA;AAEA,SAASC,4BAA4BA,GAAoB;EACvD,OAAO;AACLL,IAAAA,IAAI,EAAE,yCAAyC;IAC/CC,MAAM,EAAEK,iCAAiC,EAAC;GAC3C,CAAA;AACH,CAAA;AAEA,SAASC,mCAAmCA,CAACR,aAAqB,EAAmB;EACnF,OAAO;AACLC,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEO,wCAAwC,CAACT,aAAa,CAAA;GAC/D,CAAA;AACH,CAAA;AAEA,SAASU,yBAAyBA,CAChCC,MAAmD,EAClC;EACjB,OAAO;AACLV,IAAAA,IAAI,EAAE,sCAAsC;IAC5CC,MAAM,EAAEU,8BAA8B,CAACD,MAAM,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,SAASE,mCAAmCA,CAC1CC,iBAAsC,EACrB;EACjB,OAAO;AACLb,IAAAA,IAAI,EAAE,gDAAgD;IACtDC,MAAM,EAAEa,uCAAuC,CAACD,iBAAiB,CAAA;GAClE,CAAA;AACH,CAAA;AAEA,IAAME,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,sBAAsB,EAAEnB,4BAA4B;AACpDoB,EAAAA,2BAA2B,EAAEf,iCAAiC;AAC9DgB,EAAAA,sBAAsB,EAAEd,4BAA4B;AACpDe,EAAAA,6BAA6B,EAAEb,mCAAmC;AAClEc,EAAAA,mBAAmB,EAAEZ,yBAAyB;AAC9Ca,EAAAA,6BAA6B,EAAEV,mCAAAA;AACjC,CAAC,CAAC,CAAA;;AAEF;AACaW,IAAAA,kBAA8C,GAAGR,cAAc,CAACd;;;;"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Options } from "@sentry/bundler-plugin-core";
|
|
2
|
-
export declare const sentryRollupPlugin: (options
|
|
2
|
+
export declare const sentryRollupPlugin: (options?: Options) => any;
|
|
3
3
|
export type { Options as SentryRollupPluginOptions } from "@sentry/bundler-plugin-core";
|
|
4
4
|
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/rollup-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.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.15.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.15.0",
|
|
65
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.15.0",
|
|
66
66
|
"@swc/core": "^1.2.205",
|
|
67
67
|
"@swc/jest": "^0.2.21",
|
|
68
68
|
"@types/jest": "^28.1.3",
|