File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/vite/src/node/server/environments
playground/rolldown-dev-ssr Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 : [
You can’t perform that action at this time.
0 commit comments