mirror of
https://github.com/gosticks/svgr.git
synced 2026-04-16 01:34:34 +00:00
BREAKING CHANGE: Node: - Drop node v6 support Options: - Remove `ids` option (use SVGO config instead) - Remove `jsx-bracket-same-line` option (use Prettier config instead) - Remove `keep-useless-defs` option (use SVGO config instead) - Remove `no-bracket-spacing` option (use Prettier config instead) - Remove `no-semi` option (use Prettier config instead) - Remove `single-quote` option (use Prettier config instead) - Remove `tab-width` option (use Prettier config instead) - Remove `trailing-comma` option (use Prettier config instead) - Remove `use-tabs` option (use Prettier config instead) - Remove `no-title` option (use SVGO config instead) - Remove `no-view-box` option (use SVGO config instead) - Remove `precision` option (use SVGO config instead) - Rename `replace-attr-value` into `replace-attr-values` (it is now an object instead of an array) - Rename `svg-attribute` into `svg-attributes` API: - Remove `rawConvert` method - Templates now receive code, config and state - `componentName` must now be passed in state Packages: The project is now split into several packages: - @svgr/core (Node API) - @svgr/cli (Command Line Interface) - @svgr/webpack (webpack loader) - @svgr/rollup (Rollup plugin)