Skip to content

Commit

Permalink
use new watchpack collectTimeInfoEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Molinaro committed Nov 24, 2021
1 parent a644ca3 commit dbd9e9c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/node/NodeWatchFileSystem.js
Expand Up @@ -82,7 +82,7 @@ class NodeWatchFileSystem {
}
fileMap = new Map();
directoryMap = new Map();
this.watcher.getTimeInfoEntries(fileMap, directoryMap);
this.watcher.collectTimeInfoEntries(fileMap, directoryMap);
callback(null, fileMap, directoryMap, changes, removals);
});

Expand Down Expand Up @@ -126,7 +126,7 @@ class NodeWatchFileSystem {
getFileTimeInfoEntries: () => {
if (fileMap) return fileMap;
if (this.watcher) {
this.watcher.getTimeInfoEntries(
this.watcher.collectTimeInfoEntries(
(fileMap = new Map()),
(directoryMap = new Map())
);
Expand All @@ -137,7 +137,7 @@ class NodeWatchFileSystem {
getContextTimeInfoEntries: () => {
if (directoryMap) return directoryMap;
if (this.watcher) {
this.watcher.getTimeInfoEntries(
this.watcher.collectTimeInfoEntries(
(fileMap = new Map()),
(directoryMap = new Map())
);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -27,7 +27,7 @@
"schema-utils": "^3.1.0",
"tapable": "^2.1.1",
"terser-webpack-plugin": "^5.1.3",
"watchpack": "^2.2.0",
"watchpack": "^2.3.0",
"webpack-sources": "^3.2.2"
},
"peerDependenciesMeta": {
Expand Down Expand Up @@ -246,4 +246,4 @@
"json"
]
}
}
}
1 change: 1 addition & 0 deletions types.d.ts
Expand Up @@ -6260,6 +6260,7 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
/**
* An array of all the loaders. It is writeable in the pitch phase.
* loaders = [{request: string, path: string, query: string, module: function}]
*
* In the example:
* [
* { request: "/abc/loader1.js?xyz",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -6074,10 +6074,10 @@ wast-loader@^1.11.0:
dependencies:
wabt "1.0.0-nightly.20180421"

watchpack@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.2.0.tgz#47d78f5415fe550ecd740f99fe2882323a58b1ce"
integrity sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==
watchpack@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.3.0.tgz#a41bca3da6afaff31e92a433f4c856a0c25ea0c4"
integrity sha512-MnN0Q1OsvB/GGHETrFeZPQaOelWh/7O+EiFlj8sM9GPjtQkis7k01aAxrg/18kTfoIVcLL+haEVFlXDaSRwKRw==
dependencies:
glob-to-regexp "^0.4.1"
graceful-fs "^4.1.2"
Expand Down

0 comments on commit dbd9e9c

Please sign in to comment.