Skip to content

Commit 7bf602c

Browse files
lforstmydea
authored andcommitted
ref!: Don't polyfill optional chaining and nullish coalescing (#14603)
1 parent 2a549bc commit 7bf602c

File tree

41 files changed

+0
-1073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+0
-1073
lines changed

dev-packages/rollup-utils/npmHelpers.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { defineConfig } from 'rollup';
1515
import {
1616
makeCleanupPlugin,
1717
makeDebugBuildStatementReplacePlugin,
18-
makeExtractPolyfillsPlugin,
1918
makeImportMetaUrlReplacePlugin,
2019
makeNodeResolvePlugin,
2120
makeRrwebBuildPlugin,
@@ -44,7 +43,6 @@ export function makeBaseNPMConfig(options = {}) {
4443
const debugBuildStatementReplacePlugin = makeDebugBuildStatementReplacePlugin();
4544
const importMetaUrlReplacePlugin = makeImportMetaUrlReplacePlugin();
4645
const cleanupPlugin = makeCleanupPlugin();
47-
const extractPolyfillsPlugin = makeExtractPolyfillsPlugin();
4846
const rrwebBuildPlugin = makeRrwebBuildPlugin({
4947
excludeShadowDom: undefined,
5048
excludeIframe: undefined,
@@ -121,10 +119,6 @@ export function makeBaseNPMConfig(options = {}) {
121119
],
122120
};
123121

124-
if (addPolyfills) {
125-
defaultBaseConfig.plugins.push(extractPolyfillsPlugin);
126-
}
127-
128122
return deepMerge(defaultBaseConfig, packageSpecificConfig, {
129123
// Plugins have to be in the correct order or everything breaks, so when merging we have to manually re-order them
130124
customMerge: key => (key === 'plugins' ? mergePlugins : undefined),

dev-packages/rollup-utils/plugins/extractPolyfillsPlugin.mjs

Lines changed: 0 additions & 214 deletions
This file was deleted.

dev-packages/rollup-utils/plugins/npmPlugins.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,3 @@ export function makeCodeCovPlugin() {
173173
uploadToken: process.env.CODECOV_TOKEN,
174174
});
175175
}
176-
177-
export { makeExtractPolyfillsPlugin } from './extractPolyfillsPlugin.mjs';

dev-packages/test-utils/.eslintrc.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,4 @@ module.exports = {
33
node: true,
44
},
55
extends: ['../../.eslintrc.js'],
6-
overrides: [
7-
{
8-
files: ['**/*.ts'],
9-
rules: {
10-
'@sentry-internal/sdk/no-optional-chaining': 'off',
11-
},
12-
},
13-
],
146
};

packages/astro/.eslintrc.cjs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,5 @@ module.exports = {
1111
project: ['tsconfig.test.json'],
1212
},
1313
},
14-
{
15-
files: ['src/integration/**', 'src/server/**'],
16-
rules: {
17-
'@sentry-internal/sdk/no-optional-chaining': 'off',
18-
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
19-
},
20-
},
2114
],
2215
};

packages/aws-serverless/.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ module.exports = {
33
node: true,
44
},
55
extends: ['../../.eslintrc.js'],
6-
rules: {
7-
'@sentry-internal/sdk/no-optional-chaining': 'off',
8-
},
96
overrides: [
107
{
118
files: ['scripts/**/*.ts'],

packages/bun/.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module.exports = {
44
},
55
extends: ['../../.eslintrc.js'],
66
rules: {
7-
'@sentry-internal/sdk/no-optional-chaining': 'off',
8-
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
97
'@sentry-internal/sdk/no-class-field-initializers': 'off',
108
},
119
};

packages/cloudflare/.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module.exports = {
44
},
55
extends: ['../../.eslintrc.js'],
66
rules: {
7-
'@sentry-internal/sdk/no-optional-chaining': 'off',
8-
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
97
'@sentry-internal/sdk/no-class-field-initializers': 'off',
108
},
119
};

packages/core/src/utils-hoist/buildPolyfills/README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/core/src/utils-hoist/buildPolyfills/_asyncNullishCoalesce.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)