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

Attempt to use synckit for running Prettier 3 synchronously #16

Closed
wants to merge 11 commits into from

Conversation

nene
Copy link
Owner

@nene nene commented Dec 10, 2023

Didn't manage to get it working. Running into an error:

    DataCloneError: function (text, options) {
            return (0, transformCst_1.transformCst)((0, sql_parser_cst_1.parse)(text, {
    ...<omitted>... } could not be cloned.

This likely happens because I need to pass the whole plugin as a parameter to Prettier and synckit is unable to serialize functions.

Additionally I still need to use the --experimental-vm-modules flag, so there's no win in this area also.

@nene nene mentioned this pull request Dec 10, 2023
@nene nene closed this Dec 10, 2023
@nene nene deleted the prettier-3-synckit branch January 27, 2024 18:12
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.

1 participant