From ad3758e12aff24b6d9009c0fe1c8ae8fcfbe0894 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Fri, 10 Jul 2026 11:00:04 +0100 Subject: [PATCH 1/2] chore: Remove obsolete packages --- .craft.yml | 2 - .oxfmtrc.json | 6 +- package.json | 2 - .../.gitignore | 2 - .../babel-plugin-component-annotate/LICENSE | 29 ------ .../babel-plugin-component-annotate/README.md | 95 ------------------- .../package.json | 64 ------------- .../rollup.config.mjs | 23 ----- .../src/index.ts | 4 - .../test/tsconfig.json | 8 -- .../tsconfig.json | 5 - .../types.tsconfig.json | 11 --- packages/bundler-plugin-core/.gitignore | 1 - packages/bundler-plugin-core/LICENSE | 29 ------ packages/bundler-plugin-core/README.md | 31 ------ packages/bundler-plugin-core/package.json | 69 -------------- .../bundler-plugin-core/rollup.config.mjs | 23 ----- .../sentry-esbuild-debugid-injection-file.js | 20 ---- .../sentry-release-injection-file.js | 4 - packages/bundler-plugin-core/src/index.ts | 1 - .../bundler-plugin-core/test/tsconfig.json | 8 -- packages/bundler-plugin-core/tsconfig.json | 5 - .../bundler-plugin-core/types.tsconfig.json | 11 --- .../fixtures/esbuild/package.json | 4 +- .../fixtures/rolldown/package.json | 4 +- .../fixtures/rollup3/package.json | 4 +- .../fixtures/rollup4/package.json | 4 +- .../fixtures/vite4/package.json | 4 +- .../fixtures/vite6/package.json | 4 +- .../fixtures/vite7/package.json | 4 +- .../fixtures/vite8/package.json | 4 +- .../fixtures/webpack5/package.json | 4 +- packages/playground/package.json | 1 - 33 files changed, 10 insertions(+), 480 deletions(-) delete mode 100644 packages/babel-plugin-component-annotate/.gitignore delete mode 100644 packages/babel-plugin-component-annotate/LICENSE delete mode 100644 packages/babel-plugin-component-annotate/README.md delete mode 100644 packages/babel-plugin-component-annotate/package.json delete mode 100644 packages/babel-plugin-component-annotate/rollup.config.mjs delete mode 100644 packages/babel-plugin-component-annotate/src/index.ts delete mode 100644 packages/babel-plugin-component-annotate/test/tsconfig.json delete mode 100644 packages/babel-plugin-component-annotate/tsconfig.json delete mode 100644 packages/babel-plugin-component-annotate/types.tsconfig.json delete mode 100644 packages/bundler-plugin-core/.gitignore delete mode 100644 packages/bundler-plugin-core/LICENSE delete mode 100644 packages/bundler-plugin-core/README.md delete mode 100644 packages/bundler-plugin-core/package.json delete mode 100644 packages/bundler-plugin-core/rollup.config.mjs delete mode 100644 packages/bundler-plugin-core/sentry-esbuild-debugid-injection-file.js delete mode 100644 packages/bundler-plugin-core/sentry-release-injection-file.js delete mode 100644 packages/bundler-plugin-core/src/index.ts delete mode 100644 packages/bundler-plugin-core/test/tsconfig.json delete mode 100644 packages/bundler-plugin-core/tsconfig.json delete mode 100644 packages/bundler-plugin-core/types.tsconfig.json diff --git a/.craft.yml b/.craft.yml index 2dc5fcee..7a6790a6 100644 --- a/.craft.yml +++ b/.craft.yml @@ -8,12 +8,10 @@ versioning: policy: auto preReleaseCommand: bash scripts/craft-pre-release.sh requireNames: - - /^sentry-bundler-plugin-core-.*\.tgz$/ - /^sentry-esbuild-plugin-.*\.tgz$/ - /^sentry-rollup-plugin-.*\.tgz$/ - /^sentry-vite-plugin-.*\.tgz$/ - /^sentry-webpack-plugin-.*\.tgz$/ - - /^sentry-babel-plugin-component-annotate-.*\.tgz$/ targets: - name: github includeNames: /^sentry-.*.tgz$/ diff --git a/.oxfmtrc.json b/.oxfmtrc.json index b34fe264..3a25cce1 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -3,9 +3,5 @@ "printWidth": 100, "experimentalSortPackageJson": false, "trailingComma": "es5", - "ignorePatterns": [ - "packages/bundler-plugin-core/test/fixtures", - "packages/bundler-plugins/test/core/fixtures", - ".nxcache" - ] + "ignorePatterns": [".nxcache"] } diff --git a/package.json b/package.json index d9bac504..4a51f270 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,6 @@ "homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins", "private": true, "workspaces": [ - "packages/babel-plugin-component-annotate", - "packages/bundler-plugin-core", "packages/dev-utils", "packages/esbuild-plugin", "packages/playground", diff --git a/packages/babel-plugin-component-annotate/.gitignore b/packages/babel-plugin-component-annotate/.gitignore deleted file mode 100644 index 36d3a9c3..00000000 --- a/packages/babel-plugin-component-annotate/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -dist -.DS_Store diff --git a/packages/babel-plugin-component-annotate/LICENSE b/packages/babel-plugin-component-annotate/LICENSE deleted file mode 100644 index 042360af..00000000 --- a/packages/babel-plugin-component-annotate/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -# MIT License - -Copyright (c) 2024, Sentry -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -- Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -- Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -- Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/babel-plugin-component-annotate/README.md b/packages/babel-plugin-component-annotate/README.md deleted file mode 100644 index 7783c758..00000000 --- a/packages/babel-plugin-component-annotate/README.md +++ /dev/null @@ -1,95 +0,0 @@ -

- - Sentry - -

- -# Sentry Babel Component Annotate Plugin - -[![npm version](https://img.shields.io/npm/v/@sentry/babel-plugin-component-annotate.svg)](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate) -[![npm dm](https://img.shields.io/npm/dm/@sentry/babel-plugin-component-annotate.svg)](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate) -[![npm dt](https://img.shields.io/npm/dt/@sentry/babel-plugin-component-annotate.svg)](https://www.npmjs.com/package/@babel-plugin-component-annotate) - -A Babel plugin that automatically annotates your output DOM with their respective frontend component names. -This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring. -Please note that your Sentry JavaScript SDK version must be at least `7.91.0` to take advantage of these features. -Currently, this plugin only works with React, and will exclusively parse `.jsx` and `.tsx` files. - -### Note - -This plugin comes included in Sentry's bundler plugins, alongside many other features to improve your Sentry workflow. -It can be downloaded individually, but it is recommended that you install the bundler plugins for your respective bundler, and enable this feature through the config object. - -Check out the supported bundler plugin packages for installation instructions: - -- [Rollup](https://www.npmjs.com/package/@sentry/rollup-plugin) -- [Vite](https://www.npmjs.com/package/@sentry/vite-plugin) -- [Webpack](https://www.npmjs.com/package/@sentry/webpack-plugin) -- esbuild: Not currently supported - -## Installation - -Using npm: - -```bash -npm install @sentry/babel-plugin-component-annotate --save-dev -``` - -Using yarn: - -```bash -yarn add @sentry/babel-plugin-component-annotate --dev -``` - -Using pnpm: - -```bash -pnpm add @sentry/babel-plugin-component-annotate --save-dev -``` - -## Options - -### `ignoredComponents` - -Type: `string[]` - -A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components. - -## Example - -```js -// babel.config.js - -{ - // ... other config above ... - - plugins: [ - // Put this plugin before any other plugins you have that transform JSX code - // The options are set by providing an object as the second element in the array, but not required - ['@sentry/babel-plugin-component-annotate', {ignoredComponents: ['Foo', 'Bar']}] - ], -} -``` - -Or alternatively, configure the plugin by directly importing it: - -```js -// babel.config.js - -import componentNameAnnotatePlugin from '@sentry/babel-plugin-component-annotate'; - -{ - // ... other config above ... - - plugins: [ - // Put this plugin before any other plugins you have that transform JSX code - [componentNameAnnotatePlugin] - ], -} -``` - -## More information - -- [Sentry Documentation](https://docs.sentry.io/quickstart/) -- [Sentry Discord](https://discord.gg/Ww9hbqr) -- [Sentry Stackoverflow](http://stackoverflow.com/questions/tagged/sentry) diff --git a/packages/babel-plugin-component-annotate/package.json b/packages/babel-plugin-component-annotate/package.json deleted file mode 100644 index da8a8304..00000000 --- a/packages/babel-plugin-component-annotate/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@sentry/babel-plugin-component-annotate", - "version": "5.3.0", - "description": "A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry", - "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git", - "homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-plugin-component-annotate", - "author": "Sentry", - "license": "MIT", - "keywords": [ - "Sentry", - "React", - "bundler", - "plugin", - "babel", - "component", - "annotate" - ], - "publishConfig": { - "access": "public" - }, - "files": [ - "dist" - ], - "exports": { - ".": { - "import": "./dist/esm/index.mjs", - "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" - } - }, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.mjs", - "types": "dist/types/index.d.ts", - "scripts": { - "build": "premove ./out && run-p build:rollup build:types && run-s build:npm", - "build:watch": "run-p build:rollup:watch build:types:watch", - "build:rollup": "rolldown --config rollup.config.mjs", - "build:rollup:watch": "rolldown --config rollup.config.mjs --watch --no-watch.clearScreen", - "build:types": "tsc --project types.tsconfig.json", - "build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput", - "build:npm": "npm pack", - "check:types": "run-p check:types:src check:types:test", - "check:types:src": "tsc --project ./tsconfig.json --noEmit", - "check:types:test": "tsc --project ./test/tsconfig.json --noEmit", - "clean": "run-s clean:build", - "clean:all": "run-p clean clean:deps", - "clean:build": "premove ./dist *.tgz", - "clean:deps": "premove node_modules" - }, - "dependencies": { - "@sentry/bundler-plugins": "^10.64.0" - }, - "devDependencies": { - "@types/node": "^18.6.3", - "premove": "^4.0.0", - "rolldown": "^1.0.0" - }, - "volta": { - "extends": "../../package.json" - }, - "engines": { - "node": ">= 18" - } -} diff --git a/packages/babel-plugin-component-annotate/rollup.config.mjs b/packages/babel-plugin-component-annotate/rollup.config.mjs deleted file mode 100644 index 4e04614e..00000000 --- a/packages/babel-plugin-component-annotate/rollup.config.mjs +++ /dev/null @@ -1,23 +0,0 @@ -import packageJson from "./package.json" with { type: "json" }; - -const deps = Object.keys(packageJson.dependencies ?? {}); - -export default { - platform: "node", - input: ["src/index.ts"], - external: (id) => deps.some((dep) => id === dep || id.startsWith(`${dep}/`)), - output: [ - { - file: packageJson.module, - format: "esm", - exports: "named", - sourcemap: true, - }, - { - file: packageJson.main, - format: "cjs", - exports: "named", - sourcemap: true, - }, - ], -}; diff --git a/packages/babel-plugin-component-annotate/src/index.ts b/packages/babel-plugin-component-annotate/src/index.ts deleted file mode 100644 index e3970985..00000000 --- a/packages/babel-plugin-component-annotate/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { - default, - experimentalComponentNameAnnotatePlugin, -} from "@sentry/bundler-plugins/babel-plugin"; diff --git a/packages/babel-plugin-component-annotate/test/tsconfig.json b/packages/babel-plugin-component-annotate/test/tsconfig.json deleted file mode 100644 index 76d0c9cf..00000000 --- a/packages/babel-plugin-component-annotate/test/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "../tsconfig.json", - "include": ["../src/**/*", "./**/*"], - "compilerOptions": { - "types": ["node"] - } -} diff --git a/packages/babel-plugin-component-annotate/tsconfig.json b/packages/babel-plugin-component-annotate/tsconfig.json deleted file mode 100644 index 2044e123..00000000 --- a/packages/babel-plugin-component-annotate/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "../../tsconfig.json", - "include": ["./src/**/*.ts", "./package.json"] -} diff --git a/packages/babel-plugin-component-annotate/types.tsconfig.json b/packages/babel-plugin-component-annotate/types.tsconfig.json deleted file mode 100644 index e427dd96..00000000 --- a/packages/babel-plugin-component-annotate/types.tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "./tsconfig.json", - "include": ["./src/**/*"], - "compilerOptions": { - "rootDir": "./src", - "declaration": true, - "emitDeclarationOnly": true, - "declarationDir": "./dist/types" - } -} diff --git a/packages/bundler-plugin-core/.gitignore b/packages/bundler-plugin-core/.gitignore deleted file mode 100644 index 1521c8b7..00000000 --- a/packages/bundler-plugin-core/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dist diff --git a/packages/bundler-plugin-core/LICENSE b/packages/bundler-plugin-core/LICENSE deleted file mode 100644 index 4acee9a3..00000000 --- a/packages/bundler-plugin-core/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -# MIT License - -Copyright (c) 2022, Sentry -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -- Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -- Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -- Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/bundler-plugin-core/README.md b/packages/bundler-plugin-core/README.md deleted file mode 100644 index 31222587..00000000 --- a/packages/bundler-plugin-core/README.md +++ /dev/null @@ -1,31 +0,0 @@ -

- - Sentry - -

- -# Sentry Bundler Plugin Core - -Core package containing the bundler-agnostic functionality used by the bundler plugins. - -Check out the individual packages for more information and examples: - -- [Rollup](https://www.npmjs.com/package/@sentry/rollup-plugin) -- [Vite](https://www.npmjs.com/package/@sentry/vite-plugin) -- [esbuild](https://www.npmjs.com/package/@sentry/esbuild-plugin) -- [Webpack](https://www.npmjs.com/package/@sentry/webpack-plugin) - -### Features - -The Sentry bundler plugin core package contains the following functionality: - -- Sourcemap upload -- Release creation in Sentry -- Automatic release name discovery (based on CI environment - Vercel, AWS, Heroku, CircleCI, or current Git SHA) -- Automatically associate errors with releases (Release injection) - -### More information - -- [Sentry Documentation](https://docs.sentry.io/quickstart/) -- [Sentry Discord](https://discord.gg/Ww9hbqr) -- [Sentry Stackoverflow](http://stackoverflow.com/questions/tagged/sentry) diff --git a/packages/bundler-plugin-core/package.json b/packages/bundler-plugin-core/package.json deleted file mode 100644 index 3810c9ef..00000000 --- a/packages/bundler-plugin-core/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "@sentry/bundler-plugin-core", - "version": "5.3.0", - "description": "Sentry Bundler Plugin Core", - "repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git", - "homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/bundler-plugin-core", - "author": "Sentry", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "files": [ - "dist", - "sentry-release-injection-file.js", - "sentry-esbuild-debugid-injection-file.js" - ], - "exports": { - ".": { - "import": "./dist/esm/index.mjs", - "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" - }, - "./sentry-release-injection-file": { - "import": "./sentry-release-injection-file.js", - "require": "./sentry-release-injection-file.js" - }, - "./sentry-esbuild-debugid-injection-file": { - "import": "./sentry-esbuild-debugid-injection-file.js", - "require": "./sentry-esbuild-debugid-injection-file.js" - } - }, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.mjs", - "types": "dist/types/index.d.ts", - "scripts": { - "build": "premove ./dist && run-p build:rollup build:types && run-s build:npm", - "build:watch": "run-p build:rollup:watch build:types:watch", - "build:rollup": "rolldown --config rollup.config.mjs", - "build:rollup:watch": "rolldown --config rollup.config.mjs --watch --no-watch.clearScreen", - "build:types": "tsc --project types.tsconfig.json", - "build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput", - "build:npm": "npm pack", - "check:types": "run-p check:types:src check:types:test", - "check:types:src": "tsc --project ./tsconfig.json --noEmit", - "check:types:test": "tsc --project ./test/tsconfig.json --noEmit", - "clean": "run-s clean:build", - "clean:all": "run-p clean clean:deps", - "clean:build": "premove ./dist *.tgz", - "clean:deps": "premove node_modules" - }, - "dependencies": { - "@sentry/bundler-plugins": "^10.64.0" - }, - "devDependencies": { - "@types/node": "^18.6.3", - "premove": "^4.0.0", - "rolldown": "^1.0.0" - }, - "volta": { - "extends": "../../package.json" - }, - "engines": { - "node": ">= 18" - }, - "sideEffects": [ - "./sentry-release-injection-file.js", - "./sentry-esbuild-debugid-injection-file.js" - ] -} diff --git a/packages/bundler-plugin-core/rollup.config.mjs b/packages/bundler-plugin-core/rollup.config.mjs deleted file mode 100644 index 4e04614e..00000000 --- a/packages/bundler-plugin-core/rollup.config.mjs +++ /dev/null @@ -1,23 +0,0 @@ -import packageJson from "./package.json" with { type: "json" }; - -const deps = Object.keys(packageJson.dependencies ?? {}); - -export default { - platform: "node", - input: ["src/index.ts"], - external: (id) => deps.some((dep) => id === dep || id.startsWith(`${dep}/`)), - output: [ - { - file: packageJson.module, - format: "esm", - exports: "named", - sourcemap: true, - }, - { - file: packageJson.main, - format: "cjs", - exports: "named", - sourcemap: true, - }, - ], -}; diff --git a/packages/bundler-plugin-core/sentry-esbuild-debugid-injection-file.js b/packages/bundler-plugin-core/sentry-esbuild-debugid-injection-file.js deleted file mode 100644 index 06ad5071..00000000 --- a/packages/bundler-plugin-core/sentry-esbuild-debugid-injection-file.js +++ /dev/null @@ -1,20 +0,0 @@ -try { - let globalObject = - "undefined" != typeof window - ? window - : "undefined" != typeof global - ? global - : "undefined" != typeof globalThis - ? global - : "undefined" != typeof self - ? self - : {}; - - let stack = new globalObject.Error().stack; - - if (stack) { - globalObject._sentryDebugIds = globalObject._sentryDebugIds || {}; - globalObject._sentryDebugIds[stack] = "__SENTRY_DEBUG_ID__"; - globalObject._sentryDebugIdIdentifier = "sentry-dbid-__SENTRY_DEBUG_ID__"; - } -} catch {} diff --git a/packages/bundler-plugin-core/sentry-release-injection-file.js b/packages/bundler-plugin-core/sentry-release-injection-file.js deleted file mode 100644 index 51de6958..00000000 --- a/packages/bundler-plugin-core/sentry-release-injection-file.js +++ /dev/null @@ -1,4 +0,0 @@ -// This const is used for nothing except to make this file identifiable via its content. -// We search for "_sentry_release_injection_file" in the plugin to determine for sure that the file we look at is the release injection file. - -// _sentry_release_injection_file diff --git a/packages/bundler-plugin-core/src/index.ts b/packages/bundler-plugin-core/src/index.ts deleted file mode 100644 index cec33da9..00000000 --- a/packages/bundler-plugin-core/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "@sentry/bundler-plugins/core"; diff --git a/packages/bundler-plugin-core/test/tsconfig.json b/packages/bundler-plugin-core/test/tsconfig.json deleted file mode 100644 index fd99592a..00000000 --- a/packages/bundler-plugin-core/test/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "../tsconfig.json", - "include": ["../src/**/*", "./*.ts", "./sentry/**/*"], - "compilerOptions": { - "types": ["node"] - } -} diff --git a/packages/bundler-plugin-core/tsconfig.json b/packages/bundler-plugin-core/tsconfig.json deleted file mode 100644 index 2044e123..00000000 --- a/packages/bundler-plugin-core/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "../../tsconfig.json", - "include": ["./src/**/*.ts", "./package.json"] -} diff --git a/packages/bundler-plugin-core/types.tsconfig.json b/packages/bundler-plugin-core/types.tsconfig.json deleted file mode 100644 index e427dd96..00000000 --- a/packages/bundler-plugin-core/types.tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "./tsconfig.json", - "include": ["./src/**/*"], - "compilerOptions": { - "rootDir": "./src", - "declaration": true, - "emitDeclarationOnly": true, - "declarationDir": "./dist/types" - } -} diff --git a/packages/integration-tests-next/fixtures/esbuild/package.json b/packages/integration-tests-next/fixtures/esbuild/package.json index ae9341e2..f9bd3932 100644 --- a/packages/integration-tests-next/fixtures/esbuild/package.json +++ b/packages/integration-tests-next/fixtures/esbuild/package.json @@ -9,9 +9,7 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", - "@sentry/esbuild-plugin": "file:../../../esbuild-plugin/sentry-esbuild-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/esbuild-plugin": "file:../../../esbuild-plugin/sentry-esbuild-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/rolldown/package.json b/packages/integration-tests-next/fixtures/rolldown/package.json index 1aec87ac..c7fcc70f 100644 --- a/packages/integration-tests-next/fixtures/rolldown/package.json +++ b/packages/integration-tests-next/fixtures/rolldown/package.json @@ -10,9 +10,7 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", - "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/rollup3/package.json b/packages/integration-tests-next/fixtures/rollup3/package.json index 53cd21e6..03c7ff78 100644 --- a/packages/integration-tests-next/fixtures/rollup3/package.json +++ b/packages/integration-tests-next/fixtures/rollup3/package.json @@ -12,9 +12,7 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", - "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/rollup4/package.json b/packages/integration-tests-next/fixtures/rollup4/package.json index 944d4479..28748166 100644 --- a/packages/integration-tests-next/fixtures/rollup4/package.json +++ b/packages/integration-tests-next/fixtures/rollup4/package.json @@ -12,9 +12,7 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", - "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/vite4/package.json b/packages/integration-tests-next/fixtures/vite4/package.json index 0a10b4e9..82a5413e 100644 --- a/packages/integration-tests-next/fixtures/vite4/package.json +++ b/packages/integration-tests-next/fixtures/vite4/package.json @@ -11,10 +11,8 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/vite6/package.json b/packages/integration-tests-next/fixtures/vite6/package.json index 038495ef..d6601a4e 100644 --- a/packages/integration-tests-next/fixtures/vite6/package.json +++ b/packages/integration-tests-next/fixtures/vite6/package.json @@ -9,10 +9,8 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/vite7/package.json b/packages/integration-tests-next/fixtures/vite7/package.json index 9a7ea880..77965a11 100644 --- a/packages/integration-tests-next/fixtures/vite7/package.json +++ b/packages/integration-tests-next/fixtures/vite7/package.json @@ -11,10 +11,8 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/vite8/package.json b/packages/integration-tests-next/fixtures/vite8/package.json index 6843a41a..9e5e8f4f 100644 --- a/packages/integration-tests-next/fixtures/vite8/package.json +++ b/packages/integration-tests-next/fixtures/vite8/package.json @@ -11,10 +11,8 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", "@sentry/rollup-plugin": "file:../../../rollup-plugin/sentry-rollup-plugin-5.3.0.tgz", - "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/vite-plugin": "file:../../../vite-plugin/sentry-vite-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/integration-tests-next/fixtures/webpack5/package.json b/packages/integration-tests-next/fixtures/webpack5/package.json index 7b433701..a9914393 100644 --- a/packages/integration-tests-next/fixtures/webpack5/package.json +++ b/packages/integration-tests-next/fixtures/webpack5/package.json @@ -12,9 +12,7 @@ }, "pnpm": { "overrides": { - "@sentry/bundler-plugin-core": "file:../../../bundler-plugin-core/sentry-bundler-plugin-core-5.3.0.tgz", - "@sentry/webpack-plugin": "file:../../../webpack-plugin/sentry-webpack-plugin-5.3.0.tgz", - "@sentry/babel-plugin-component-annotate": "file:../../../babel-plugin-component-annotate/sentry-babel-plugin-component-annotate-5.3.0.tgz" + "@sentry/webpack-plugin": "file:../../../webpack-plugin/sentry-webpack-plugin-5.3.0.tgz" }, "patchedDependencies": { "@sentry/cli": "../patches/@sentry__cli.patch" diff --git a/packages/playground/package.json b/packages/playground/package.json index 4e813370..d6cdc523 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -17,7 +17,6 @@ "start:proxyLogger": "node scripts/request-logger-proxy.mjs" }, "dependencies": { - "@sentry/bundler-plugin-core": "5.3.0", "@sentry/integrations": "7.50", "@sentry/node": "7.50", "@types/express": "^4.17.13", From f683b57b90786f6b398707b939b3f2a707d15953 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Fri, 10 Jul 2026 11:12:49 +0100 Subject: [PATCH 2/2] Fix test assertions --- .../fixtures/vite8/component-annotation.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/integration-tests-next/fixtures/vite8/component-annotation.test.ts b/packages/integration-tests-next/fixtures/vite8/component-annotation.test.ts index b6991cfc..388a4f11 100644 --- a/packages/integration-tests-next/fixtures/vite8/component-annotation.test.ts +++ b/packages/integration-tests-next/fixtures/vite8/component-annotation.test.ts @@ -39,13 +39,13 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => { "data-sentry-source-file": "app.jsx" }, void 0, false, { fileName: _jsxFileName, - lineNumber: 4, + lineNumber: 6, columnNumber: 7 }, this), ";"] }, void 0, true, { fileName: _jsxFileName, - lineNumber: 3, - columnNumber: 10 + lineNumber: 5, + columnNumber: 5 }, this); } console.log(App());