diff --git a/webpack/webpack-tests.ts b/webpack/webpack-tests.ts index 9f2efe15c4..5af5d9be79 100644 --- a/webpack/webpack-tests.ts +++ b/webpack/webpack-tests.ts @@ -333,6 +333,7 @@ plugin = new webpack.optimize.DedupePlugin(); plugin = new webpack.optimize.LimitChunkCountPlugin(options); plugin = new webpack.optimize.MinChunkSizePlugin(options); plugin = new webpack.optimize.OccurenceOrderPlugin(preferEntry); +plugin = new webpack.optimize.OccurrenceOrderPlugin(preferEntry); plugin = new webpack.optimize.UglifyJsPlugin(options); plugin = new webpack.optimize.UglifyJsPlugin(); plugin = new webpack.optimize.UglifyJsPlugin({ diff --git a/webpack/webpack.d.ts b/webpack/webpack.d.ts index 035b49b014..e2ed2d1658 100644 --- a/webpack/webpack.d.ts +++ b/webpack/webpack.d.ts @@ -327,7 +327,9 @@ declare module "webpack" { * Assign the module and chunk ids by occurrence count. Ids that are used often get lower (shorter) ids. * This make ids predictable, reduces to total file size and is recommended. */ + // TODO: This is a typo, and will be removed in Webpack 2. OccurenceOrderPlugin: optimize.OccurenceOrderPluginStatic; + OccurrenceOrderPlugin: optimize.OccurenceOrderPluginStatic; /** * Minimize all JavaScript output of chunks. Loaders are switched into minimizing mode. * You can pass an object containing UglifyJs options.