prettier-plugin-svelte
prettier-plugin-svelte copied to clipboard
Standalone build
See #239 for more
This works as standalone now when using it with a bundler like Rollup. But it doesn't work yet for a true browser import because there's a prettier and svelte/compiler import inside the standalone ESM. These need to get out of there somehow, because imports like that only work with import maps currently which are not standard yet and only present in chromium based browsers. I guess true standalone browser-ready today would mean bundling to UMD or sth like that.
@dummdidumm Can this get merged (once conflicts are resolved)? Even though it doesn't work 'yet' as a true browser import due to the dependencies, you mention it does work when bundled, which IMO is a great addition already (and I could use this now 😄 )
See also https://github.com/sveltejs/prettier-plugin-svelte/pull/417