@sentry/bundler-plugin-core 4.9.1 → 5.1.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 +5822 -9969
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +5778 -9928
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/build-plugin-manager.d.ts +2 -0
- package/dist/types/build-plugin-manager.d.ts.map +1 -1
- package/dist/types/glob.d.ts +5 -0
- package/dist/types/glob.d.ts.map +1 -0
- package/dist/types/index.d.ts +37 -49
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/sentry/telemetry.d.ts.map +1 -1
- package/dist/types/utils.d.ts +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/version.d.ts +2 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +12 -17
- package/sentry-esbuild-debugid-injection-file.js +6 -6
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NormalizedOptions } from "./options-mapping";
|
|
2
2
|
import { Logger } from "./logger";
|
|
3
3
|
import { Options, SentrySDKBuildFlags } from "./types";
|
|
4
|
+
/** @internal Exported for testing only. */
|
|
5
|
+
export declare function _resetDeployedReleasesForTesting(): void;
|
|
4
6
|
export type SentryBuildPluginManager = {
|
|
5
7
|
/**
|
|
6
8
|
* A logger instance that takes the options passed to the build plugin manager into account. (for silencing and log level etc.)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-plugin-manager.d.ts","sourceRoot":"","sources":["../../src/build-plugin-manager.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAyC,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAMhD,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"build-plugin-manager.d.ts","sourceRoot":"","sources":["../../src/build-plugin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;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,wBAAwB,CAurB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/glob.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CACvB,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAC3B,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,GACtD,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,65 +1,53 @@
|
|
|
1
|
-
import MagicString, { SourceMap } from "magic-string";
|
|
2
|
-
import { UnpluginInstance, UnpluginOptions } from "unplugin";
|
|
3
|
-
import { Logger } from "./logger";
|
|
4
|
-
import { Options, SentrySDKBuildFlags } from "./types";
|
|
5
1
|
import { CodeInjection } from "./utils";
|
|
6
|
-
type InjectionPlugin = (injectionCode: CodeInjection, debugIds: boolean, logger: Logger) => UnpluginOptions;
|
|
7
|
-
type LegacyPlugins = {
|
|
8
|
-
releaseInjectionPlugin: (injectionCode: string) => UnpluginOptions;
|
|
9
|
-
moduleMetadataInjectionPlugin: (injectionCode: string) => UnpluginOptions;
|
|
10
|
-
debugIdInjectionPlugin: (logger: Logger) => UnpluginOptions;
|
|
11
|
-
};
|
|
12
|
-
interface SentryUnpluginFactoryOptions {
|
|
13
|
-
injectionPlugin: InjectionPlugin | LegacyPlugins;
|
|
14
|
-
componentNameAnnotatePlugin?: (ignoredComponents: string[], injectIntoHtml: boolean) => UnpluginOptions;
|
|
15
|
-
debugIdUploadPlugin: (upload: (buildArtifacts: string[]) => Promise<void>, logger: Logger, createDependencyOnBuildArtifacts: () => () => void, webpack_forceExitOnBuildComplete?: boolean) => UnpluginOptions;
|
|
16
|
-
bundleSizeOptimizationsPlugin: (buildFlags: SentrySDKBuildFlags) => UnpluginOptions;
|
|
17
|
-
getBundlerMajorVersion?: () => string | undefined;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Creates an unplugin instance used to create Sentry plugins for Vite, Rollup, esbuild, and Webpack.
|
|
21
|
-
*/
|
|
22
|
-
export declare function sentryUnpluginFactory({ injectionPlugin, componentNameAnnotatePlugin, debugIdUploadPlugin, bundleSizeOptimizationsPlugin, getBundlerMajorVersion, }: SentryUnpluginFactoryOptions): UnpluginInstance<Options | undefined, true>;
|
|
23
2
|
/**
|
|
24
3
|
* Determines whether the Sentry CLI binary is in its expected location.
|
|
25
4
|
* This function is useful since `@sentry/cli` installs the binary via a post-install
|
|
26
5
|
* script and post-install scripts may not always run. E.g. with `npm i --ignore-scripts`.
|
|
27
6
|
*/
|
|
28
7
|
export declare function sentryCliBinaryExists(): boolean;
|
|
8
|
+
export declare const COMMENT_USE_STRICT_REGEX: RegExp;
|
|
29
9
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* about type mismatches
|
|
10
|
+
* Checks if a file is a JavaScript file based on its extension.
|
|
11
|
+
* Handles query strings and hashes in the filename.
|
|
33
12
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export declare function
|
|
50
|
-
|
|
51
|
-
dir?: string;
|
|
52
|
-
file?: string;
|
|
53
|
-
}, bundle: {
|
|
54
|
-
[fileName: string]: unknown;
|
|
55
|
-
}) => Promise<void>;
|
|
56
|
-
};
|
|
13
|
+
export declare function isJsFile(fileName: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Checks if a chunk should be skipped for code injection
|
|
16
|
+
*
|
|
17
|
+
* This is necessary to handle Vite's MPA (multi-page application) mode where
|
|
18
|
+
* HTML entry points create "facade" chunks that should not contain injected code.
|
|
19
|
+
* See: https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/829
|
|
20
|
+
*
|
|
21
|
+
* However, in SPA mode, the main bundle also has an HTML facade but contains
|
|
22
|
+
* substantial application code. We should NOT skip injection for these bundles.
|
|
23
|
+
*
|
|
24
|
+
* @param code - The chunk's code content
|
|
25
|
+
* @param facadeModuleId - The facade module ID (if any) - HTML files create facade chunks
|
|
26
|
+
* @returns true if the chunk should be skipped
|
|
27
|
+
*/
|
|
28
|
+
export declare function shouldSkipCodeInjection(code: string, facadeModuleId: string | null | undefined): boolean;
|
|
29
|
+
export { globFiles } from "./glob";
|
|
57
30
|
export declare function createComponentNameAnnotateHooks(ignoredComponents: string[], injectIntoHtml: boolean): {
|
|
58
|
-
transform:
|
|
31
|
+
transform(this: void, code: string, id: string): Promise<{
|
|
32
|
+
code: string;
|
|
33
|
+
map: {
|
|
34
|
+
version: number;
|
|
35
|
+
sources: string[];
|
|
36
|
+
names: string[];
|
|
37
|
+
sourceRoot?: string | undefined;
|
|
38
|
+
sourcesContent?: string[] | undefined;
|
|
39
|
+
mappings: string;
|
|
40
|
+
file: string;
|
|
41
|
+
} | null | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
code: string;
|
|
44
|
+
map?: undefined;
|
|
45
|
+
} | null>;
|
|
59
46
|
};
|
|
60
47
|
export declare function getDebugIdSnippet(debugId: string): CodeInjection;
|
|
61
48
|
export type { Logger } from "./logger";
|
|
62
49
|
export type { Options, SentrySDKBuildFlags } from "./types";
|
|
63
|
-
export { CodeInjection, replaceBooleanFlagsInCode, stringToUUID } from "./utils";
|
|
50
|
+
export { CodeInjection, replaceBooleanFlagsInCode, stringToUUID, generateReleaseInjectorCode, generateModuleMetadataInjectorCode, } from "./utils";
|
|
64
51
|
export { createSentryBuildPluginManager } from "./build-plugin-manager";
|
|
52
|
+
export { createDebugIdUploadFunction } from "./debug-id-upload";
|
|
65
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAkD,MAAM,SAAS,CAAC;AAExF;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C;AAID,eAAO,MAAM,wBAAwB,QAEiC,CAAC;AAEvE;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAGlD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACxC,OAAO,CAYT;AAED,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGnC,wBAAgB,gCAAgC,CAC9C,iBAAiB,EAAE,MAAM,EAAE,EAC3B,cAAc,EAAE,OAAO;oBAOC,IAAI,QAAQ,MAAM,MAAM,MAAM;;;;;;;;;;;;;;;EAkDvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAIhE;AAED,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EACL,aAAa,EACb,yBAAyB,EACzB,YAAY,EACZ,2BAA2B,EAC3B,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/sentry/telemetry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAmB,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../src/sentry/telemetry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAmB,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAUrC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,iBAAiB,EAC1B,mBAAmB,EAAE,OAAO,CAAC,OAAO,CAAC,EACrC,SAAS,EAAE,MAAM,EACjB,qBAAqB,EAAE,MAAM,GAAG,SAAS,GACxC;IAAE,WAAW,EAAE,KAAK,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CA4C9C;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,MAAM,EACjB,qBAAqB,CAAC,EAAE,MAAM,GAC7B,IAAI,CAmDN;AAED,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,CA2CzF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO5E"}
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare function determineReleaseName(): string | undefined;
|
|
|
34
34
|
* Generates code for the global injector which is responsible for setting the global
|
|
35
35
|
* `SENTRY_RELEASE` & `SENTRY_BUILD_INFO` variables.
|
|
36
36
|
*/
|
|
37
|
-
export declare function
|
|
37
|
+
export declare function generateReleaseInjectorCode({ release, injectBuildInformation, }: {
|
|
38
38
|
release: string;
|
|
39
39
|
injectBuildInformation: boolean;
|
|
40
40
|
}): CodeInjection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAMA,OAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;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,GAClF,WAAW,GACX,SAAS,CAEZ;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA2DrE;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,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAMA,OAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;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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ACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAUxF;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,CAa3F;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,CAA2K;IAClM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;gBAExB,IAAI,GAAE,MAAW;IAE9B,IAAI,IAAI,MAAM;IAQd,OAAO,IAAI,OAAO;IAIlB,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI;IAQ1C,KAAK,IAAI,IAAI;IAIb,KAAK,IAAI,aAAa;CAG9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/bundler-plugin-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Sentry Bundler Plugin Core",
|
|
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/bundler-plugin-core",
|
|
@@ -33,10 +33,11 @@
|
|
|
33
33
|
"module": "dist/esm/index.mjs",
|
|
34
34
|
"types": "dist/types/index.d.ts",
|
|
35
35
|
"scripts": {
|
|
36
|
+
"prebuild": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
|
|
36
37
|
"build": "premove ./out && run-p build:rollup build:types",
|
|
37
38
|
"build:watch": "run-p build:rollup:watch build:types:watch",
|
|
38
|
-
"build:rollup": "
|
|
39
|
-
"build:rollup:watch": "
|
|
39
|
+
"build:rollup": "rolldown --config rollup.config.mjs",
|
|
40
|
+
"build:rollup:watch": "rolldown --config rollup.config.mjs --watch --no-watch.clearScreen",
|
|
40
41
|
"build:types": "tsc --project types.tsconfig.json",
|
|
41
42
|
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
|
|
42
43
|
"build:npm": "npm pack",
|
|
@@ -47,29 +48,23 @@
|
|
|
47
48
|
"clean:all": "run-p clean clean:deps",
|
|
48
49
|
"clean:build": "premove ./dist *.tgz",
|
|
49
50
|
"clean:deps": "premove node_modules",
|
|
51
|
+
"pretest": "yarn prebuild",
|
|
50
52
|
"test": "jest",
|
|
51
53
|
"lint": "eslint ./src ./test",
|
|
52
54
|
"fix": "eslint ./src ./test --format stylish --fix"
|
|
53
55
|
},
|
|
54
56
|
"dependencies": {
|
|
55
57
|
"@babel/core": "^7.18.5",
|
|
56
|
-
"@sentry/babel-plugin-component-annotate": "
|
|
57
|
-
"@sentry/cli": "^2.
|
|
58
|
+
"@sentry/babel-plugin-component-annotate": "5.1.0",
|
|
59
|
+
"@sentry/cli": "^2.58.5",
|
|
58
60
|
"dotenv": "^16.3.1",
|
|
59
61
|
"find-up": "^5.0.0",
|
|
60
|
-
"glob": "^
|
|
61
|
-
"magic-string": "0.30.8"
|
|
62
|
-
"unplugin": "1.0.1"
|
|
62
|
+
"glob": "^13.0.6",
|
|
63
|
+
"magic-string": "0.30.8"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@rollup/plugin-babel": "5.3.1",
|
|
68
|
-
"@rollup/plugin-json": "4.1.0",
|
|
69
|
-
"@rollup/plugin-node-resolve": "13.3.0",
|
|
70
|
-
"@rollup/plugin-replace": "^4.0.0",
|
|
71
|
-
"@sentry-internal/eslint-config": "4.9.1",
|
|
72
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "4.9.1",
|
|
66
|
+
"@sentry-internal/eslint-config": "5.1.0",
|
|
67
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "5.1.0",
|
|
73
68
|
"@sentry/core": "8.30.0",
|
|
74
69
|
"@sentry/types": "8.30.0",
|
|
75
70
|
"@sentry/utils": "8.30.0",
|
|
@@ -80,7 +75,7 @@
|
|
|
80
75
|
"eslint": "^8.18.0",
|
|
81
76
|
"jest": "^28.1.1",
|
|
82
77
|
"premove": "^4.0.0",
|
|
83
|
-
"
|
|
78
|
+
"rolldown": "^1.0.0-rc.4",
|
|
84
79
|
"typescript": "^4.7.4"
|
|
85
80
|
},
|
|
86
81
|
"volta": {
|
|
@@ -3,12 +3,12 @@ try {
|
|
|
3
3
|
"undefined" != typeof window
|
|
4
4
|
? window
|
|
5
5
|
: "undefined" != typeof global
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
? global
|
|
7
|
+
: "undefined" != typeof globalThis
|
|
8
|
+
? global
|
|
9
|
+
: "undefined" != typeof self
|
|
10
|
+
? self
|
|
11
|
+
: {};
|
|
12
12
|
|
|
13
13
|
let stack = new globalObject.Error().stack;
|
|
14
14
|
|