The invention relates to the technical field of
computer software, in particular to a migration and
performance enhancement automation method based on a front-
end system and related equipment. The method comprises the following steps: performing identification and path extraction on a dynamic import statement according to an
abstract syntax tree
library or a
regular expression, and performing file existence
verification to obtain a path validity result; performing case correction and extension
complementation on the dynamic import path based on a path validity result, and
rewriting the
source code to obtain a repaired
source code file; key
time sequence nodes and memory use conditions in the front-end construction process are collected, and
performance monitoring data are obtained; performing hash comparison on the construction command to obtain a
verification result; and carrying out aggregation migration on the
verification result and the repair log to obtain a complete migration report. According to the method, the construction starting efficiency can be remarkably improved, the migration and debugging cost is reduced, paths, styles and key names are unified and standardized, the consistency of construction products is guaranteed, and traceable migration reports and extension plans are provided.