Browse Source

Fix watch mode for external extensions

Webpack fixed this bug in a non-exported class that we keep made a
"copy" of. I have included the fix in our copy of the class.

This addresses an error causing wtach mode to fail to work when
using it with external extensions (not in dev mode)
Alex Bozarth 4 năm trước cách đây
mục cha
commit
3232ef0e9e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      builder/src/webpack-plugins.ts

+ 1 - 1
builder/src/webpack-plugins.ts

@@ -110,7 +110,7 @@ export namespace WPPlugin {
         close: () => watcher.close(),
         pause: () => watcher.pause(),
         getContextTimeInfoEntries: () => {
-          const dirTimestamps = watcher.getContextInfoEntries();
+          const dirTimestamps = watcher.getContextTimeInfoEntries();
           for (const path of ignoredDirs) {
             dirTimestamps.set(path, IGNORE_TIME_ENTRY);
           }