summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-02-20 15:48:49 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-02-20 15:48:49 +0000
commit6b176b4ee0493b3545f34fa20f7dad695e9a8ee4 (patch)
treecbdaaaea5279fb27f3d7fc9a7786f9fae75dd1f8
parent2902c1dd5a0d10157570ae76e07bfd002d53a723 (diff)
downloadmullvadvpn-6b176b4ee0493b3545f34fa20f7dad695e9a8ee4.tar.xz
mullvadvpn-6b176b4ee0493b3545f34fa20f7dad695e9a8ee4.zip
Add SVG injector for React
-rw-r--r--.babelrc2
-rw-r--r--package.json1
2 files changed, 2 insertions, 1 deletions
diff --git a/.babelrc b/.babelrc
index 0b7f2e0edb..363c59ab6f 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,4 +1,4 @@
{
"presets": ["es2015", "stage-0", "react"],
- "plugins": ["transform-decorators-legacy", "transform-runtime"]
+ "plugins": ["transform-decorators-legacy", "transform-runtime", "inline-react-svg"]
}
diff --git a/package.json b/package.json
index b42114d0b4..10c8064ea9 100644
--- a/package.json
+++ b/package.json
@@ -27,6 +27,7 @@
"babel-cli": "^6.22.2",
"babel-core": "^6.2.1",
"babel-eslint": "^7.1.1",
+ "babel-plugin-inline-react-svg": "^0.2.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-es2015": "^6.1.18",