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

Client side formatting #42

Open
Ovyerus opened this issue Sep 3, 2022 · 0 comments
Open

Client side formatting #42

Ovyerus opened this issue Sep 3, 2022 · 0 comments

Comments

@Ovyerus
Copy link
Owner

Ovyerus commented Sep 3, 2022

Prisma v4.3.0 mentions that the prisma format command now uses a WASM module (@prisma/prisma-fmt-wasm).

Currently formatting is done via an API endpoint which uses the @prisma/internals package. It might be worth looking into seeing how hard it is to commandeer this WASM module to provide schema formatting on the client side, without needing to call out to the API.

@Ovyerus Ovyerus self-assigned this Sep 3, 2022
@Ovyerus Ovyerus removed their assignment Feb 1, 2023
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

No branches or pull requests

1 participant