Skip to content

Commit c505620

Browse files
committed
[compiler] Update rollup plugins
Update our various compiler rollup plugins.
1 parent 753264b commit c505620

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
@@ -2708,17 +2708,18 @@
27082708
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
27092709
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
27102710

2711-
"@rollup/plugin-commonjs@^25.0.7":
2712-
version "25.0.7"
2713-
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-25.0.7.tgz#145cec7589ad952171aeb6a585bbeabd0fd3b4cf"
2714-
integrity sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==
2711+
"@rollup/plugin-commonjs@^28.0.2":
2712+
version "28.0.2"
2713+
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.2.tgz#193d7a86470f112b56927c1d821ee45951a819ea"
2714+
integrity sha512-BEFI2EDqzl+vA1rl97IDRZ61AIwGH093d9nz8+dThxJNH8oSoB7MjWvPCX3dkaK1/RCJ/1v/R1XB15FuSs0fQw==
27152715
dependencies:
27162716
"@rollup/pluginutils" "^5.0.1"
27172717
commondir "^1.0.1"
27182718
estree-walker "^2.0.2"
2719-
glob "^8.0.3"
2719+
fdir "^6.2.0"
27202720
is-reference "1.2.1"
27212721
magic-string "^0.30.3"
2722+
picomatch "^4.0.2"
27222723

27232724
"@rollup/plugin-json@^6.1.0":
27242725
version "6.1.0"
@@ -2727,15 +2728,14 @@
27272728
dependencies:
27282729
"@rollup/pluginutils" "^5.1.0"
27292730

2730-
"@rollup/plugin-node-resolve@^15.2.3":
2731-
version "15.2.3"
2732-
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9"
2733-
integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==
2731+
"@rollup/plugin-node-resolve@^16.0.0":
2732+
version "16.0.0"
2733+
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.0.tgz#b1a0594661f40d7b061d82136e847354ff85f211"
2734+
integrity sha512-0FPvAeVUT/zdWoO0jnb/V5BlBsUSNfkIOtFHzMO4H9MOklrmQFY6FduVHKucNb/aTFxvnGhj4MNj/T1oNdDfNg==
27342735
dependencies:
27352736
"@rollup/pluginutils" "^5.0.1"
27362737
"@types/resolve" "1.20.2"
27372738
deepmerge "^4.2.2"
2738-
is-builtin-module "^3.2.1"
27392739
is-module "^1.0.0"
27402740
resolve "^1.22.1"
27412741

@@ -2748,10 +2748,10 @@
27482748
smob "^1.0.0"
27492749
terser "^5.17.4"
27502750

2751-
"@rollup/plugin-typescript@^11.1.6":
2752-
version "11.1.6"
2753-
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz#724237d5ec12609ec01429f619d2a3e7d4d1b22b"
2754-
integrity sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==
2751+
"@rollup/plugin-typescript@^12.1.2":
2752+
version "12.1.2"
2753+
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-12.1.2.tgz#ebaeec2e7376faa889030ccd7cb485a649e63118"
2754+
integrity sha512-cdtSp154H5sv637uMr1a8OTWB0L1SWDSm1rDGiyfcGcvQ6cuTs4MDk2BVEBGysUWago4OJN4EQZqOTl/QY3Jgg==
27552755
dependencies:
27562756
"@rollup/pluginutils" "^5.1.0"
27572757
resolve "^1.22.1"
@@ -3915,11 +3915,6 @@ buffer@^5.5.0:
39153915
base64-js "^1.3.1"
39163916
ieee754 "^1.1.13"
39173917

3918-
builtin-modules@^3.3.0:
3919-
version "3.3.0"
3920-
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
3921-
integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
3922-
39233918
call-bind@^1.0.2:
39243919
version "1.0.2"
39253920
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
@@ -4825,6 +4820,11 @@ fbt@^1.0.2:
48254820
dependencies:
48264821
invariant "^2.2.4"
48274822

4823+
fdir@^6.2.0:
4824+
version "6.4.2"
4825+
resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.2.tgz#ddaa7ce1831b161bc3657bb99cb36e1622702689"
4826+
integrity sha512-KnhMXsKSPZlAhp7+IjUkRZKPb4fUyccpDrdFXbi4QL1qkmFh9kVY09Yox+n4MaOb3lHZ1Tv829C3oaaXoMYPDQ==
4827+
48284828
file-entry-cache@^6.0.1:
48294829
version "6.0.1"
48304830
resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027"
@@ -5029,17 +5029,6 @@ glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
50295029
once "^1.3.0"
50305030
path-is-absolute "^1.0.0"
50315031

5032-
glob@^8.0.3:
5033-
version "8.1.0"
5034-
resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e"
5035-
integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==
5036-
dependencies:
5037-
fs.realpath "^1.0.0"
5038-
inflight "^1.0.4"
5039-
inherits "2"
5040-
minimatch "^5.0.1"
5041-
once "^1.3.0"
5042-
50435032
globals@^11.1.0:
50445033
version "11.12.0"
50455034
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
@@ -5246,13 +5235,6 @@ is-arrayish@^0.2.1:
52465235
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
52475236
integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
52485237

5249-
is-builtin-module@^3.2.1:
5250-
version "3.2.1"
5251-
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169"
5252-
integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==
5253-
dependencies:
5254-
builtin-modules "^3.3.0"
5255-
52565238
is-core-module@^2.11.0:
52575239
version "2.12.1"
52585240
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd"
@@ -6883,20 +6865,20 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
68836865
dependencies:
68846866
brace-expansion "^1.1.7"
68856867

6886-
minimatch@^5.0.1, minimatch@~5.1.2:
6887-
version "5.1.6"
6888-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
6889-
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
6890-
dependencies:
6891-
brace-expansion "^2.0.1"
6892-
68936868
minimatch@^9.0.4:
68946869
version "9.0.5"
68956870
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
68966871
integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
68976872
dependencies:
68986873
brace-expansion "^2.0.1"
68996874

6875+
minimatch@~5.1.2:
6876+
version "5.1.6"
6877+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
6878+
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
6879+
dependencies:
6880+
brace-expansion "^2.0.1"
6881+
69006882
minimist@^1.2.8:
69016883
version "1.2.8"
69026884
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
@@ -7178,6 +7160,11 @@ picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1:
71787160
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
71797161
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
71807162

7163+
picomatch@^4.0.2:
7164+
version "4.0.2"
7165+
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab"
7166+
integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==
7167+
71817168
pify@^4.0.1:
71827169
version "4.0.1"
71837170
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"

0 commit comments

Comments
 (0)