Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-next-esm-compat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"workflow": patch
---

Fix `workflow/next` ESM compatibility for `next.config.mjs` files
2 changes: 1 addition & 1 deletion packages/workflow/src/next.cts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// The Next.js plugin needs to support CommonJS usage since
// `next.config.js` using CommonJS syntax is still common.
import nextPlugin = require('@workflow/next');
export = nextPlugin;
export const withWorkflow = nextPlugin.withWorkflow;
Loading