Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix managed paths regexp handling #14537

Merged
merged 1 commit into from Oct 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/FileSystemInfo.js
Expand Up @@ -1988,7 +1988,7 @@ class FileSystemInfo {
for (const managedPath of this.managedPathsRegExps) {
const match = managedPath.exec(path);
if (match) {
const managedItem = getManagedItem(managedPath[1], path);
const managedItem = getManagedItem(match[1], path);
if (managedItem) {
managedItems.add(managedItem);
managedSet.add(path);
Expand Down Expand Up @@ -2962,7 +2962,7 @@ class FileSystemInfo {
for (const managedPath of this.managedPathsRegExps) {
const match = managedPath.exec(path);
if (match) {
const managedItem = getManagedItem(managedPath[1], path);
const managedItem = getManagedItem(match[1], path);
if (managedItem) {
// construct timestampHash from managed info
return this.managedItemQueue.add(managedItem, (err, info) => {
Expand Down
5 changes: 5 additions & 0 deletions test/configCases/managedPaths/futureDefaults/index.js
@@ -0,0 +1,5 @@
import value from "package";

it("should work", () => {
expect(value).toBe(42);
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,6 @@
/** @type {import("../../../../").Configuration} */
module.exports = {
experiments: {
futureDefaults: true
}
};