Skip to content
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

fix!: make package ES5/CJS only #9

Merged
merged 5 commits into from Apr 22, 2022
Merged

fix!: make package ES5/CJS only #9

merged 5 commits into from Apr 22, 2022

Conversation

jasonkuhrt
Copy link
Member

@jasonkuhrt jasonkuhrt commented Apr 22, 2022

BREAKING CHANGE:

Package is only CJS compatible now and emits ES5. ES5 should not be a breaking change but it is a kind of downgrade. The CJS only aspect will break users depending on the ESM support.

The reason for this change is that Prisma Data Platform is using an old version of nextjs (11) and webpack (4). The build on that project fails on libraries not using ES5 or using package exports field.

@jasonkuhrt jasonkuhrt changed the title feat: schema entrypoint for tree shaking fix!: make package ES5/CJS only Apr 22, 2022
@jasonkuhrt jasonkuhrt merged commit b9fdd85 into main Apr 22, 2022
@jasonkuhrt jasonkuhrt deleted the feat/schema-entrypoint branch April 22, 2022 19:15
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.

None yet

1 participant