Skip to content

Commit b9498ca

Browse files
lforstmydea
authored andcommitted
ref!: Don't polyfill optional chaining and nullish coalescing
1 parent 7846b24 commit b9498ca

File tree

19 files changed

+0
-980
lines changed

19 files changed

+0
-980
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';

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)