Преглед на файлове

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 години
родител
ревизия
3232ef0e9e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
           }