优化索引生成

This commit is contained in:
2022-12-17 10:51:54 +08:00
parent 21306499a2
commit 7d3d67f0d0

View File

@@ -875,10 +875,16 @@ class Dist extends Command
new Arg(new String_('1'))
]
));
$include_path = [];
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($this->includeLibPath['magic_var_map'])), Include_::TYPE_REQUIRE_ONCE));
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($this->includeLibPath['function_lib_file'])), Include_::TYPE_REQUIRE_ONCE));
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($this->includeLibPath['main_class_file'])), Include_::TYPE_REQUIRE_ONCE));
$include_path[] = $this->includeLibPath['magic_var_map'];
$include_path[] = $this->includeLibPath['function_lib_file'];
$include_path[] = $this->includeLibPath['main_class_file'];
foreach ($include_path as $path) {
$_path = substr($path, 3);
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($_path)), Include_::TYPE_REQUIRE_ONCE));
}
$prettyPrinter = new MinifyPrinterTools();
@@ -1045,7 +1051,4 @@ class Dist extends Command
return null;
}
}