File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ import type { RollupPluginHooks } from './typeUtils'
93
93
import { buildOxcPlugin } from './plugins/oxc'
94
94
import type { ViteDevServer } from './server'
95
95
import { getHmrImplement } from './plugins/clientInjections'
96
- import { buildModuleGraphPlugin } from './server/buildModuleGraph'
96
+ // import { buildModuleGraphPlugin } from './server/buildModuleGraph'
97
97
98
98
export interface BuildEnvironmentOptions {
99
99
/**
@@ -648,9 +648,9 @@ async function buildEnvironment(
648
648
injectEnvironmentToHooks ( environment , chunkMetadataMap , p ) ,
649
649
)
650
650
651
- if ( server ) {
652
- plugins . push ( buildModuleGraphPlugin ( server ) )
653
- }
651
+ // if (server) {
652
+ // plugins.push(buildModuleGraphPlugin(server))
653
+ // }
654
654
655
655
const rollupOptions : RolldownOptions = {
656
656
// preserveEntrySignatures: ssr
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ import type { DevEnvironment } from './environment'
101
101
import { hostCheckMiddleware } from './middlewares/hostCheck'
102
102
import { memoryFilesMiddleware } from './middlewares/memoryFiles'
103
103
import { rejectInvalidRequestMiddleware } from './middlewares/rejectInvalidRequest'
104
- import { BuildModuleGraph } from './buildModuleGraph'
104
+ import type { BuildModuleGraph } from './buildModuleGraph'
105
105
106
106
export interface ServerOptions extends CommonServerOptions {
107
107
/**
@@ -532,12 +532,14 @@ export async function _createServer(
532
532
533
533
// Backward compatibility
534
534
535
- let moduleGraph = config . experimental . fullBundleMode
536
- ? new BuildModuleGraph ( )
537
- : new ModuleGraph ( {
538
- client : ( ) => environments . client . moduleGraph ,
539
- ssr : ( ) => environments . ssr . moduleGraph ,
540
- } )
535
+ let moduleGraph =
536
+ // config.experimental.fullBundleMode
537
+ // ? new BuildModuleGraph()
538
+ // :
539
+ new ModuleGraph ( {
540
+ client : ( ) => environments . client . moduleGraph ,
541
+ ssr : ( ) => environments . ssr . moduleGraph ,
542
+ } )
541
543
const pluginContainer = createPluginContainer ( environments )
542
544
543
545
const closeHttpServer = createServerCloseFn ( httpServer )
You can’t perform that action at this time.
0 commit comments