- Support Svelte 5
- Add
estree-walker
as dependency to support Svelte 5
- Support Svelte 4
- BREAKING: use named export instead of default export
// Before
import importAssets from 'svelte-preprocess-import-assets'
// After
import { importAssets } from 'svelte-preprocess-import-assets'
- Export ESM only
- Fix incorrect filter metadata value (#17)
- Handle actual attributes only. Ignore spread, actions, etc.
- Add
types
export condition - Update
magic-string
to 0.30.0
- Update
magic-string
to 0.27.0
link
imagesrcset
should not be processed if have validitemprop
forhref
only
- Fix CJS usage
- Support component names in sources
- Update docs
- Use
svelte-parse-markup
to parse Svelte template without sequence trick
- Handle
srcset
without width, e,g../foo.mp4, ./bar.mp4 1v
- Handle
src
attribute forvideo
tags
- Skip URL that starts with a hash
- Ignore attributes with mustache value
- Always scan through the entire source list
- Add
http
option
Initial release