Skip to content

Commit 0810f68

Browse files
committed
fix: disable resolver cache when watcher is disabled
1 parent 69c482b commit 0810f68

File tree

5 files changed

+103
-81
lines changed

5 files changed

+103
-81
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"picocolors": "^1.1.1",
6565
"playwright-chromium": "^1.57.0",
6666
"prettier": "3.6.2",
67-
"rolldown": "1.0.0-beta.52",
67+
"rolldown": "https://pkg.pr.new/rolldown@ba1ff56",
6868
"rollup": "^4.43.0",
6969
"simple-git-hooks": "^2.13.1",
7070
"tsx": "^4.20.6",

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"lightningcss": "^1.30.2",
8888
"picomatch": "^4.0.3",
8989
"postcss": "^8.5.6",
90-
"rolldown": "1.0.0-beta.52",
90+
"rolldown": "https://pkg.pr.new/rolldown@ba1ff56",
9191
"tinyglobby": "^0.2.15"
9292
},
9393
"optionalDependencies": {

packages/vite/src/node/plugins/resolve.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ export function oxcResolvePlugin(
294294
external: options.external,
295295
noExternal: noExternal,
296296
dedupe: options.dedupe,
297+
disableCache:
298+
partialEnv.config.command === 'serve' &&
299+
// eslint-disable-next-line eqeqeq
300+
partialEnv.config.server.watch === null,
297301
legacyInconsistentCjsInterop: options.legacyInconsistentCjsInterop,
298302
finalizeBareSpecifier: !depsOptimizerEnabled
299303
? undefined

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"convert-source-map": "^2.0.0",
1111
"css-color-names": "^1.0.1",
1212
"kill-port": "^1.6.1",
13-
"rolldown": "1.0.0-beta.52"
13+
"rolldown": "https://pkg.pr.new/rolldown@ba1ff56"
1414
}
1515
}

0 commit comments

Comments
 (0)