Skip to content

Releases: poppa/sveltekit-svg

v4.2.1 - Fixed missing dependency

14 Jan 08:35
Compare
Choose a tag to compare

@rollup/pluginutils needs to be a dependency. This should fix #54

v4.2.0 - Optimize SVGs imported as URLs

08 Jan 07:08
Compare
Choose a tag to compare

SVGs imported as URLs (import svgUrl from ./some.svg?url) will now be SVGO optimized before written to disk on production builds.

NOTE: SVGs imported as URLs will not be optimized in dev mode.

This should fix #52

v4.1.2 - Return the full JS result from compile

31 Aug 10:54
Compare
Choose a tag to compare

This will include the map property as well.

This should fix #48.

v4.1.1 - Set Svelte compiler css option to 'none'

31 Aug 06:36
Compare
Choose a tag to compare

The css option to Svelte compile() has changed and setting it to a boolean value has been deprecated.

This gave the compilerOptions.css as a boolean is deprecated. Use 'external' instead of false. warning.

Since we're disregarding the css field in the generated result, we can set this option to none and skip all CSS stuff altogether.

v4.1.0 - Added the `preCompileHook` option

07 Aug 05:09
Compare
Choose a tag to compare

This is a function that lets the consumer transform the SVG into a Svelte component before being passed to the Svelte compiler.

v4.0.1 - Render the contents of the `<svg>` tag using `{@html}` in the component mode

03 Aug 05:05
Compare
Choose a tag to compare

This is to prevent Svelte having to parse the entire SVG.

Thanks @aradalvand for the code.

This solves #39

v4.0.0 - Support Svelte 4

23 Jun 07:46
Compare
Choose a tag to compare

This release supports Svelte 4

v3.0.1 - Maintenance release

20 May 08:17
Compare
Choose a tag to compare

This is a maintenance release with no code changes

  • Updated all NPM packages
  • Renamed app.d.ts to svg.d.ts since Svelte doesn't like these typings in
    app.d.ts (see issue 25)
  • Also copy svg.d.ts to dist/ on build.
  • Some fixes to the README file
  • Thanks to @joakimnordling for PR #35

v3.0.0 - Honor the SVGO `datauri` option

18 Mar 11:21
Compare
Choose a tag to compare

Support for the SVGO datauri option in the dataurl query parameter. This means that ?dataurl=base64, ?dataurl=enc and ?dataurl=unenc works.

This solves #32

v2.1.2 - Keep the generated source map

29 Jan 19:32
Compare
Choose a tag to compare
  • Keep the generated source map

    This removes the "Sourcemap is likely to be incorrect: a plugi
    (sveltekit-svg) was used to transform files..." warning seen when using this
    plugin outside of SvelteKit