@sentry/vite-plugin 4.8.0 → 4.9.1
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 +16 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +16 -1
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var bundlerPluginCore = require('@sentry/bundler-plugin-core');
|
|
6
|
+
var node_module = require('node:module');
|
|
6
7
|
|
|
7
8
|
function viteInjectionPlugin(injectionCode, debugIds) {
|
|
8
9
|
return {
|
|
@@ -33,11 +34,25 @@ function viteBundleSizeOptimizationsPlugin(replacementValues) {
|
|
|
33
34
|
vite: bundlerPluginCore.createRollupBundleSizeOptimizationHooks(replacementValues)
|
|
34
35
|
};
|
|
35
36
|
}
|
|
37
|
+
function getViteMajorVersion() {
|
|
38
|
+
try {
|
|
39
|
+
var _vite$version;
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
41
|
+
// @ts-ignore - Rollup already transpiles this for us
|
|
42
|
+
var req = node_module.createRequire((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)));
|
|
43
|
+
var vite = req("vite");
|
|
44
|
+
return (_vite$version = vite.version) === null || _vite$version === void 0 ? void 0 : _vite$version.split(".")[0];
|
|
45
|
+
} catch (err) {
|
|
46
|
+
// do nothing, we'll just not report a version
|
|
47
|
+
}
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
36
50
|
var sentryUnplugin = bundlerPluginCore.sentryUnpluginFactory({
|
|
37
51
|
injectionPlugin: viteInjectionPlugin,
|
|
38
52
|
componentNameAnnotatePlugin: viteComponentNameAnnotatePlugin,
|
|
39
53
|
debugIdUploadPlugin: viteDebugIdUploadPlugin,
|
|
40
|
-
bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin
|
|
54
|
+
bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin,
|
|
55
|
+
getBundlerMajorVersion: getViteMajorVersion
|
|
41
56
|
});
|
|
42
57
|
var sentryVitePlugin = function sentryVitePlugin(options) {
|
|
43
58
|
var result = sentryUnplugin.vite(options);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n CodeInjection,\n sentryUnpluginFactory,\n Options,\n createRollupInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n Logger,\n} from \"@sentry/bundler-plugin-core\";\nimport { UnpluginOptions, VitePlugin } from \"unplugin\";\n\nfunction viteInjectionPlugin(injectionCode: CodeInjection, debugIds: boolean): UnpluginOptions {\n return {\n name: \"sentry-vite-injection-plugin\",\n // run `post` to avoid tripping up @rollup/plugin-commonjs when cjs is used\n // as we inject an `import` statement\n enforce: \"post\" as const, // need this so that vite runs the resolveId hook\n vite: createRollupInjectionHooks(injectionCode, debugIds),\n };\n}\n\nfunction viteComponentNameAnnotatePlugin(\n ignoredComponents: string[],\n injectIntoHtml: boolean\n): UnpluginOptions {\n return {\n name: \"sentry-vite-component-name-annotate-plugin\",\n enforce: \"pre\" as const,\n vite: createComponentNameAnnotateHooks(ignoredComponents, injectIntoHtml),\n };\n}\n\nfunction viteDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>,\n logger: Logger,\n createDependencyOnBuildArtifacts: () => () => void\n): UnpluginOptions {\n return {\n name: \"sentry-vite-debug-id-upload-plugin\",\n vite: createRollupDebugIdUploadHooks(upload, logger, createDependencyOnBuildArtifacts),\n };\n}\n\nfunction viteBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-vite-bundle-size-optimizations-plugin\",\n vite: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n injectionPlugin: viteInjectionPlugin,\n componentNameAnnotatePlugin: viteComponentNameAnnotatePlugin,\n debugIdUploadPlugin: viteDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin,\n});\n\nexport const sentryVitePlugin = (options?: Options): VitePlugin[] => {\n const result = sentryUnplugin.vite(options);\n // unplugin returns a single plugin instead of an array when only one plugin is created, so we normalize this here.\n return Array.isArray(result) ? result : [result];\n};\n\nexport type { Options as SentryVitePluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["viteInjectionPlugin","injectionCode","debugIds","name","enforce","vite","createRollupInjectionHooks","viteComponentNameAnnotatePlugin","ignoredComponents","injectIntoHtml","createComponentNameAnnotateHooks","viteDebugIdUploadPlugin","upload","logger","createDependencyOnBuildArtifacts","createRollupDebugIdUploadHooks","viteBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","injectionPlugin","componentNameAnnotatePlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryVitePlugin","options","result","Array","isArray"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import {\n CodeInjection,\n sentryUnpluginFactory,\n Options,\n createRollupInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n Logger,\n} from \"@sentry/bundler-plugin-core\";\nimport { createRequire } from \"node:module\";\nimport { UnpluginOptions, VitePlugin } from \"unplugin\";\n\nfunction viteInjectionPlugin(injectionCode: CodeInjection, debugIds: boolean): UnpluginOptions {\n return {\n name: \"sentry-vite-injection-plugin\",\n // run `post` to avoid tripping up @rollup/plugin-commonjs when cjs is used\n // as we inject an `import` statement\n enforce: \"post\" as const, // need this so that vite runs the resolveId hook\n vite: createRollupInjectionHooks(injectionCode, debugIds),\n };\n}\n\nfunction viteComponentNameAnnotatePlugin(\n ignoredComponents: string[],\n injectIntoHtml: boolean\n): UnpluginOptions {\n return {\n name: \"sentry-vite-component-name-annotate-plugin\",\n enforce: \"pre\" as const,\n vite: createComponentNameAnnotateHooks(ignoredComponents, injectIntoHtml),\n };\n}\n\nfunction viteDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>,\n logger: Logger,\n createDependencyOnBuildArtifacts: () => () => void\n): UnpluginOptions {\n return {\n name: \"sentry-vite-debug-id-upload-plugin\",\n vite: createRollupDebugIdUploadHooks(upload, logger, createDependencyOnBuildArtifacts),\n };\n}\n\nfunction viteBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-vite-bundle-size-optimizations-plugin\",\n vite: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nfunction getViteMajorVersion(): string | undefined {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - Rollup already transpiles this for us\n const req = createRequire(import.meta.url);\n const vite = req(\"vite\") as { version?: string };\n return vite.version?.split(\".\")[0];\n } catch (err) {\n // do nothing, we'll just not report a version\n }\n\n return undefined;\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n injectionPlugin: viteInjectionPlugin,\n componentNameAnnotatePlugin: viteComponentNameAnnotatePlugin,\n debugIdUploadPlugin: viteDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin,\n getBundlerMajorVersion: getViteMajorVersion,\n});\n\nexport const sentryVitePlugin = (options?: Options): VitePlugin[] => {\n const result = sentryUnplugin.vite(options);\n // unplugin returns a single plugin instead of an array when only one plugin is created, so we normalize this here.\n return Array.isArray(result) ? result : [result];\n};\n\nexport type { Options as SentryVitePluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["viteInjectionPlugin","injectionCode","debugIds","name","enforce","vite","createRollupInjectionHooks","viteComponentNameAnnotatePlugin","ignoredComponents","injectIntoHtml","createComponentNameAnnotateHooks","viteDebugIdUploadPlugin","upload","logger","createDependencyOnBuildArtifacts","createRollupDebugIdUploadHooks","viteBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","getViteMajorVersion","_vite$version","req","createRequire","import","version","split","err","undefined","sentryUnplugin","sentryUnpluginFactory","injectionPlugin","componentNameAnnotatePlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","getBundlerMajorVersion","sentryVitePlugin","options","result","Array","isArray"],"mappings":";;;;;;;AAcA,SAASA,mBAAmBA,CAACC,aAA4B,EAAEC,QAAiB,EAAmB;EAC7F,OAAO;AACLC,IAAAA,IAAI,EAAE,8BAA8B;AACpC;AACA;AACAC,IAAAA,OAAO,EAAE,MAAe;AAAE;AAC1BC,IAAAA,IAAI,EAAEC,4CAA0B,CAACL,aAAa,EAAEC,QAAQ,CAAA;GACzD,CAAA;AACH,CAAA;AAEA,SAASK,+BAA+BA,CACtCC,iBAA2B,EAC3BC,cAAuB,EACN;EACjB,OAAO;AACLN,IAAAA,IAAI,EAAE,4CAA4C;AAClDC,IAAAA,OAAO,EAAE,KAAc;AACvBC,IAAAA,IAAI,EAAEK,kDAAgC,CAACF,iBAAiB,EAAEC,cAAc,CAAA;GACzE,CAAA;AACH,CAAA;AAEA,SAASE,uBAAuBA,CAC9BC,MAAmD,EACnDC,MAAc,EACdC,gCAAkD,EACjC;EACjB,OAAO;AACLX,IAAAA,IAAI,EAAE,oCAAoC;AAC1CE,IAAAA,IAAI,EAAEU,gDAA8B,CAACH,MAAM,EAAEC,MAAM,EAAEC,gCAAgC,CAAA;GACtF,CAAA;AACH,CAAA;AAEA,SAASE,iCAAiCA,CACxCC,iBAAsC,EACrB;EACjB,OAAO;AACLd,IAAAA,IAAI,EAAE,8CAA8C;IACpDE,IAAI,EAAEa,yDAAuC,CAACD,iBAAiB,CAAA;GAChE,CAAA;AACH,CAAA;AAEA,SAASE,mBAAmBA,GAAuB;EACjD,IAAI;AAAA,IAAA,IAAAC,aAAA,CAAA;AACF;AACA;IACA,IAAMC,GAAG,GAAGC,yBAAa,CAACC,mMAAe,CAAC,CAAA;AAC1C,IAAA,IAAMlB,IAAI,GAAGgB,GAAG,CAAC,MAAM,CAAyB,CAAA;AAChD,IAAA,OAAA,CAAAD,aAAA,GAAOf,IAAI,CAACmB,OAAO,cAAAJ,aAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAZA,aAAA,CAAcK,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;GACnC,CAAC,OAAOC,GAAG,EAAE;AACZ;AAAA,GAAA;AAGF,EAAA,OAAOC,SAAS,CAAA;AAClB,CAAA;AAEA,IAAMC,cAAc,GAAGC,uCAAqB,CAAC;AAC3CC,EAAAA,eAAe,EAAE9B,mBAAmB;AACpC+B,EAAAA,2BAA2B,EAAExB,+BAA+B;AAC5DyB,EAAAA,mBAAmB,EAAErB,uBAAuB;AAC5CsB,EAAAA,6BAA6B,EAAEjB,iCAAiC;AAChEkB,EAAAA,sBAAsB,EAAEf,mBAAAA;AAC1B,CAAC,CAAC,CAAA;IAEWgB,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,OAAiB,EAAmB;AACnE,EAAA,IAAMC,MAAM,GAAGT,cAAc,CAACvB,IAAI,CAAC+B,OAAO,CAAC,CAAA;AAC3C;EACA,OAAOE,KAAK,CAACC,OAAO,CAACF,MAAM,CAAC,GAAGA,MAAM,GAAG,CAACA,MAAM,CAAC,CAAA;AAClD;;;;;;;;"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { sentryUnpluginFactory, createRollupInjectionHooks, createComponentNameAnnotateHooks, createRollupDebugIdUploadHooks, createRollupBundleSizeOptimizationHooks } from '@sentry/bundler-plugin-core';
|
|
2
2
|
export { sentryCliBinaryExists } from '@sentry/bundler-plugin-core';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
3
4
|
|
|
4
5
|
function viteInjectionPlugin(injectionCode, debugIds) {
|
|
5
6
|
return {
|
|
@@ -30,11 +31,25 @@ function viteBundleSizeOptimizationsPlugin(replacementValues) {
|
|
|
30
31
|
vite: createRollupBundleSizeOptimizationHooks(replacementValues)
|
|
31
32
|
};
|
|
32
33
|
}
|
|
34
|
+
function getViteMajorVersion() {
|
|
35
|
+
try {
|
|
36
|
+
var _vite$version;
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
38
|
+
// @ts-ignore - Rollup already transpiles this for us
|
|
39
|
+
var req = createRequire(import.meta.url);
|
|
40
|
+
var vite = req("vite");
|
|
41
|
+
return (_vite$version = vite.version) === null || _vite$version === void 0 ? void 0 : _vite$version.split(".")[0];
|
|
42
|
+
} catch (err) {
|
|
43
|
+
// do nothing, we'll just not report a version
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
33
47
|
var sentryUnplugin = sentryUnpluginFactory({
|
|
34
48
|
injectionPlugin: viteInjectionPlugin,
|
|
35
49
|
componentNameAnnotatePlugin: viteComponentNameAnnotatePlugin,
|
|
36
50
|
debugIdUploadPlugin: viteDebugIdUploadPlugin,
|
|
37
|
-
bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin
|
|
51
|
+
bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin,
|
|
52
|
+
getBundlerMajorVersion: getViteMajorVersion
|
|
38
53
|
});
|
|
39
54
|
var sentryVitePlugin = function sentryVitePlugin(options) {
|
|
40
55
|
var result = sentryUnplugin.vite(options);
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n CodeInjection,\n sentryUnpluginFactory,\n Options,\n createRollupInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n Logger,\n} from \"@sentry/bundler-plugin-core\";\nimport { UnpluginOptions, VitePlugin } from \"unplugin\";\n\nfunction viteInjectionPlugin(injectionCode: CodeInjection, debugIds: boolean): UnpluginOptions {\n return {\n name: \"sentry-vite-injection-plugin\",\n // run `post` to avoid tripping up @rollup/plugin-commonjs when cjs is used\n // as we inject an `import` statement\n enforce: \"post\" as const, // need this so that vite runs the resolveId hook\n vite: createRollupInjectionHooks(injectionCode, debugIds),\n };\n}\n\nfunction viteComponentNameAnnotatePlugin(\n ignoredComponents: string[],\n injectIntoHtml: boolean\n): UnpluginOptions {\n return {\n name: \"sentry-vite-component-name-annotate-plugin\",\n enforce: \"pre\" as const,\n vite: createComponentNameAnnotateHooks(ignoredComponents, injectIntoHtml),\n };\n}\n\nfunction viteDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>,\n logger: Logger,\n createDependencyOnBuildArtifacts: () => () => void\n): UnpluginOptions {\n return {\n name: \"sentry-vite-debug-id-upload-plugin\",\n vite: createRollupDebugIdUploadHooks(upload, logger, createDependencyOnBuildArtifacts),\n };\n}\n\nfunction viteBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-vite-bundle-size-optimizations-plugin\",\n vite: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n injectionPlugin: viteInjectionPlugin,\n componentNameAnnotatePlugin: viteComponentNameAnnotatePlugin,\n debugIdUploadPlugin: viteDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin,\n});\n\nexport const sentryVitePlugin = (options?: Options): VitePlugin[] => {\n const result = sentryUnplugin.vite(options);\n // unplugin returns a single plugin instead of an array when only one plugin is created, so we normalize this here.\n return Array.isArray(result) ? result : [result];\n};\n\nexport type { Options as SentryVitePluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["viteInjectionPlugin","injectionCode","debugIds","name","enforce","vite","createRollupInjectionHooks","viteComponentNameAnnotatePlugin","ignoredComponents","injectIntoHtml","createComponentNameAnnotateHooks","viteDebugIdUploadPlugin","upload","logger","createDependencyOnBuildArtifacts","createRollupDebugIdUploadHooks","viteBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","sentryUnplugin","sentryUnpluginFactory","injectionPlugin","componentNameAnnotatePlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","sentryVitePlugin","options","result","Array","isArray"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import {\n CodeInjection,\n sentryUnpluginFactory,\n Options,\n createRollupInjectionHooks,\n createRollupDebugIdUploadHooks,\n SentrySDKBuildFlags,\n createRollupBundleSizeOptimizationHooks,\n createComponentNameAnnotateHooks,\n Logger,\n} from \"@sentry/bundler-plugin-core\";\nimport { createRequire } from \"node:module\";\nimport { UnpluginOptions, VitePlugin } from \"unplugin\";\n\nfunction viteInjectionPlugin(injectionCode: CodeInjection, debugIds: boolean): UnpluginOptions {\n return {\n name: \"sentry-vite-injection-plugin\",\n // run `post` to avoid tripping up @rollup/plugin-commonjs when cjs is used\n // as we inject an `import` statement\n enforce: \"post\" as const, // need this so that vite runs the resolveId hook\n vite: createRollupInjectionHooks(injectionCode, debugIds),\n };\n}\n\nfunction viteComponentNameAnnotatePlugin(\n ignoredComponents: string[],\n injectIntoHtml: boolean\n): UnpluginOptions {\n return {\n name: \"sentry-vite-component-name-annotate-plugin\",\n enforce: \"pre\" as const,\n vite: createComponentNameAnnotateHooks(ignoredComponents, injectIntoHtml),\n };\n}\n\nfunction viteDebugIdUploadPlugin(\n upload: (buildArtifacts: string[]) => Promise<void>,\n logger: Logger,\n createDependencyOnBuildArtifacts: () => () => void\n): UnpluginOptions {\n return {\n name: \"sentry-vite-debug-id-upload-plugin\",\n vite: createRollupDebugIdUploadHooks(upload, logger, createDependencyOnBuildArtifacts),\n };\n}\n\nfunction viteBundleSizeOptimizationsPlugin(\n replacementValues: SentrySDKBuildFlags\n): UnpluginOptions {\n return {\n name: \"sentry-vite-bundle-size-optimizations-plugin\",\n vite: createRollupBundleSizeOptimizationHooks(replacementValues),\n };\n}\n\nfunction getViteMajorVersion(): string | undefined {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore - Rollup already transpiles this for us\n const req = createRequire(import.meta.url);\n const vite = req(\"vite\") as { version?: string };\n return vite.version?.split(\".\")[0];\n } catch (err) {\n // do nothing, we'll just not report a version\n }\n\n return undefined;\n}\n\nconst sentryUnplugin = sentryUnpluginFactory({\n injectionPlugin: viteInjectionPlugin,\n componentNameAnnotatePlugin: viteComponentNameAnnotatePlugin,\n debugIdUploadPlugin: viteDebugIdUploadPlugin,\n bundleSizeOptimizationsPlugin: viteBundleSizeOptimizationsPlugin,\n getBundlerMajorVersion: getViteMajorVersion,\n});\n\nexport const sentryVitePlugin = (options?: Options): VitePlugin[] => {\n const result = sentryUnplugin.vite(options);\n // unplugin returns a single plugin instead of an array when only one plugin is created, so we normalize this here.\n return Array.isArray(result) ? result : [result];\n};\n\nexport type { Options as SentryVitePluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"names":["viteInjectionPlugin","injectionCode","debugIds","name","enforce","vite","createRollupInjectionHooks","viteComponentNameAnnotatePlugin","ignoredComponents","injectIntoHtml","createComponentNameAnnotateHooks","viteDebugIdUploadPlugin","upload","logger","createDependencyOnBuildArtifacts","createRollupDebugIdUploadHooks","viteBundleSizeOptimizationsPlugin","replacementValues","createRollupBundleSizeOptimizationHooks","getViteMajorVersion","_vite$version","req","createRequire","import","meta","url","version","split","err","undefined","sentryUnplugin","sentryUnpluginFactory","injectionPlugin","componentNameAnnotatePlugin","debugIdUploadPlugin","bundleSizeOptimizationsPlugin","getBundlerMajorVersion","sentryVitePlugin","options","result","Array","isArray"],"mappings":";;;;AAcA,SAASA,mBAAmBA,CAACC,aAA4B,EAAEC,QAAiB,EAAmB;EAC7F,OAAO;AACLC,IAAAA,IAAI,EAAE,8BAA8B;AACpC;AACA;AACAC,IAAAA,OAAO,EAAE,MAAe;AAAE;AAC1BC,IAAAA,IAAI,EAAEC,0BAA0B,CAACL,aAAa,EAAEC,QAAQ,CAAA;GACzD,CAAA;AACH,CAAA;AAEA,SAASK,+BAA+BA,CACtCC,iBAA2B,EAC3BC,cAAuB,EACN;EACjB,OAAO;AACLN,IAAAA,IAAI,EAAE,4CAA4C;AAClDC,IAAAA,OAAO,EAAE,KAAc;AACvBC,IAAAA,IAAI,EAAEK,gCAAgC,CAACF,iBAAiB,EAAEC,cAAc,CAAA;GACzE,CAAA;AACH,CAAA;AAEA,SAASE,uBAAuBA,CAC9BC,MAAmD,EACnDC,MAAc,EACdC,gCAAkD,EACjC;EACjB,OAAO;AACLX,IAAAA,IAAI,EAAE,oCAAoC;AAC1CE,IAAAA,IAAI,EAAEU,8BAA8B,CAACH,MAAM,EAAEC,MAAM,EAAEC,gCAAgC,CAAA;GACtF,CAAA;AACH,CAAA;AAEA,SAASE,iCAAiCA,CACxCC,iBAAsC,EACrB;EACjB,OAAO;AACLd,IAAAA,IAAI,EAAE,8CAA8C;IACpDE,IAAI,EAAEa,uCAAuC,CAACD,iBAAiB,CAAA;GAChE,CAAA;AACH,CAAA;AAEA,SAASE,mBAAmBA,GAAuB;EACjD,IAAI;AAAA,IAAA,IAAAC,aAAA,CAAA;AACF;AACA;IACA,IAAMC,GAAG,GAAGC,aAAa,CAACC,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC,CAAA;AAC1C,IAAA,IAAMpB,IAAI,GAAGgB,GAAG,CAAC,MAAM,CAAyB,CAAA;AAChD,IAAA,OAAA,CAAAD,aAAA,GAAOf,IAAI,CAACqB,OAAO,cAAAN,aAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAZA,aAAA,CAAcO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;GACnC,CAAC,OAAOC,GAAG,EAAE;AACZ;AAAA,GAAA;AAGF,EAAA,OAAOC,SAAS,CAAA;AAClB,CAAA;AAEA,IAAMC,cAAc,GAAGC,qBAAqB,CAAC;AAC3CC,EAAAA,eAAe,EAAEhC,mBAAmB;AACpCiC,EAAAA,2BAA2B,EAAE1B,+BAA+B;AAC5D2B,EAAAA,mBAAmB,EAAEvB,uBAAuB;AAC5CwB,EAAAA,6BAA6B,EAAEnB,iCAAiC;AAChEoB,EAAAA,sBAAsB,EAAEjB,mBAAAA;AAC1B,CAAC,CAAC,CAAA;IAEWkB,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,OAAiB,EAAmB;AACnE,EAAA,IAAMC,MAAM,GAAGT,cAAc,CAACzB,IAAI,CAACiC,OAAO,CAAC,CAAA;AAC3C;EACA,OAAOE,KAAK,CAACC,OAAO,CAACF,MAAM,CAAC,GAAGA,MAAM,GAAG,CAACA,MAAM,CAAC,CAAA;AAClD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/vite-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "Official Sentry Vite 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/vite-plugin",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prepack": "ts-node ./src/prepack.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sentry/bundler-plugin-core": "4.
|
|
51
|
+
"@sentry/bundler-plugin-core": "4.9.1",
|
|
52
52
|
"unplugin": "1.0.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@babel/preset-typescript": "7.17.12",
|
|
58
58
|
"@rollup/plugin-babel": "5.3.1",
|
|
59
59
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
60
|
-
"@sentry-internal/eslint-config": "4.
|
|
61
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "4.
|
|
60
|
+
"@sentry-internal/eslint-config": "4.9.1",
|
|
61
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "4.9.1",
|
|
62
62
|
"@swc/core": "^1.2.205",
|
|
63
63
|
"@swc/jest": "^0.2.21",
|
|
64
64
|
"@types/jest": "^28.1.3",
|