mirror of
https://github.com/quartz-community/plugin-template.git
synced 2026-07-22 02:50:24 +00:00
Bundled CJS dependencies (e.g. reading-time) use require() for Node builtins like 'stream' and 'util'. In ESM output, the esbuild-generated __require shim throws 'Dynamic require of X is not supported' because there is no global require in ESM context. Add platform: 'node' and a banner that injects createRequire from the 'module' builtin, providing a working require() function for the CJS compatibility layer. |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| index.js | ||
| index.js.map | ||