Svgr Versions Save

Transform SVGs into React components 🦁

v8.1.0

8 months ago

Bug Fixes

  • cli: fix default dimensions, prettier & svgo (571d5c8)
  • config: prefer cli config over rc config (#845) (8b97248)
  • react-native: fix duplicate import (#894) (e612b6a)

Features

  • esm: add support for svgo.config.cjs (#879) (ae91e2e)

v8.0.1

11 months ago

Bug Fixes

v8.0.0

11 months ago

Bug Fixes

  • parseObject error causes website broken (05f2946)

Features

  • types: change SVGProps from import to import type (#853) (095f021)
  • add snake_case filename option (#857) (428b0c7)
  • make index template more flexible (#861) (003009c)

BREAKING CHANGES

  • index template now receives an array of objects containing both the created component path (path) and the original SVG path (originalPath)

v7.0.0

1 year ago

Features

BREAKING CHANGES

  • plugin-jsx is no longer included by default in core
  • svgr now requires Node.js v14+

v6.5.1

1 year ago

v6.5.0

1 year ago

Bug Fixes

Features

  • babel-preset: fix 'role' attribute on svg element for react native (#787) (35d85e0)

v6.4.0

1 year ago

Bug Fixes

  • deps: add babel-preset to core dependencies (#782) (464ec5f)

Features

  • a11y: add attribute role="img" to the svg element (#750) (8b9edc4)
  • support spaces in file names (#779) (6ee639a)

v6.3.1

1 year ago

Bug Fixes

v6.3.0

1 year ago

Bug Fixes

Features

  • add descProp option (#729) (a0637d4)
  • cli: output file name when error happen to handling a file (#702) (0ec1fbd)

v6.2.1

2 years ago

Bug Fixes