Skip to content

fix(game-of-life): repair 3D Life module imports#182

Merged
miuchan merged 1 commit into
masterfrom
codex/3d-life
Feb 24, 2026
Merged

fix(game-of-life): repair 3D Life module imports#182
miuchan merged 1 commit into
masterfrom
codex/3d-life

Conversation

@miuchan
Copy link
Copy Markdown
Owner

@miuchan miuchan commented Feb 24, 2026

Motivation

  • The 3D Life demo failed to start in some environments because browser module specifiers for Three.js and its examples were not resolving consistently from remote URLs, preventing the simulation from loading.

Description

  • Added an importmap to public/demo/game-of-life/3d-life/index.html that maps three and three/addons/ to stable unpkg module URLs.
  • Updated public/demo/game-of-life/3d-life/life3d.js to import three and three/addons/controls/OrbitControls.js via the import map aliases so the browser can resolve modules correctly.

Testing

  • Ran node --check public/demo/game-of-life/3d-life/life3d.js, which completed successfully and found no syntax errors.
  • Attempted an automated Playwright screenshot to validate runtime loading, but the headless Chromium process crashed with a SIGSEGV in this environment so the visual verification could not be completed.

Codex Task

@miuchan miuchan merged commit 1166a57 into master Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant