mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Bump aspnet-webpack version to 2.0.2. Also, further minor tweak to TypeScript annotations.
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user