@sentry/vite-plugin 5.2.1 → 5.3.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.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +6 -3
- package/package.json +6 -6
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import { SentryRollupPluginOptions } from \"@sentry/rollup-plugin\";\nimport { _rollupPluginInternal } from \"@sentry/rollup-plugin\";\nimport { createRequire } from \"node:module\";\
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import type { SentryRollupPluginOptions } from \"@sentry/rollup-plugin\";\nimport { _rollupPluginInternal } from \"@sentry/rollup-plugin\";\nimport { createRequire } from \"node:module\";\n\ninterface SentryVitePlugin {\n name: string;\n enforce: \"pre\";\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\nexport const sentryVitePlugin = (options?: SentryRollupPluginOptions): SentryVitePlugin[] => {\n return [\n {\n enforce: \"pre\",\n ..._rollupPluginInternal(options, \"vite\", getViteMajorVersion()),\n },\n ];\n};\n\nexport type { Options as SentryVitePluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"mappings":";;;;;AASA,SAAS,sBAA0C;CACjD,IAAI;EAKF,QAAA,GAAA,YAAA,eAAA,QAAA,MAAA,CAAA,cAAA,WAAA,CAAA,KADgB,CAAC,OACN,CAAC,SAAS,MAAM,IAAI,CAAC;UACzB,KAAK;;AAOhB,MAAa,oBAAoB,YAA4D;CAC3F,OAAO,CACL;EACE,SAAS;EACT,IAAA,GAAA,sBAAA,uBAAyB,SAAS,QAAQ,qBAAqB,CAAC;EACjE,CACF"}
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import { SentryRollupPluginOptions } from \"@sentry/rollup-plugin\";\nimport { _rollupPluginInternal } from \"@sentry/rollup-plugin\";\nimport { createRequire } from \"node:module\";\
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import type { SentryRollupPluginOptions } from \"@sentry/rollup-plugin\";\nimport { _rollupPluginInternal } from \"@sentry/rollup-plugin\";\nimport { createRequire } from \"node:module\";\n\ninterface SentryVitePlugin {\n name: string;\n enforce: \"pre\";\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\nexport const sentryVitePlugin = (options?: SentryRollupPluginOptions): SentryVitePlugin[] => {\n return [\n {\n enforce: \"pre\",\n ..._rollupPluginInternal(options, \"vite\", getViteMajorVersion()),\n },\n ];\n};\n\nexport type { Options as SentryVitePluginOptions } from \"@sentry/bundler-plugin-core\";\nexport { sentryCliBinaryExists } from \"@sentry/bundler-plugin-core\";\n"],"mappings":";;;;AASA,SAAS,sBAA0C;CACjD,IAAI;EAKF,OAFY,cAAc,OAAO,KAAK,IACtB,CAAC,OACN,CAAC,SAAS,MAAM,IAAI,CAAC;UACzB,KAAK;;AAOhB,MAAa,oBAAoB,YAA4D;CAC3F,OAAO,CACL;EACE,SAAS;EACT,GAAG,sBAAsB,SAAS,QAAQ,qBAAqB,CAAC;EACjE,CACF"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { SentryRollupPluginOptions } from "@sentry/rollup-plugin";
|
|
2
|
+
interface SentryVitePlugin {
|
|
3
|
+
name: string;
|
|
4
|
+
enforce: "pre";
|
|
5
|
+
}
|
|
6
|
+
export declare const sentryVitePlugin: (options?: SentryRollupPluginOptions) => SentryVitePlugin[];
|
|
4
7
|
export type { Options as SentryVitePluginOptions } from "@sentry/bundler-plugin-core";
|
|
5
8
|
export { sentryCliBinaryExists } from "@sentry/bundler-plugin-core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/vite-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
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,17 +48,17 @@
|
|
|
48
48
|
"prepack": "ts-node ./src/prepack.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sentry/bundler-plugin-core": "5.
|
|
52
|
-
"@sentry/rollup-plugin": "5.
|
|
51
|
+
"@sentry/bundler-plugin-core": "5.3.0",
|
|
52
|
+
"@sentry/rollup-plugin": "5.3.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@sentry-internal/eslint-config": "5.
|
|
56
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "5.
|
|
55
|
+
"@sentry-internal/eslint-config": "5.3.0",
|
|
56
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "5.3.0",
|
|
57
57
|
"@types/node": "^18.6.3",
|
|
58
58
|
"eslint": "^8.18.0",
|
|
59
59
|
"vitest": "^4.0.0",
|
|
60
60
|
"premove": "^4.0.0",
|
|
61
|
-
"rolldown": "1.0.0
|
|
61
|
+
"rolldown": "^1.0.0",
|
|
62
62
|
"ts-node": "^10.9.1",
|
|
63
63
|
"typescript": "^4.7.4"
|
|
64
64
|
},
|