@samitouri / QOS-React / commits / c8c89fab5b

[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

lauren committed Jan 2, 2025 at 11:24 UTC c8c89fab5beaa481d132318437b2651ec89440c3
6 files changed +38 -47
compiler/package.json
+3 -3
@@ -26,11 +26,11 @@
26 "react-is": "0.0.0-experimental-4beb1fd8-20241118"
27 },
28 "devDependencies": {
29 - "@rollup/plugin-commonjs": "^25.0.7",
29 + "@rollup/plugin-commonjs": "^28.0.2",
30 "@rollup/plugin-json": "^6.1.0",
31 - "@rollup/plugin-node-resolve": "^15.2.3",
31 + "@rollup/plugin-node-resolve": "^16.0.0",
32 "@rollup/plugin-terser": "^0.4.4",
33 - "@rollup/plugin-typescript": "^11.1.6",
33 + "@rollup/plugin-typescript": "^12.1.2",
34 "@tsconfig/strictest": "^2.0.5",
35 "concurrently": "^7.4.0",
36 "folder-hash": "^4.0.4",
compiler/packages/babel-plugin-react-compiler/rollup.config.js
+1
@@ -24,6 +24,7 @@ const DEV_ROLLUP_CONFIG = {
24 format: 'cjs',
25 sourcemap: false,
26 exports: 'named',
27 + inlineDynamicImports: true,
28 },
29 plugins: [
30 typescript({
compiler/packages/eslint-plugin-react-compiler/rollup.config.js
+1
@@ -29,6 +29,7 @@ const DEV_ROLLUP_CONFIG = {
29 file: 'dist/index.js',
30 format: 'cjs',
31 sourcemap: false,
32 + inlineDynamicImports: true,
33 },
34 treeshake: {
35 moduleSideEffects: false,
compiler/packages/react-compiler-healthcheck/rollup.config.js
+1
@@ -33,6 +33,7 @@ const DEV_ROLLUP_CONFIG = {
33 format: 'cjs',
34 sourcemap: false,
35 exports: 'named',
36 + inlineDynamicImports: true,
37 },
38 plugins: [
39 typescript({
compiler/packages/react-compiler-runtime/rollup.config.js
+1
@@ -21,6 +21,7 @@ const PROD_ROLLUP_CONFIG = {
21 file: 'dist/index.js',
22 format: 'cjs',
23 sourcemap: true,
24 + inlineDynamicImports: true,
25 },
26 plugins: [
27 typescript({
compiler/yarn.lock
+31 -44
@@ -2512,17 +2512,18 @@
2512 resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
2513 integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
2514
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==
2519 dependencies:
2520 "@rollup/pluginutils" "^5.0.1"
2521 commondir "^1.0.1"
2522 estree-walker "^2.0.2"
2523 - glob "^8.0.3"
2523 + fdir "^6.2.0"
2524 is-reference "1.2.1"
2525 magic-string "^0.30.3"
2526 + picomatch "^4.0.2"
2527
2528 "@rollup/plugin-json@^6.1.0":
2529 version "6.1.0"
@@ -2531,15 +2532,14 @@
2532 dependencies:
2533 "@rollup/pluginutils" "^5.1.0"
2534
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==
2539 dependencies:
2540 "@rollup/pluginutils" "^5.0.1"
2541 "@types/resolve" "1.20.2"
2542 deepmerge "^4.2.2"
2542 - is-builtin-module "^3.2.1"
2543 is-module "^1.0.0"
2544 resolve "^1.22.1"
2545
@@ -2552,10 +2552,10 @@
2552 smob "^1.0.0"
2553 terser "^5.17.4"
2554
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==
2559 dependencies:
2560 "@rollup/pluginutils" "^5.1.0"
2561 resolve "^1.22.1"
@@ -3621,11 +3621,6 @@ buffer@^5.5.0:
3621 base64-js "^1.3.1"
3622 ieee754 "^1.1.13"
3623
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 -
3624 call-bind@^1.0.2:
3625 version "1.0.2"
3626 resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
@@ -4408,6 +4403,11 @@ fbt@^1.0.2:
4403 dependencies:
4404 invariant "^2.2.4"
4405
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 +
4411 file-entry-cache@^6.0.1:
4412 version "6.0.1"
4413 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:
4592 once "^1.3.0"
4593 path-is-absolute "^1.0.0"
4594
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 -
4595 globals@^11.1.0:
4596 version "11.12.0"
4597 resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
@@ -4804,13 +4793,6 @@ is-arrayish@^0.2.1:
4793 resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
4794 integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
4795
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 -
4796 is-core-module@^2.11.0:
4797 version "2.12.1"
4798 resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd"
@@ -6429,13 +6411,6 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
6411 dependencies:
6412 brace-expansion "^1.1.7"
6413
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 -
6414 minimatch@^9.0.4:
6415 version "9.0.5"
6416 resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
@@ -6443,6 +6418,13 @@ minimatch@^9.0.4:
6418 dependencies:
6419 brace-expansion "^2.0.1"
6420
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 +
6428 minimist@^1.2.8:
6429 version "1.2.8"
6430 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:
6706 resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
6707 integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
6708
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 +
6714 pify@^4.0.1:
6715 version "4.0.1"
6716 resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"