nene / prettier-plugin-sql-cst

Prettier SQL plugin that uses sql-parser-cst
https://nene.github.io/prettier-sql-playground/
GNU General Public License v3.0
132 stars 7 forks source link

Attempt to use synckit for running Prettier 3 synchronously #16

Closed nene closed 10 months ago

nene commented 10 months ago

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.