Skip to content

Fix exports and imports for package.json for workerd #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 2, 2025

Conversation

conico974
Copy link
Collaborator

Remove other exports and imports (than workerd) when found in package.json. This fix an issue with build conditions order in esbuild because we use platform:node
It also fix an issue with wasm file not properly working if imported without ?module
Fix #623

Copy link

changeset-bot bot commented May 2, 2025

🦋 Changeset detected

Latest commit: 284cc98

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented May 2, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@628

commit: 284cc98

@conico974 conico974 marked this pull request as draft May 2, 2025 09:15
@conico974 conico974 marked this pull request as ready for review May 2, 2025 10:48
Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

Thanks!

Great that this will enable prisma 🎉

@conico974 conico974 merged commit a169b76 into opennextjs:main May 2, 2025
7 checks 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.

[BUG] Prisma throws Error: [unenv] fs.readdir is not implemented yet! when querying
2 participants