svelte-preprocess-import-assets

Import assets directly in your markup

MIT License

Downloads
9.2K
Stars
91
Committers
4

Bot releases are hidden (Show)

svelte-preprocess-import-assets - v1.1.0 Latest Release

Published by bluwy 11 months ago

  • Support Svelte 5
  • Add estree-walker as dependency to support Svelte 5
svelte-preprocess-import-assets -

Published by bluwy over 1 year ago

  • Support Svelte 4
svelte-preprocess-import-assets -

Published by bluwy over 1 year ago

  • BREAKING: use named export instead of default export
// Before
import importAssets from 'svelte-preprocess-import-assets'

// After
import { importAssets } from 'svelte-preprocess-import-assets'
svelte-preprocess-import-assets -

Published by bluwy over 1 year ago

  • Handle actual attributes only. Ignore spread, actions, etc.
  • Add types export condition
  • Update magic-string to 0.30.0
svelte-preprocess-import-assets -

Published by bluwy almost 2 years ago

  • Update magic-string to 0.27.0
svelte-preprocess-import-assets -

Published by bluwy almost 2 years ago

  • link imagesrcset should not be processed if have valid itemprop for href only
svelte-preprocess-import-assets -

Published by bluwy almost 2 years ago

  • Fix CJS usage

Note: I forgot to cut the GitHub releases for the previous v0.2 versions. Check out the CHANGELOG for details.

svelte-preprocess-import-assets -

Published by bluwy over 2 years ago

Fixed

  • Handle srcset without width, e,g. ./foo.mp4, ./bar.mp4 1v

I forgot to make a GitHub release for 0.1.4 and 0.1.5

0.1.5

Fixed

  • Handle src attribute for video tags

0.1.4

Fixed

  • Skip URL that starts with a hash
svelte-preprocess-import-assets -

Published by bluwy about 3 years ago

Fixed

  • Ignore attributes with mustache value
svelte-preprocess-import-assets -

Published by bluwy over 3 years ago

Fixed

  • Always scan through the entire source list
svelte-preprocess-import-assets -

Published by bluwy over 3 years ago

Added

  • Add http option
svelte-preprocess-import-assets -

Published by bluwy over 3 years ago

Initial release. Hurray!