Skip to content

Commit c8c89fa

Browse files
authored
[compiler] Update rollup plugins (#31919)
Update our various compiler rollup plugins. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31919). * #31927 * #31918 * #31917 * #31916 * __->__ #31919
1 parent 62208be commit c8c89fa

File tree

6 files changed

+38
-47
lines changed

6 files changed

+38
-47
lines changed

compiler/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
"react-is": "0.0.0-experimental-4beb1fd8-20241118"
2727
},
2828
"devDependencies": {
29-
"@rollup/plugin-commonjs": "^25.0.7",
29+
"@rollup/plugin-commonjs": "^28.0.2",
3030
"@rollup/plugin-json": "^6.1.0",
31-
"@rollup/plugin-node-resolve": "^15.2.3",
31+
"@rollup/plugin-node-resolve": "^16.0.0",
3232
"@rollup/plugin-terser": "^0.4.4",
33-
"@rollup/plugin-typescript": "^11.1.6",
33+
"@rollup/plugin-typescript": "^12.1.2",
3434
"@tsconfig/strictest": "^2.0.5",
3535
"concurrently": "^7.4.0",
3636
"folder-hash": "^4.0.4",

compiler/packages/babel-plugin-react-compiler/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const DEV_ROLLUP_CONFIG = {
2424
format: 'cjs',
2525
sourcemap: false,
2626
exports: 'named',
27+
inlineDynamicImports: true,
2728
},
2829
plugins: [
2930
typescript({

compiler/packages/eslint-plugin-react-compiler/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const DEV_ROLLUP_CONFIG = {
2929
file: 'dist/index.js',
3030
format: 'cjs',
3131
sourcemap: false,
32+
inlineDynamicImports: true,
3233
},
3334
treeshake: {
3435
moduleSideEffects: false,

compiler/packages/react-compiler-healthcheck/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const DEV_ROLLUP_CONFIG = {
3333
format: 'cjs',
3434
sourcemap: false,
3535
exports: 'named',
36+
inlineDynamicImports: true,
3637
},
3738
plugins: [
3839
typescript({

compiler/packages/react-compiler-runtime/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const PROD_ROLLUP_CONFIG = {
2121
file: 'dist/index.js',
2222
format: 'cjs',
2323
sourcemap: true,
24+
inlineDynamicImports: true,
2425
},
2526
plugins: [
2627
typescript({

compiler/yarn.lock

Lines changed: 31 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,17 +2512,18 @@
25122512
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
25132513
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
25142514

2515-
"@rollup/plugin-commonjs@^25.0.7":
2516-
version "25.0.7"
2517-
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-25.0.7.tgz#145cec7589ad952171aeb6a585bbeabd0fd3b4cf"
2518-
integrity sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==
2515+
"@rollup/plugin-commonjs@^28.0.2":
2516+
version "28.0.2"
2517+
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.2.tgz#193d7a86470f112b56927c1d821ee45951a819ea"
2518+
integrity sha512-BEFI2EDqzl+vA1rl97IDRZ61AIwGH093d9nz8+dThxJNH8oSoB7MjWvPCX3dkaK1/RCJ/1v/R1XB15FuSs0fQw==
25192519
dependencies:
25202520
"@rollup/pluginutils" "^5.0.1"
25212521
commondir "^1.0.1"
25222522
estree-walker "^2.0.2"
2523-
glob "^8.0.3"
2523+
fdir "^6.2.0"
25242524
is-reference "1.2.1"
25252525
magic-string "^0.30.3"
2526+
picomatch "^4.0.2"
25262527

25272528
"@rollup/plugin-json@^6.1.0":
25282529
version "6.1.0"
@@ -2531,15 +2532,14 @@
25312532
dependencies:
25322533
"@rollup/pluginutils" "^5.1.0"
25332534

2534-
"@rollup/plugin-node-resolve@^15.2.3":
2535-
version "15.2.3"
2536-
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9"
2537-
integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==
2535+
"@rollup/plugin-node-resolve@^16.0.0":
2536+
version "16.0.0"
2537+
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.0.tgz#b1a0594661f40d7b061d82136e847354ff85f211"
2538+
integrity sha512-0FPvAeVUT/zdWoO0jnb/V5BlBsUSNfkIOtFHzMO4H9MOklrmQFY6FduVHKucNb/aTFxvnGhj4MNj/T1oNdDfNg==
25382539
dependencies:
25392540
"@rollup/pluginutils" "^5.0.1"
25402541
"@types/resolve" "1.20.2"
25412542
deepmerge "^4.2.2"
2542-
is-builtin-module "^3.2.1"
25432543
is-module "^1.0.0"
25442544
resolve "^1.22.1"
25452545

@@ -2552,10 +2552,10 @@
25522552
smob "^1.0.0"
25532553
terser "^5.17.4"
25542554

2555-
"@rollup/plugin-typescript@^11.1.6":
2556-
version "11.1.6"
2557-
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz#724237d5ec12609ec01429f619d2a3e7d4d1b22b"
2558-
integrity sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==
2555+
"@rollup/plugin-typescript@^12.1.2":
2556+
version "12.1.2"
2557+
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-12.1.2.tgz#ebaeec2e7376faa889030ccd7cb485a649e63118"
2558+
integrity sha512-cdtSp154H5sv637uMr1a8OTWB0L1SWDSm1rDGiyfcGcvQ6cuTs4MDk2BVEBGysUWago4OJN4EQZqOTl/QY3Jgg==
25592559
dependencies:
25602560
"@rollup/pluginutils" "^5.1.0"
25612561
resolve "^1.22.1"
@@ -3621,11 +3621,6 @@ buffer@^5.5.0:
36213621
base64-js "^1.3.1"
36223622
ieee754 "^1.1.13"
36233623

3624-
builtin-modules@^3.3.0:
3625-
version "3.3.0"
3626-
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
3627-
integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
3628-
36293624
call-bind@^1.0.2:
36303625
version "1.0.2"
36313626
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
@@ -4408,6 +4403,11 @@ fbt@^1.0.2:
44084403
dependencies:
44094404
invariant "^2.2.4"
44104405

4406+
fdir@^6.2.0:
4407+
version "6.4.2"
4408+
resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.2.tgz#ddaa7ce1831b161bc3657bb99cb36e1622702689"
4409+
integrity sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==
4410+
44114411
file-entry-cache@^6.0.1:
44124412
version "6.0.1"
44134413
resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027"
@@ -4592,17 +4592,6 @@ glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
45924592
once "^1.3.0"
45934593
path-is-absolute "^1.0.0"
45944594

4595-
glob@^8.0.3:
4596-
version "8.1.0"
4597-
resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
4598-
integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==
4599-
dependencies:
4600-
fs.realpath "^1.0.0"
4601-
inflight "^1.0.4"
4602-
inherits "2"
4603-
minimatch "^5.0.1"
4604-
once "^1.3.0"
4605-
46064595
globals@^11.1.0:
46074596
version "11.12.0"
46084597
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
@@ -4804,13 +4793,6 @@ is-arrayish@^0.2.1:
48044793
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
48054794
integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
48064795

4807-
is-builtin-module@^3.2.1:
4808-
version "3.2.1"
4809-
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169"
4810-
integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==
4811-
dependencies:
4812-
builtin-modules "^3.3.0"
4813-
48144796
is-core-module@^2.11.0:
48154797
version "2.12.1"
48164798
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd"
@@ -6429,20 +6411,20 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
64296411
dependencies:
64306412
brace-expansion "^1.1.7"
64316413

6432-
minimatch@^5.0.1, minimatch@~5.1.2:
6433-
version "5.1.6"
6434-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
6435-
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
6436-
dependencies:
6437-
brace-expansion "^2.0.1"
6438-
64396414
minimatch@^9.0.4:
64406415
version "9.0.5"
64416416
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
64426417
integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
64436418
dependencies:
64446419
brace-expansion "^2.0.1"
64456420

6421+
minimatch@~5.1.2:
6422+
version "5.1.6"
6423+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
6424+
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
6425+
dependencies:
6426+
brace-expansion "^2.0.1"
6427+
64466428
minimist@^1.2.8:
64476429
version "1.2.8"
64486430
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
@@ -6724,6 +6706,11 @@ picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1:
67246706
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
67256707
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
67266708

6709+
picomatch@^4.0.2:
6710+
version "4.0.2"
6711+
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab"
6712+
integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==
6713+
67276714
pify@^4.0.1:
67286715
version "4.0.1"
67296716
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"

0 commit comments

Comments
 (0)