File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ const ChunkTemplate = require("./ChunkTemplate");
26
26
const HotUpdateChunkTemplate = require ( "./HotUpdateChunkTemplate" ) ;
27
27
const ModuleTemplate = require ( "./ModuleTemplate" ) ;
28
28
const RuntimeTemplate = require ( "./RuntimeTemplate" ) ;
29
- const Dependency = require ( "./Dependency" ) ;
30
29
const ChunkRenderError = require ( "./ChunkRenderError" ) ;
31
30
const AsyncDependencyToInitialChunkError = require ( "./AsyncDependencyToInitialChunkError" ) ;
32
31
const Stats = require ( "./Stats" ) ;
@@ -36,6 +35,7 @@ const Queue = require("./util/Queue");
36
35
const SortableSet = require ( "./util/SortableSet" ) ;
37
36
const GraphHelpers = require ( "./GraphHelpers" ) ;
38
37
const ModuleDependency = require ( "./dependencies/ModuleDependency" ) ;
38
+ const compareLocations = require ( "./compareLocations" ) ;
39
39
40
40
/** @typedef {import("./Module") } Module */
41
41
/** @typedef {import("./Compiler") } Compiler */
@@ -642,7 +642,7 @@ class Compilation extends Tapable {
642
642
war . dependencies = dependencies ;
643
643
this . warnings . push ( war ) ;
644
644
}
645
- module . dependencies . sort ( Dependency . compare ) ;
645
+ module . dependencies . sort ( ( a , b ) => compareLocations ( a . loc , b . loc ) ) ;
646
646
if ( error ) {
647
647
this . hooks . failedModule . call ( module , error ) ;
648
648
return callback ( error ) ;
You can’t perform that action at this time.
0 commit comments