leopen

Results 2 comments of leopen

我的理解为了保持和其他接口一致性,应该是改emit那个部分不要{},但是需要看看其他涉及的地方是否也需要同步修改

应当替换的不是文件的路径,而是文件的生成内容: ![image](https://user-images.githubusercontent.com/16874003/188122374-3492b3d9-3b14-49e6-b595-dbd74f87ace5.png) ``` // 添加函数 function formatPathForWindows(path) { return os.type() === 'Windows_NT' ? path.replace(/\\/g, '/'): path } // 所有 generateEntry 函数的params参数中可能涉及到path的都格式化一下: { // ... componentsImportStr: formatPathForWindows(componentsImportStr) // ... } ```...