Files
e2e/scripts
Donny/강동윤andClaude Opus 5.5 40cb356a1e fix(web,mobile): load the main entry without e2e installed (#1828)
`@e2e-dev/web` and `@e2e-dev/mobile` declare `e2e` an optional peer, but
their main entry imported it statically to build `test`. A program on
`@e2e-dev/core` alone that wrote `import { web } from '@e2e-dev/web'`
failed with ERR_MODULE_NOT_FOUND before any of its code ran.

The main entry now requires `e2e` only when it resolves. Without it, the
engine factory works and `test`, `describe`, and the hooks throw
RUNNER_NOT_INSTALLED when called. It uses createRequire, not a top-level
await, so a CommonJS file can still require() the entry.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:50:17 +00:00
..