diff options
author | 2018-06-18 11:30:30 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:52 +0300 | |
commit | 1a6cb958928513dcb3989a61bf257c699424f4d6 (patch) | |
tree | 9f9950f64879a0b56ac55c7bea1819bae1cf57fc | |
parent | c91a070f5d3d9bd66b5195b3cf45fbf9a2f1aca4 (diff) |
fetch polyfill is dev dependency
-rw-r--r-- | vnext/package.json | 8 | ||||
-rw-r--r-- | vnext/src/components/Feeds.js | 1 | ||||
-rw-r--r-- | vnext/src/components/Thread.js | 1 | ||||
-rw-r--r-- | vnext/webpack.config.js | 1 |
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' |