From 90a59a70fd5243ed8d79f9c036ed1ce96188bd6a Mon Sep 17 00:00:00 2001 From: yelo Date: Thu, 7 Mar 2019 23:51:10 +0800 Subject: [PATCH] Add `config.output.globalObject` type (#147) Refs: - https://github.com/neutrinojs/webpack-chain/blob/e4aae70/src/Output.js#L17 - https://github.com/webpack/webpack/blob/b25ff23/declarations/WebpackOptions.d.ts#L1061 --- types/index.d.ts | 1 + types/test/webpack-chain-tests.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index ed75e96..4901e7b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -110,6 +110,7 @@ declare namespace Config { devtoolFallbackModuleFilenameTemplate(value: any): this; devtoolLineToLine(value: any): this; devtoolModuleFilenameTemplate(value: any): this; + globalObject(value: string): this; hashFunction(value: string): this; hashDigest(value: string): this; hashDigestLength(value: number): this; diff --git a/types/test/webpack-chain-tests.ts b/types/test/webpack-chain-tests.ts index bba8e14..3d37321 100644 --- a/types/test/webpack-chain-tests.ts +++ b/types/test/webpack-chain-tests.ts @@ -63,6 +63,7 @@ config .devtoolLineToLine('') .devtoolModuleFilenameTemplate('') .filename('main.js') + .globalObject('global') .hashFunction('md5') .hashDigest('md5') .hashDigestLength(15)