chore: remove LabeledModulesPlugin

BREAKING CHANGE: remove webpack.Dependencies interface
This commit is contained in:
Benjamin Lim
2017-02-06 09:56:31 +08:00
parent 2b25f6b2b8
commit dca6783921
2 changed files with 1 additions and 12 deletions

12
webpack/index.d.ts vendored
View File

@@ -492,7 +492,7 @@ declare namespace webpack {
/**
* dependencies namespace
*/
dependencies: Dependencies;
dependencies: {};
/**
* Replace resources that matches resourceRegExp with newResource.
* If newResource is relative, it is resolve relative to the previous resource.
@@ -613,13 +613,6 @@ declare namespace webpack {
AggressiveMergingPlugin: optimize.AggressiveMergingPluginStatic;
}
interface Dependencies {
/**
* Support Labeled Modules.
*/
LabeledModulesPlugin: dependencies.LabeledModulesPluginStatic;
}
interface DirectoryDescriptionFilePluginStatic {
new (file: string, files: string[]): Plugin;
}
@@ -1041,9 +1034,6 @@ declare namespace webpack {
}
namespace dependencies {
interface LabeledModulesPluginStatic {
new (): Plugin;
}
}
namespace compiler {

View File

@@ -345,7 +345,6 @@ plugin = new CommonsChunkPlugin({
// (3 children must share the module before it's separated)
});
plugin = new webpack.optimize.AggressiveMergingPlugin(options);
plugin = new webpack.dependencies.LabeledModulesPlugin();
plugin = new webpack.DefinePlugin(definitions);
plugin = new webpack.DefinePlugin({
VERSION: JSON.stringify("5fa3b9"),