babel-plugin-react-sketchapp-svg
A babel plugin that transforms SVG imports into react-sketchapp-compatible primitives.
🚨 This is super BETA 🚨
This is my first dip into the babel plugin pool, so any help testing or developing would be greatly appreciated.
Usage
.babelrc
(Recommended)
Via .babelrc
Options
verbose
- Log level (boolean
, default:false
)defaultWidth
- Default pixel width for SVG (string
ornumber
, default:100%
)defaultHeight
- Default pixel height for SVG (string
ornumber
, default:100%
)- ...inherited options from babel-plugin-inline-react-svg
Example: