public void sortInputsByDeps ( AbstractCompiler compiler ) { // Set the compiler, so that we can parse requires/provides and report // errors properly. for ( CompilerInput input : inputs ) { input . setCompiler ( compiler ) ; } // Sort the JSModule in this order. List < CompilerInput > sortedList = new Es6SortedDependencies <> ( inputs ) . getSortedList ( ) ; inputs . clear ( ) ; inputs . addAll ( sortedList ) ; }
Puts the JS files into a topologically sorted order by their dependencies .