From 2cbbfe53816808c5732579a9997a9dc11bd8a614 Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Mon, 30 Mar 2026 11:30:53 +0000 Subject: [PATCH 1/2] fix: externalize prettier/plugins/estree to prevent bundling stale code The vite config listed `prettier/plugins/estree.js` as external, but the source imports `prettier/plugins/estree` (no .js extension). This mismatch caused vite to bundle prettier's estree printer into the plugin instead of keeping it external. When the user installs a newer version of prettier (e.g. 3.6.2), the plugin still uses the old bundled estree code whose `canAttachComment` function expects 2 arguments, while prettier 3.6+'s core calls it with 1 argument. This causes a crash: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) when formatting any .gts file that contains both a comment and a