Skip to content

Commit 051900c

Browse files
authored
ref(bundler-plugins): Remove Babel from React component annotation
1 parent c7d168f commit 051900c

25 files changed

Lines changed: 484 additions & 7330 deletions

‎dev-packages/bundler-plugin-integration-tests/fixtures/rollup3/build-info.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
88
"basic.js": "// eslint-disable-next-line no-console
9-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"build-information-injection-test"};e.SENTRY_BUILD_INFO={"deps":["@rollup/plugin-babel","@rollup/plugin-node-resolve","@sentry/bundler-plugins","react","rollup"],"depsVersions":{"react":19,"rollup":3},"nodeVersion":"NODE_VERSION"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000",e._sentryDebugIdIdentifier="sentry-dbid-00000000-0000-0000-0000-000000000000");}catch(e){}}();console.log("hello world");
9+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"build-information-injection-test"};e.SENTRY_BUILD_INFO={"deps":["@babel/preset-react","@rollup/plugin-babel","@rollup/plugin-node-resolve","@sentry/bundler-plugins","react","rollup"],"depsVersions":{"react":19,"rollup":3},"nodeVersion":"NODE_VERSION"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000",e._sentryDebugIdIdentifier="sentry-dbid-00000000-0000-0000-0000-000000000000");}catch(e){}}();console.log("hello world");
1010
",
1111
}
1212
`);

‎dev-packages/bundler-plugin-integration-tests/fixtures/rollup3/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"react": "19.2.4",
88
"rollup": "3.30.0",
99
"@rollup/plugin-babel": "6.0.4",
10+
"@babel/preset-react": "7.23.3",
1011
"@rollup/plugin-node-resolve": "15.2.3",
1112
"@sentry/bundler-plugins": "10.67.0"
1213
},

‎dev-packages/bundler-plugin-integration-tests/fixtures/rollup4/build-info.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
88
"basic.js": "// eslint-disable-next-line no-console
9-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"build-information-injection-test"};e.SENTRY_BUILD_INFO={"deps":["@rollup/plugin-babel","@rollup/plugin-node-resolve","@sentry/bundler-plugins","react","rollup"],"depsVersions":{"react":19,"rollup":4},"nodeVersion":"NODE_VERSION"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000",e._sentryDebugIdIdentifier="sentry-dbid-00000000-0000-0000-0000-000000000000");}catch(e){}}();console.log("hello world");
9+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"build-information-injection-test"};e.SENTRY_BUILD_INFO={"deps":["@babel/preset-react","@rollup/plugin-babel","@rollup/plugin-node-resolve","@sentry/bundler-plugins","react","rollup"],"depsVersions":{"react":19,"rollup":4},"nodeVersion":"NODE_VERSION"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="00000000-0000-0000-0000-000000000000",e._sentryDebugIdIdentifier="sentry-dbid-00000000-0000-0000-0000-000000000000");}catch(e){}}();console.log("hello world");
1010
",
1111
}
1212
`);

‎dev-packages/bundler-plugin-integration-tests/fixtures/rollup4/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"react": "19.2.4",
88
"rollup": "4.59.0",
99
"@rollup/plugin-babel": "6.0.4",
10+
"@babel/preset-react": "7.23.3",
1011
"@rollup/plugin-node-resolve": "16.0.3",
1112
"@sentry/bundler-plugins": "10.67.0"
1213
},

‎packages/bundler-plugins/package.json‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@
4444
"import": "./build/esm/core/index.js",
4545
"require": "./build/cjs/core/index.js"
4646
},
47-
"./babel-plugin": {
48-
"types": "./build/types/babel-plugin/index.d.ts",
49-
"import": "./build/esm/babel-plugin/index.js",
50-
"require": "./build/cjs/babel-plugin/index.js"
51-
},
5247
"./sentry-release-injection-file": {
5348
"import": "./sentry-release-injection-file.js",
5449
"require": "./sentry-release-injection-file.js"
@@ -105,7 +100,6 @@
105100
}
106101
},
107102
"dependencies": {
108-
"@babel/core": "^7.18.5",
109103
"@sentry/core": "10.67.0",
110104
"dotenv": "^17.4.2",
111105
"glob": "^13.0.6",
@@ -127,8 +121,6 @@
127121
}
128122
},
129123
"devDependencies": {
130-
"@babel/preset-react": "^7.23.3",
131-
"@types/babel__core": "^7.20.5",
132124
"@types/node": "^18.6.3",
133125
"premove": "^4.0.0",
134126
"rolldown": "^1.0.0",

‎packages/bundler-plugins/rollup.npm.config.mjs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default makeNPMConfigVariants(
99
'src/esbuild/index.ts',
1010
'src/webpack/index.ts',
1111
'src/webpack/component-annotation-transform.ts',
12-
'src/babel-plugin/index.ts',
1312
],
1413
packageSpecificConfig: {
1514
output: {

0 commit comments

Comments
 (0)