提交 95815a08 编写于 作者: X Xin,Zhang 提交者: wu-sheng

Change the enhance file name (#20)

上级 a492779c
......@@ -60,7 +60,7 @@ function hook(modules, requireCallback) {
try {
let res = resolve.sync(moduleName, {basedir: basedir});
if (res !== filename) {
enhanceFile = moduleName + "_" + (pathSegment[pathSegment.length - 1].split("."))[0];
enhanceFile = pathSegment[pathSegment.length - 1].split(".")[0];
matchModuleName = moduleName + ":" + pathSegment[pathSegment.length - 1];
} else {
matchModuleName = moduleName;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册