Merge pull request #75 from xin-nie/xin-nie-svgr-support
Add SVG as component support
This commit is contained in:
parent
834223e3cc
commit
c3e79469f1
5 changed files with 18 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue