Reduce noise in diff and use files with the same absolute imports when troubleshooting treeshaking

This commit is contained in:
Alex Dima
2020-03-05 10:24:43 +01:00
parent 58bdc8aecb
commit ee64b77af9

View File

@@ -181,9 +181,9 @@ const compileEditorESMTask = task.define('compile-editor-esm', () => {
});
}
// copy files from esm
// copy files from tree shaken src
for (const file of files) {
const srcFilePath = path.join(__dirname, '../out-editor-esm', file);
const srcFilePath = path.join(__dirname, '../out-editor-src', file);
const dstFilePath = path.join(destPath, file);
if (fs.existsSync(srcFilePath)) {
util.ensureDir(path.dirname(dstFilePath));