Repro for rxjs/issues/3971 Run it yarn yarn build Results With "module": "commonjs" in tsconfig.json: bundle.js 79.6 KiB With "module": "es2015" in tsconfig.json: bundle.js 14.7 KiB