- fix typescript for node10 moduleResolution
- allow vite 5 as peer dependency
- replace rollup with tsup
- update examples
- support svg where the tag and props are in different lines
- update dependencies
- The minimal required Node version is now 18.0.0
- The minimal required vite version is now 4
- The svgo package has been updated to version 3. If you are using a custom configuration, please refer to its documentation for any necessary updates.
- Fix loading pages that ends with svg. See issue #40.
- Fix
exports
inpackage.json
. Correct readme to place typings beforevite/client
, order matters.
- Fix svgo type inference by moving
@types/svgo
fromdevDependencies
todependencies
- Add typescript defenition for
defaultAsComponent
case.
- replace svg comments with jsx comments
the plugin was rewrited as a typescript project. Some features were removed as they are supported internally by vite.
- Removed [name] pattern, as Vite supports globs by default: https://vitejs.dev/guide/features.html#glob-import
- Replace
defaultExport
option fordefaultAsComponent
- Replace
component
sufix in query string forcomponent-solid
- fix typescript definition for
?url
- add support for
props.children
inside svg, but only if it enabled in the options. See #19
- fix hot module reload
- add support for vite@3
- add check for datauri option in svgo config. The datauri option breaks this plugin, so is not allowed.
- allow disable or pass a custom configuration for svgo
- fixes load of svg files that contains a style block (issue #13)
- add typescript example
- fixes typescripts issues by changing module declarations
- fix typescript compilation
- fix ssr by using solid compiler (issue #6)
- add examples projects
- ignore other querystring params in the path (issue #1)
- fix error ocurred when the component is called without props
- fix passing props to the SVG Component
First release