Skip to content

Commit

Permalink
Merge pull request #1 from liuwenzhuang/liuwenzhuang-patch-1
Browse files Browse the repository at this point in the history
fix: tmp files change not trigger mfsu cache regenrate in windows
  • Loading branch information
liuwenzhuang authored Jun 3, 2024
2 parents 8a0365d + ebde513 commit ab70ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mfsu/src/mfsu/strategyStaticAnalyze.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { logger, printHelp } from '@umijs/utils';
import { logger, printHelp, winPath } from '@umijs/utils';
import { checkMatch } from '../babelPlugins/awaitImport/checkMatch';
import mfImport from '../babelPlugins/awaitImport/MFImport';
import { StaticDepInfo } from '../staticDepInfo/staticDepInfo';
Expand Down Expand Up @@ -192,7 +192,7 @@ function extractJSCodeFiles(folderBase: string, files: ReadonlySet<string>) {

for (let file of files.values()) {
if (
file.startsWith(folderBase) &&
winPath(file.startsWith(winPath(folderBase))) &&
REG_CODE_EXT.test(file) &&
file.indexOf('node_modules') === -1
) {
Expand Down

0 comments on commit ab70ee1

Please sign in to comment.