Minimal reproduction for a tree-shaking regression introduced in rollup 4.63.0.
npm install # package.json pins rollup 4.63.0 via overrides
npx vite build
node dist/index.jsWith "overrides": {"rollup": "4.63.0"} (as committed): the awaited
lastValueFrom(...) promise never settles — node prints
"Warning: Detected unsettled top-level await" and exits with code 13.
Change the override to "rollup": "4.62.5", reinstall, rebuild: prints
RESULT: 2 and exits 0.
Diffing the sourcemap sources between the two builds, 4.63.0 removes these
side-effectful rxjs-internal modules that 4.62.5 keeps:
rxjs/dist/cjs/internal/util/errorContext.jsrxjs/dist/cjs/internal/NotificationFactories.jsrxjs/dist/cjs/internal/scheduler/timeoutProvider.js
Reproduces with build.minify: false as well, so esbuild minification is not
involved. rxjs is consumed through @rollup/plugin-commonjs (the cjsExports
wrapper) via vite's default pipeline.