Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sveltejs/enhanced-img

sveltejs118.2kMIT0.8.4TypeScript support: included

Image optimization for your Svelte apps

component, enhanced, image, preprocessor, plugin, svelte, sveltekit, vite

readme

@sveltejs/enhanced-img

A Vite plugin which runs a Svelte preprocessor to locate images and then transform them at build-time.

WARNING: This package is experimental. It uses pre-1.0 versioning and may introduce breaking changes with every minor version release.

Docs

Docs

Changelog

The Changelog for this package is available on GitHub.

Acknowledgements

We'd like to thank the author of svelte-preprocess-import-assets, which this code is partially based off of. We'd also like to thank the authors of vite-imagetools which is used in @sveltejs/enhanced-img.