1
0
Fork 0

Merge pull request #75 from xin-nie/xin-nie-svgr-support

Add SVG as component support
This commit is contained in:
Travis Fischer 2018-10-04 04:42:28 -04:00 committed by Joost De Cock
parent 834223e3cc
commit c3e79469f1
5 changed files with 18 additions and 2 deletions

View file

@ -27,6 +27,7 @@
"react-dom": "^15.0.0 || ^16.0.0"
},
"devDependencies": {
"@svgr/rollup": "^2.4.1",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.5",
"babel-plugin-external-helpers": "^6.22.0",

View file

@ -4,6 +4,7 @@ import external from 'rollup-plugin-peer-deps-external'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import url from 'rollup-plugin-url'
import svgr from '@svgr/rollup'
import pkg from './package.json'
@ -27,6 +28,7 @@ export default {
modules: true
}),
url(),
svgr(),
babel({
exclude: 'node_modules/**',
plugins: [ 'external-helpers' ]