Skip to content

Commit

Permalink
build-system: fix infinite loop caused by watching css in npm dist fo…
Browse files Browse the repository at this point in the history
…lders. (#35827)
  • Loading branch information
samouri committed Aug 26, 2021
1 parent 0438e56 commit 17a6b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-system/tasks/extension-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ async function watchExtension(

const cssDeps = `${extDir}/**/*.css`;
const jisonDeps = `${extDir}/**/*.jison`;
watch([cssDeps, jisonDeps]).on(
const ignored = /dist/; //should not watch npm dist folders.
watch([cssDeps, jisonDeps], {ignored}).on(
'change',
debounce(watchFunc, watchDebounceDelay)
);
Expand Down

0 comments on commit 17a6b51

Please sign in to comment.