Repository navigation
docs: ホストは外した engine の依存も束ねる (ADR-0009 に追記) - #14
Merged
Merged
Conversation
lumorphia/prismtone で公開パッケージに切り替えたあと、dev で描画が立ち上がらなかった (lumorphia/prismtone#370)。engine を optimizeDeps.exclude で外すと、その中の import を Vite が辿らず、pixi.js がそのまま配られて CommonJS の eventemitter3 を読めない。 ホストは「@lumorphia/editor-engine > 依存」の形で include に足す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 6, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lumorphia/prismtone で公開パッケージ (1.0.0) に切り替えたあと、dev サーバーで描画が立ち上がらなかった (「WebGL が無効です」、lumorphia/prismtone#370)。
原因は、
optimizeDeps.excludeで engine を外すと、その中の import を Vite の依存の最適化が辿らないこと。そのため pixi.js がそのまま配られ、CommonJS の eventemitter3 を ESM として読めなかった。本番ビルドでは起きないので、本番ビルドの E2E では見つからない。ADR-0009 (ホストに求めること) に、「
@lumorphia/editor-engine > 依存」の形でoptimizeDeps.includeに足すことを追記した。Accepted なので本文は書き換えず、追記にした。このリポジトリの apps/web は engine を workspace から使う (node_modulesの外にあり、最適化が辿る) ので、この問題は起きない。🤖 Generated with Claude Code