mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
* test: add playwright tests for slim bundle + extension bundles (#3313) Regression tests that load the actual built module.slim.js and extension-bundles.js in a browser and exercise every extension bundle. * fix: share terser nameCache across entries for consistent property mangling Without a shared nameCache, terser independently mangles _-prefixed properties to different short names in each rollup entry, causing runtime crashes when module.slim.js and extension-bundles.js are combined. Top-level variable names (vars) are reset per-entry since each ES module has its own scope. Fixes #3313 * test: post-build check for cross-bundle mangling consistency Parses source maps after every build to verify that all shared _-prefixed properties were mangled to the same short names. Fails the build with exact diagnostics if they diverge. * chore: add changeset * review: parameterise duplicate init tests, stricter mismatch check