Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 18, 2024
1 parent 68a603d commit 0ac290f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/vite/src/node/server/environments/rolldown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ class RolldownEnvironment extends DevEnvironment {
// input is no use
const output = this.result.output[0]
const filepath = path.join(this.outDir, output.fileName)
// TODO: source map not applied when adding `?t=...`?
// return import(`${pathToFileURL(filepath)}`)
return import(`${pathToFileURL(filepath)}?t=${this.buildTimestamp}`)
}
}
Expand Down
2 changes: 1 addition & 1 deletion playground/rolldown-dev-ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig({
rolldownDev: {
hmr: true,
reactRefresh: true,
ssrModuleRunner: true,
ssrModuleRunner: !process.env['NO_MODULE_RUNNER'],
},
},
plugins: [
Expand Down

0 comments on commit 0ac290f

Please sign in to comment.