Sha256: af0de394e5374a2ecc6489674e1bdb028b448f7a0924ca1fd887367982d5cea1

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";

class FlagInitialModulesAsUsedPlugin {
	apply(compiler) {
		compiler.plugin("compilation", (compilation) => {
			compilation.plugin("after-optimize-chunks", (chunks) => {
				chunks.forEach((chunk) => {
					if(!chunk.isInitial()) {
						return;
					}
					chunk.modules.forEach((module) => {
						module.usedExports = true;
					});
				});
			});
		});
	}
}

module.exports = FlagInitialModulesAsUsedPlugin;

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ilog-0.4.1 node_modules/webpack/lib/FlagInitialModulesAsUsedPlugin.js
ilog-0.4.0 node_modules/webpack/lib/FlagInitialModulesAsUsedPlugin.js
ilog-0.3.3 node_modules/webpack/lib/FlagInitialModulesAsUsedPlugin.js