From 2830f886c2dedbe429dd355e5888281a888cd4f9 Mon Sep 17 00:00:00 2001 From: Alex <8125011+proteria@users.noreply.github.com> Date: Wed, 24 Jul 2019 02:48:26 -0400 Subject: [PATCH] Expose `futureEmitAssets` API (#37093) * Expose `futureEmitAssets` API * Fix linter --- types/webpack/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 18d4bbf233..2b27611d44 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -211,6 +211,11 @@ declare namespace webpack { hashSalt?: string; /** An expression which is used to address the global object/scope in runtime code. */ globalObject?: string; + /** + * Tells webpack to use the future version of asset emitting logic, which allows freeing memory of assets after emitting. It could break plugins which + * assume that assets are still readable after they were emitted. + */ + futureEmitAssets?: boolean; } type LibraryTarget = 'var' | 'assign' | 'this' | 'window' | 'global' | 'commonjs' | 'commonjs2' | 'amd' | 'umd' | 'jsonp';