Bump aspnet-webpack version to 2.0.2. Also, further minor tweak to TypeScript annotations.

This commit is contained in:
Steve Sanderson
2018-01-24 17:49:51 -08:00
parent 6274733565
commit 08c2f231ea
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "aspnet-webpack", "name": "aspnet-webpack",
"version": "2.0.1", "version": "2.0.2",
"description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@@ -262,9 +262,9 @@ export function createWebpackDevServer(callback: CreateDevServerCallback, option
webpackConfigExport = webpackConfigExport(options.suppliedOptions.EnvParam); webpackConfigExport = webpackConfigExport(options.suppliedOptions.EnvParam);
} }
const webpackConfigThenable: Thenable<WebpackConfigOrArray> = isThenable(webpackConfigExport) const webpackConfigThenable = isThenable<WebpackConfigOrArray>(webpackConfigExport)
? webpackConfigExport ? webpackConfigExport
: { then: callback => callback(webpackConfigExport) }; : { then: callback => callback(webpackConfigExport) } as Thenable<WebpackConfigOrArray>;
webpackConfigThenable.then(webpackConfigResolved => { webpackConfigThenable.then(webpackConfigResolved => {
const webpackConfigArray = webpackConfigResolved instanceof Array ? webpackConfigResolved : [webpackConfigResolved]; const webpackConfigArray = webpackConfigResolved instanceof Array ? webpackConfigResolved : [webpackConfigResolved];