refactor(rollup): use svgr instead off svg-rollup-plugin

This commit is contained in:
moklick
2019-10-09 19:28:17 +02:00
parent 88db943980
commit 50e076dffa
9 changed files with 384 additions and 321 deletions
+2 -2
View File
@@ -5,6 +5,7 @@
"module": "dist/ReactFlow.esm.js",
"private": true,
"dependencies": {
"@svgr/rollup": "^4.3.3",
"@welldone-software/why-did-you-render": "^3.3.7",
"classnames": "^2.2.6",
"d3-selection": "^1.4.0",
@@ -36,7 +37,6 @@
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-serve": "^1.0.1",
"rollup-plugin-svg": "^2.0.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-uglify": "^6.0.3",
"rollup-plugin-visualizer": "^2.6.0",
@@ -48,7 +48,7 @@
},
"scripts": {
"build": "rollup -c --environment NODE_ENV:production",
"watch": "rollup -w -c",
"start": "rollup -w -c",
"dev": "cd example && npm start",
"build:example": "cd example && npm run build",
"dev:wait": "start-server-and-test dev http-get://localhost:3000",