Expose futureEmitAssets API (#37093)

* Expose `futureEmitAssets` API

* Fix linter
This commit is contained in:
Alex
2019-07-24 07:48:26 +01:00
committed by John Reilly
parent e1f00aa62b
commit 2830f886c2
+5
View File
@@ -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';