chore: convert preprocessor to vite plugin
#13617Following the @sveltejs/enhanced-img
docs, we can style images by targeting them as img
.
https://kit.svelte.dev/docs/images#sveltejs-enhanced-img-intrinsic-dimensions
However, this shows an unused css warning when using the Svelte VSCode extension
https://github.com/eltigerchino/svelte-enhanced-image clone the repo and open the root page in vs code with the svelte extension
There should be no warning.
Svelte for VS Code extension
No response
closes sveltejs/language-tools#2321
This is a breaking change as it adds a peer dependency on vite-plugin-svelte for resolving the Svelte config file
This changes the implementation from a preprocessor to a plugin with enforce: 'pre'
to help vite-plugin-svelte kill off it's preprocessing API. The code change looks pretty big as a result of the file rename, but it's not actually a huge change
I'm removing the warning from the docs about the plugin being unstable as I don't anticipate major API changes now that we've decided against renaming this to something like <img data-enhanced />
, etc.
Latest commit: a056cf7
The changes in this PR will be included in the next version bump.
Name | Type |
---|---|
@sveltejs/enhanced-img | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR