Skip to content

fix(core): load post-processors via native dynamic import - #94

Merged
michaelbe812 merged 1 commit into
mainfrom
fix/post-process-loader-esm
Oct 5, 2026
Merged

michaelbe812 merged 1 commit into
mainfrom
fix/post-process-loader-esm

Conversation

@michaelbe812

Copy link
Copy Markdown
Contributor

Part of #84

  • post-process/loader.ts: await import(name) compiled to require() (CJS build) -> ESM-only post-processors failed. Now uses utils/dynamic-import like plugin-loader.ts.
  • Same CJS interop: export also looked up in mod.default (default.default, nested factory).
  • Specs mock helper (loader + run), new interop cases.

Verified: nx run-many -t lint test build -p core green.

🤖 Generated with Claude Code

ESM-only post-processor pkgs failed: import() compiled to require().
Use dynamicImport helper + CJS default.default interop.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@michaelbe812
michaelbe812 merged commit d6f0f86 into main Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant