8 Commits

Author SHA1 Message Date
Greg Bergé
3700aba837 feat: support jsxRuntime (#613)
It default to "classic", the old behaviour. But it can be "automatic" (the recommended) or "classic-preact".
2021-11-01 08:39:18 +01:00
Greg Bergé
16664327ab feat(typescript): add types everywhere (#611)
The whole codebase has been rewritten to TypeScript.

BREAKING CHANGE: template signature has changed
2021-10-31 09:49:38 +01:00
Michael Gruben
00e84ead96 fix: prevent removing the namespace by svgr ([#475](https://github.com/gregberge/svgr/issues/475) (#498)
Co-authored-by: Michael Gruben <michael.gruben@empiriecom.com>
2020-11-14 23:04:46 +01:00
Bogdan Chadkin
388acea074 refactor: migrate to import * as React from 'react' (#401)
Ref https://github.com/facebook/react/pull/18102
2020-02-23 17:22:54 +01:00
Greg Bergé
86e07235a8 feat: use new default template with function 2019-12-18 17:16:37 +01:00
Bogdan Chadkin
7eb5ef668c perf: replace rehype with svg-parser (#321)
https://npm.anvaka.com/#/view/2d/rehype
https://packagephobia.now.sh/result?p=rehype
https://packagephobia.now.sh/result?p=svg-parser
https://npm.anvaka.com/#/view/2d/svg-parser

Did not notice any changes in speed. Though startup time is probably
better.
2019-07-15 10:41:11 +02:00
Greg Bergé
a48ba7baa9 docs: update all documentations 2018-11-04 16:02:04 +01:00
Greg Bergé
ac8b8cacc5 feat(v4): new architecture
- Replace h2x by rehype + babel
- Move jsx, prettier and svgo into separated plugins

BREAKING CHANGE:

- `template` option must now returns a Babel AST
- `@svgr/core` does not include svgo & prettier by default
2018-11-04 16:01:46 +01:00