aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/package.json8
-rw-r--r--vnext/src/components/Feeds.js1
-rw-r--r--vnext/src/components/Thread.js1
-rw-r--r--vnext/webpack.config.js1
4 files changed, 5 insertions, 6 deletions
diff --git a/vnext/package.json b/vnext/package.json
index bf70be0e..bc4067d6 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -27,7 +27,8 @@
"style-loader": "^0.21.0",
"webpack": "^4.12.0",
"webpack-command": "^0.2.1",
- "webpack-serve": "^1.0.4"
+ "webpack-serve": "^1.0.4",
+ "whatwg-fetch": "^2.0.4"
},
"babel": {
"presets": [
@@ -40,7 +41,6 @@
"query-string": "^6.1.0",
"react": "^16.4.1",
"react-dom": "^16.4.1",
- "react-router-dom": "^4.3.1",
- "whatwg-fetch": "^2.0.4"
+ "react-router-dom": "^4.3.1"
}
-} \ No newline at end of file
+}
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index e79d7f83..d0123016 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -1,4 +1,3 @@
-import 'whatwg-fetch';
import React from 'react';
import PropTypes from 'prop-types';
import * as qs from 'query-string';
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js
index a1abdd6c..16a662cc 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -1,4 +1,3 @@
-import 'whatwg-fetch';
import React from 'react';
import * as qs from 'query-string';
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 37413101..4c32597c 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -10,6 +10,7 @@ module.exports = {
entry: {
'Juick': [
'babel-polyfill',
+ 'whatwg-fetch',
'file-loader?name=index.html!./src/views/index.html',
__dirname + '/src/index.js',
__dirname + '/src/style/main.css'