Skip to content

Commit 93c9748

Browse files
authored
[infra] Remove transform-runtime from next/babel (#46552)
1 parent d7f6a94 commit 93c9748

File tree

3 files changed

+1
-38
lines changed

3 files changed

+1
-38
lines changed

docs/babel.config.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
const fse = require('fs-extra');
2-
3-
const { version: transformRuntimeVersion } = fse.readJSONSync(
4-
require.resolve('@babel/runtime-corejs2/package.json'),
5-
);
6-
71
module.exports = {
82
assumptions: {
93
noDocumentAll: true,
104
setSpreadProperties: true,
115
},
12-
presets: [
13-
// backport of https://github.com/vercel/next.js/pull/9511
14-
[
15-
'next/babel',
16-
{
17-
'preset-react': { runtime: 'automatic' },
18-
'transform-runtime': { corejs: 2, version: transformRuntimeVersion },
19-
},
20-
],
21-
],
6+
presets: ['next/babel'],
227
plugins: ['babel-plugin-optimize-clsx'],
238
ignore: [/@babel[\\|/]runtime/], // Fix a Windows issue.
249
env: {

docs/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"dependencies": {
2020
"@babel/core": "^7.28.0",
2121
"@babel/runtime": "^7.27.6",
22-
"@babel/runtime-corejs2": "^7.27.6",
2322
"@docsearch/react": "^3.9.0",
2423
"@emotion/cache": "^11.14.0",
2524
"@emotion/react": "^11.14.0",
@@ -64,7 +63,6 @@
6463
"clean-css": "^5.3.3",
6564
"clipboard-copy": "^4.0.1",
6665
"clsx": "^2.1.1",
67-
"core-js": "^2.6.11",
6866
"cross-env": "^7.0.3",
6967
"css-mediaquery": "^0.1.2",
7068
"dayjs": "^1.11.13",

pnpm-lock.yaml

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)