diff --git a/doric-cli/scripts/watcher.js b/doric-cli/scripts/watcher.js index 7313a939..17d7f284 100644 --- a/doric-cli/scripts/watcher.js +++ b/doric-cli/scripts/watcher.js @@ -19,7 +19,7 @@ setTimeout(() => { const sourceMap = doMerge(path + ".map") ws.connections.forEach(e => { e.sendText(JSON.stringify({ - script: fs.readFileSync(path), + script: data, source: path.match(/[^/\\]*$/)[0], sourceMap, }))