Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 19, 2023
1 parent ca4445e commit 0f2f060
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ const config = watchConfig({
// debounce: 200 // Default is 100. You can set to fale to disable debounced watcher
onWatch: (event) => {
console.log("[watcher]", event.type, event.path);
console.log(config.config);
},
acceptHMR({ oldConfig, newConfig, getDiff }) {
const diff = getDiff();
Expand Down
1 change: 0 additions & 1 deletion playground/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function main() {
},
onWatch: (event) => {
console.log("[watcher]", event.type, event.path);
console.log(config.config);
},
acceptHMR({ oldConfig, newConfig, getDiff }) {
const diff = getDiff();
Expand Down

0 comments on commit 0f2f060

Please sign in to comment.