Last 12 weeks · 24 commits
2 of 6 standards met
Formatting a nested expression with an inline callback inserts awkward spaces inside the call expression. Input: Actual output with : Expected: Versions: Prettier 3.9.1, prettier-plugin-svelte 4.1.1, Svelte 5.56.x, Node 24.18.0. I first saw this via OXC/Vite Plus formatting, but the spacing reproduces with directly.
The standalone build allows the plugin to be used in the browser, prettier/standalone. Allows for features such as in-browser formatting and codemods. Have added an exports field to package.json to ensure the correct standalone/node/esm/cjs version of the package is used based on environment. I've also changed the 'svelte' exclude to 'svelte/compiler' in the standalone rollup configs, as the compiler was getting bundled in and I have the feeling it isnt intended to be. If this is the case, you may want to adjust the standard rollup config too.
Repository: sveltejs/prettier-plugin-svelte. Description: Format your svelte components using prettier. Stars: 813, Forks: 99. Primary language: TypeScript. Languages: TypeScript (63.7%), HTML (35.4%), JavaScript (0.9%). License: MIT. Latest release: prettier-plugin-svelte@4.1.1 (2w ago). Open PRs: 9, open issues: 45. Last activity: 2w ago. Community health: 50%. Top contributors: dummdidumm, jamesbirtles, Conduitry, dependabot[bot], jarrodldavis, ehrencrona, jrmajor, github-actions[bot], clebert, orlov-vo and others.