Skip to content

Commit 0ac290f

Browse files
committed
chore: comment
1 parent 68a603d commit 0ac290f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/vite/src/node/server/environments/rolldown.ts

+2
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ class RolldownEnvironment extends DevEnvironment {
298298
// input is no use
299299
const output = this.result.output[0]
300300
const filepath = path.join(this.outDir, output.fileName)
301+
// TODO: source map not applied when adding `?t=...`?
302+
// return import(`${pathToFileURL(filepath)}`)
301303
return import(`${pathToFileURL(filepath)}?t=${this.buildTimestamp}`)
302304
}
303305
}

playground/rolldown-dev-ssr/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineConfig({
3030
rolldownDev: {
3131
hmr: true,
3232
reactRefresh: true,
33-
ssrModuleRunner: true,
33+
ssrModuleRunner: !process.env['NO_MODULE_RUNNER'],
3434
},
3535
},
3636
plugins: [

0 commit comments

Comments
 (0)