prettier-plugin-svelte icon indicating copy to clipboard operation
prettier-plugin-svelte copied to clipboard

Standalone build

Open dummdidumm opened this issue 4 years ago • 2 comments

See #239 for more

dummdidumm avatar Oct 20 '21 13:10 dummdidumm

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 avatar Nov 14 '21 15:11 dummdidumm

@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 😄 )

raymondmuller avatar Sep 08 '22 08:09 raymondmuller

See also https://github.com/sveltejs/prettier-plugin-svelte/pull/417

curran avatar Jan 29 '24 15:01 curran