File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 1
- const fse = require ( 'fs-extra' ) ;
2
-
3
- const { version : transformRuntimeVersion } = fse . readJSONSync (
4
- require . resolve ( '@babel/runtime-corejs2/package.json' ) ,
5
- ) ;
6
-
7
1
module . exports = {
8
2
assumptions : {
9
3
noDocumentAll : true ,
10
4
setSpreadProperties : true ,
11
5
} ,
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' ] ,
22
7
plugins : [ 'babel-plugin-optimize-clsx' ] ,
23
8
ignore : [ / @ b a b e l [ \\ | / ] r u n t i m e / ] , // Fix a Windows issue.
24
9
env : {
Original file line number Diff line number Diff line change 19
19
"dependencies" : {
20
20
"@babel/core" : " ^7.28.0" ,
21
21
"@babel/runtime" : " ^7.27.6" ,
22
- "@babel/runtime-corejs2" : " ^7.27.6" ,
23
22
"@docsearch/react" : " ^3.9.0" ,
24
23
"@emotion/cache" : " ^11.14.0" ,
25
24
"@emotion/react" : " ^11.14.0" ,
64
63
"clean-css" : " ^5.3.3" ,
65
64
"clipboard-copy" : " ^4.0.1" ,
66
65
"clsx" : " ^2.1.1" ,
67
- "core-js" : " ^2.6.11" ,
68
66
"cross-env" : " ^7.0.3" ,
69
67
"css-mediaquery" : " ^0.1.2" ,
70
68
"dayjs" : " ^1.11.13" ,
You can’t perform that action at this time.
0 commit comments