Skip to content

Commit

Permalink
ref!: Don't polyfill optional chaining and nullish coalescing (#14603)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Dec 13, 2024
1 parent 8b81476 commit 1c9544b
Show file tree
Hide file tree
Showing 41 changed files with 0 additions and 1,073 deletions.
6 changes: 0 additions & 6 deletions dev-packages/rollup-utils/npmHelpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { defineConfig } from 'rollup';
import {
makeCleanupPlugin,
makeDebugBuildStatementReplacePlugin,
makeExtractPolyfillsPlugin,
makeImportMetaUrlReplacePlugin,
makeNodeResolvePlugin,
makeRrwebBuildPlugin,
Expand Down Expand Up @@ -44,7 +43,6 @@ export function makeBaseNPMConfig(options = {}) {
const debugBuildStatementReplacePlugin = makeDebugBuildStatementReplacePlugin();
const importMetaUrlReplacePlugin = makeImportMetaUrlReplacePlugin();
const cleanupPlugin = makeCleanupPlugin();
const extractPolyfillsPlugin = makeExtractPolyfillsPlugin();
const rrwebBuildPlugin = makeRrwebBuildPlugin({
excludeShadowDom: undefined,
excludeIframe: undefined,
Expand Down Expand Up @@ -121,10 +119,6 @@ export function makeBaseNPMConfig(options = {}) {
],
};

if (addPolyfills) {
defaultBaseConfig.plugins.push(extractPolyfillsPlugin);
}

return deepMerge(defaultBaseConfig, packageSpecificConfig, {
// Plugins have to be in the correct order or everything breaks, so when merging we have to manually re-order them
customMerge: key => (key === 'plugins' ? mergePlugins : undefined),
Expand Down
214 changes: 0 additions & 214 deletions dev-packages/rollup-utils/plugins/extractPolyfillsPlugin.mjs

This file was deleted.

2 changes: 0 additions & 2 deletions dev-packages/rollup-utils/plugins/npmPlugins.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,3 @@ export function makeCodeCovPlugin() {
uploadToken: process.env.CODECOV_TOKEN,
});
}

export { makeExtractPolyfillsPlugin } from './extractPolyfillsPlugin.mjs';
8 changes: 0 additions & 8 deletions dev-packages/test-utils/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,4 @@ module.exports = {
node: true,
},
extends: ['../../.eslintrc.js'],
overrides: [
{
files: ['**/*.ts'],
rules: {
'@sentry-internal/sdk/no-optional-chaining': 'off',
},
},
],
};
7 changes: 0 additions & 7 deletions packages/astro/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,5 @@ module.exports = {
project: ['tsconfig.test.json'],
},
},
{
files: ['src/integration/**', 'src/server/**'],
rules: {
'@sentry-internal/sdk/no-optional-chaining': 'off',
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
},
},
],
};
3 changes: 0 additions & 3 deletions packages/aws-serverless/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ module.exports = {
node: true,
},
extends: ['../../.eslintrc.js'],
rules: {
'@sentry-internal/sdk/no-optional-chaining': 'off',
},
overrides: [
{
files: ['scripts/**/*.ts'],
Expand Down
2 changes: 0 additions & 2 deletions packages/bun/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module.exports = {
},
extends: ['../../.eslintrc.js'],
rules: {
'@sentry-internal/sdk/no-optional-chaining': 'off',
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
'@sentry-internal/sdk/no-class-field-initializers': 'off',
},
};
2 changes: 0 additions & 2 deletions packages/cloudflare/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module.exports = {
},
extends: ['../../.eslintrc.js'],
rules: {
'@sentry-internal/sdk/no-optional-chaining': 'off',
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
'@sentry-internal/sdk/no-class-field-initializers': 'off',
},
};
30 changes: 0 additions & 30 deletions packages/core/src/utils-hoist/buildPolyfills/README.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1c9544b

Please sign in to comment.