mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-10-16 05:19:50 +08:00
rollup.config.mjs is ESM but handed the compiler to
rollup-plugin-typescript2 via require("typescript"). When rollup loads
the config as native ESM (e.g. workspace postinstall, without
--bundleConfigAsCjs) this throws "require is not defined in ES module
scope". Switch to a top-level `import ts from "typescript"` and add an
explicit .ts/.tsx include.
Supersedes #397 — keeps only the rollup fix and drops that PR's
unrelated .env.example deletion and full lockfile rewrite.
Co-authored-by: shunan-lu <49121953@qq.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>