diff --git a/doric-cli/scripts/command.js b/doric-cli/scripts/command.js index 2da4018e..5d188e7f 100644 --- a/doric-cli/scripts/command.js +++ b/doric-cli/scripts/command.js @@ -27,6 +27,10 @@ function fromDir(startPath, filter) { }; function doMerge(startPath, fileName) { const filePath = fileName ? path.join(startPath, fileName) : startPath + if (filePath.indexOf('.es5.') >= 0){ + return + } + console.log('File change:', filePath) const mergedMap = SourceMapMerger.createMergedSourceMapFromFiles([ filePath.replace(/bundle\//, 'build/'), filePath, diff --git a/doric-cli/scripts/watcher.js b/doric-cli/scripts/watcher.js index 9970f8ef..fe6d6f24 100644 --- a/doric-cli/scripts/watcher.js +++ b/doric-cli/scripts/watcher.js @@ -19,7 +19,6 @@ setTimeout(() => { } fs.readFile(path, 'utf-8', (error, data) => { if (!path.endsWith('.map')) { - console.log('File change:', path) try { const sourceMap = doMerge(path + ".map") ws.connections.forEach(e => {