Ver código fonte

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 anos atrás
pai
commit
3232ef0e9e
1 arquivos alterados com 1 adições e 1 exclusões
  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);
           }