Files
OpenMAIC/packages/pptxgenjs
c0b7ea23a1 fix(pptxgenjs): use ESM import for typescript in rollup config (#616)
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>
2026-05-29 15:35:58 +08:00
..