From 7e946ce9d6feb86019bed98d8f6baba181613bda Mon Sep 17 00:00:00 2001 From: Matt Jolly Date: Sat, 22 Aug 2026 14:29:36 +1000 Subject: [PATCH] cr152: revert to rollup wasm This commit reverts most of 0cea597366df8740da5cc046cde6de2468ba1e56, where the wasm version of rollup was replaced by a native node module which is a _collossal pain_ for those of us that can't just download random binaries from the internet. Signed-off-by: Matt Jolly --- a/third_party/devtools-frontend/src/front_end/third_party/codemirror.next/rebuild.sh +++ b/third_party/devtools-frontend/src/front_end/third_party/codemirror.next/rebuild.sh @@ -3,7 +3,7 @@ npm audit npm install ../../../node_modules/.bin/tsc -d -t esnext -m esnext --moduleResolution bundler --ignoreConfig bundle.ts -../../../node_modules/rollup/dist/bin/rollup -c +../../../node_modules/@rollup/wasm-node/dist/bin/rollup -c rm -rf node_modules bundle.js bundle.d.ts package-lock.json chunk/*.d.ts # Because there's a bug in clang causing it to reformat import lists even where formatting is disabled, run it right away git cl format --js --- a/third_party/devtools-frontend/src/front_end/third_party/lit/rebuild.sh +++ b/third_party/devtools-frontend/src/front_end/third_party/lit/rebuild.sh @@ -1,6 +1,6 @@ npm install ../../../node_modules/.bin/tsc --ignoreConfig -d -t esnext -m esnext --moduleResolution bundler src/* -../../../node_modules/rollup/dist/bin/rollup -c +../../../node_modules/@rollup/wasm-node/dist/bin/rollup -c rm -rf node_modules src/*.js src/*.d.ts # Because there's a bug in clang causing it to reformat import lists even where formatting is disabled, run it right away git cl format --js --- a/third_party/devtools-frontend/src/scripts/devtools_paths.py +++ b/third_party/devtools-frontend/src/scripts/devtools_paths.py @@ -66,7 +66,8 @@ def license_checker_path(): def rollup_path(): return path.join( node_modules_path(), - 'rollup', + '@rollup', + 'wasm-node', 'dist', 'bin', 'rollup', -- 2.55.0