Skip to content

fix(nextjs): Remove orchestrion webpack plugin lazy loading#22184

Closed
timfish wants to merge 4 commits into
developfrom
timfish/test/tbp
Closed

fix(nextjs): Remove orchestrion webpack plugin lazy loading#22184
timfish wants to merge 4 commits into
developfrom
timfish/test/tbp

Conversation

@timfish

@timfish timfish commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Since the orchestrion feature is tergetting v11, our minimum supported Node version will be v20.19 and therefore all supported versions will support require(esm). For that reason I've changed the default export to be ESM. This works around the ESM interop issues and we no longer need to load the library lazily.

@timfish timfish changed the title test: Turbo pack test: Turbopack Jul 10, 2026
@timfish timfish force-pushed the timfish/test/tbp branch from 0de1061 to 08b4219 Compare July 10, 2026 15:34
@timfish timfish changed the title test: Turbopack fix(nextjs): Remove webpack plugin lazy loading Jul 10, 2026
@timfish timfish marked this pull request as ready for review July 10, 2026 15:54
@timfish timfish requested review from a team as code owners July 10, 2026 15:54
@timfish timfish requested review from JPeer264, chargome, isaacs, mydea and nicohrubec and removed request for a team July 10, 2026 15:54
@timfish timfish changed the title fix(nextjs): Remove webpack plugin lazy loading fix(nextjs): Remove orchestrion webpack plugin lazy loading Jul 10, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 08b4219. Configure here.

Comment thread packages/nextjs/src/config/webpack.ts
Comment thread packages/server-utils/src/orchestrion/bundler/webpack.ts
Comment thread packages/server-utils/package.json
Comment thread packages/server-utils/package.json

@isaacs isaacs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an obvious improvement once we drop support for node <20.19, but landing this ahead of updating the engines field seems like a mistake. Can we mark it as targetting v11 and let it wait until then?

@timfish

timfish commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Agreed, I think this might be a better option:

@timfish timfish closed this Jul 10, 2026
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.

2 participants