fix: stub react-devtools-core for bun compile

Ink statically imports react-devtools-core (only used when DEV=true).
With --external, bun compile leaves a runtime require that fails in the
standalone binary. Instead, provide a no-op stub that bun bundles inline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-02-26 00:06:31 +00:00
parent 59f0c06b91
commit 414a8d3774
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
// Stub for react-devtools-core — not needed in production builds
export default { initialize() {}, connectToDevTools() {} };

View File

@@ -0,0 +1,6 @@
{
"name": "react-devtools-core",
"version": "0.0.0",
"main": "index.js",
"type": "module"
}