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

[Feature request] Standalone version #15

Closed
imagoiq opened this issue Aug 10, 2023 · 4 comments
Closed

[Feature request] Standalone version #15

imagoiq opened this issue Aug 10, 2023 · 4 comments

Comments

@imagoiq
Copy link

imagoiq commented Aug 10, 2023

Hi,
Maybe, it's already possible, but it would be great to be able to use it as a standalone version. Also can you clarify what's the intent with this version. Is it a temporary solution or will it be supported for long-term?

Thanks per advance

@fisker
Copy link
Member

fisker commented Aug 11, 2023

Unfortunately, it's not possible to make Prettier sync in browser.

since Atomics.wait is blocking, it’s not possible to call it on the main thread.

https://v8.dev/features/atomics

@imagoiq
Copy link
Author

imagoiq commented Aug 15, 2023

Thanks for the info.

@kerryj89
Copy link

kerryj89 commented Mar 18, 2024

I think it would be nice if the description for prettier-synchronized made this more clear. I used Prettier to format code output in Storybook, saw that Prettier 3 is async, and saw Synchronous version of Prettier and thought I could swap it out. Then I read this thread 😅

@marcelino-borges
Copy link

I think it would be nice if the description for prettier-synchronized made this more clear. I used Prettier to format code output in Storybook, saw that Prettier 3 is async, and saw Synchronous version of Prettier and thought I could swap it out. Then I read this thread 😅

Same here

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

4 participants