Update templates to TypeScript 2.2.1 and fix whatwg-fetch related errors. Fixes #705

This commit is contained in:
Steve Sanderson
2017-02-23 10:07:03 +00:00
parent 627ea78e72
commit 689f106181
11 changed files with 12 additions and 21 deletions

View File

@@ -11,7 +11,6 @@
"@types/redux": "3.5.27",
"@types/webpack": "^2.2.0",
"@types/webpack-env": "^1.13.0",
"@types/whatwg-fetch": "0.0.28",
"aspnet-prerendering": "^2.0.0",
"aspnet-webpack": "^1.0.27",
"aspnet-webpack-react": "^1.0.4",
@@ -22,7 +21,7 @@
"babel-preset-react": "^6.5.0",
"bootstrap": "^3.3.6",
"css-loader": "^0.23.1",
"domain-task": "^2.0.1",
"domain-task": "^3.0.0",
"event-source-polyfill": "^0.0.7",
"extract-text-webpack-plugin": "^2.0.0-rc",
"file-loader": "^0.8.5",
@@ -37,7 +36,7 @@
"redux": "^3.6.0",
"redux-thunk": "^2.2.0",
"style-loader": "^0.13.0",
"typescript": "^2.0.3",
"typescript": "^2.2.1",
"url-loader": "^0.5.7",
"webpack": "^2.2.0",
"webpack-hot-middleware": "^2.12.2",

View File

@@ -8,7 +8,7 @@
"sourceMap": true,
"skipDefaultLibCheck": true,
"lib": ["es6", "dom"],
"types": [ "webpack-env", "whatwg-fetch" ],
"types": [ "webpack-env" ],
"paths": {
// Fix "Duplicate identifier" errors caused by multiple dependencies fetching their own copies of type definitions.
// We tell TypeScript which type definitions module to treat as the canonical one (instead of combining all of them).