Files
inkos/packages/core
Ma ac72fbfe08 fix(studio): add play to HASH_PAGES and import evaluator via browser-safe path
- Add "play" to HASH_PAGES in use-hash-route.ts so nav.toPlay() updates
  window.location.hash, making #/play/:id shareable and reload-safe.
- Add subpath exports for interactive-film/evaluator and
  interactive-film/graph-schema in core/package.json so StoryPlayer can
  import runtime functions without touching the barrel (which re-exports
  PlayDB → node:module).
- Update StoryPlayer.tsx to import visibleChoices/applyEffects/initVarState
  from the new subpath; import StoryGraph and Choice as type-only from
  graph-schema subpath.
- Revert the node:* externalization from packages/studio/vite.config.ts —
  the browser bundle no longer reaches node-only code, so the workaround
  is unnecessary and unsafe.
2026-06-23 14:45:29 +08:00
..