[webpack] Remove properties that has been removed (#40877)

* remove Module.preLoaders, Module.postLoaders and Configuration.debug. These properties has been removed by webpack2.
This commit is contained in:
ShuiRuTian
2019-12-30 23:24:27 +08:00
committed by John Reilly
parent 62e76348ae
commit 8b6f65181d

View File

@@ -113,8 +113,6 @@ declare namespace webpack {
/** Enter watch mode, which rebuilds on file change. */
watch?: boolean;
watchOptions?: Options.WatchOptions;
/** Switch loaders to debug mode. */
debug?: boolean;
/** Include polyfills or mocks for various node stuff */
node?: Node | false;
/** Set the value of require.amd and define.amd. */
@@ -265,10 +263,6 @@ declare namespace webpack {
}
interface Module {
/** A array of applied pre loaders. */
preLoaders?: RuleSetRule[];
/** A array of applied post loaders. */
postLoaders?: RuleSetRule[];
/** A RegExp or an array of RegExps. Dont parse files matching. */
noParse?: RegExp | RegExp[] | ((content: string) => boolean);
unknownContextRequest?: string;