From 166f47a41e1396fcedf1eb7d324a30d414fc99f8 Mon Sep 17 00:00:00 2001 From: Mofei Zhang Date: Thu, 8 Jun 2023 14:32:22 -0400 Subject: [PATCH] [snap] Fix snap ignored paths --- compiler/forget/packages/snap/src/compiler-worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/forget/packages/snap/src/compiler-worker.ts b/compiler/forget/packages/snap/src/compiler-worker.ts index c5e21d0570..d4c8712ef3 100644 --- a/compiler/forget/packages/snap/src/compiler-worker.ts +++ b/compiler/forget/packages/snap/src/compiler-worker.ts @@ -13,7 +13,7 @@ const originalConsoleError = console.error; // Try to avoid clearing the entire require cache, which (as of this PR) // contains ~1250 files. This assumes that no dependencies have global caches // that may need to be invalidated across Forget reloads. -const invalidationSubpath = "react-forget/forget/dist"; +const invalidationSubpath = "packages/babel-plugin-react-forget/dist"; let version: number | null = null; export function clearRequireCache() { Object.keys(require.cache).forEach(function (path) {