# Phase C engine browser check

`npm run check:engine-browser` bundles `src/engine.ts` as a browser IIFE with no Node polyfills, then executes a Partsale fixture search in an isolated VM that exposes browser globals but no `process`, `require`, or Node APIs. The generated `.phase-c/index.html` runs the exact same bundle in a literal browser.

The command fails if bundling or execution fails, or if the minified bundle exceeds 250 kB gzip. It writes its generated bundle and report under `.phase-c/` (ignored by Git). The report includes total bundle size and the unminified source bytes attributable to cheerio and its parser dependencies so the DOMParser fallback decision stays measurable.
