File tree Expand file tree Collapse file tree 5 files changed +0
-37
lines changed Expand file tree Collapse file tree 5 files changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,6 @@ export interface ModuleRunnerHmr {
8383}
8484
8585export interface ModuleRunnerOptions {
86- /**
87- * Root of the project
88- * @deprecated not used and to be removed
89- */
90- root ?: string
9186 /**
9287 * A set of methods to communicate with the server.
9388 */
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import {
3535} from '../utils'
3636import { optimizedDepInfoFromFile , optimizedDepInfoFromId } from '../optimizer'
3737import type { DepsOptimizer } from '../optimizer'
38- import type { SSROptions } from '..'
3938import type { PackageCache , PackageData } from '../packages'
4039import { canExternalizeFile , shouldExternalize } from '../external'
4140import {
@@ -124,8 +123,6 @@ interface ResolvePluginOptions {
124123 tryPrefix ?: string
125124 preferRelative ?: boolean
126125 isRequire ?: boolean
127- /** @deprecated */
128- isFromTsImporter ?: boolean
129126 // True when resolving during the scan phase to discover dependencies
130127 scan ?: boolean
131128
@@ -142,31 +139,12 @@ interface ResolvePluginOptions {
142139 */
143140 externalize ?: boolean
144141
145- /**
146- * Previous deps optimizer logic
147- * @internal
148- * @deprecated
149- */
150- getDepsOptimizer ?: ( ssr : boolean ) => DepsOptimizer | undefined
151-
152- /**
153- * Externalize logic for SSR builds
154- * @internal
155- * @deprecated
156- */
157- shouldExternalize ?: ( id : string , importer ?: string ) => boolean | undefined
158-
159142 /**
160143 * Set by createResolver, we only care about the resolved id. moduleSideEffects
161144 * and other fields are discarded so we can avoid computing them.
162145 * @internal
163146 */
164147 idOnly ?: boolean
165-
166- /**
167- * @deprecated environment.config are used instead
168- */
169- ssrConfig ?: SSROptions
170148}
171149
172150export interface InternalResolveOptions
Original file line number Diff line number Diff line change @@ -388,13 +388,6 @@ export interface ViteDevServer {
388388 * @internal
389389 */
390390 _setInternalServer ( server : ViteDevServer ) : void
391- /**
392- * Left for backward compatibility with VitePress, HMR may not work in some cases
393- * but the there will not be a hard error.
394- * @internal
395- * @deprecated this map is not used anymore
396- */
397- _importGlobMap : Map < string , { affirmed : string [ ] ; negated : string [ ] } [ ] >
398391 /**
399392 * @internal
400393 */
@@ -746,7 +739,6 @@ export async function _createServer(
746739 // server instance after a restart
747740 server = _server
748741 } ,
749- _importGlobMap : new Map ( ) ,
750742 _restartPromise : null ,
751743 _forceOptimizeOnRestart : false ,
752744 _shortcutsOptions : undefined ,
Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ export function createServerModuleRunner(
126126 return new ModuleRunner (
127127 {
128128 ...options ,
129- root : environment . config . root ,
130129 transport : createServerModuleRunnerTransport ( {
131130 channel : environment . hot as NormalizedServerHotChannel ,
132131 } ) ,
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ class SSRCompatModuleRunner extends ModuleRunner {
6666 constructor ( private environment : DevEnvironment ) {
6767 super (
6868 {
69- root : environment . config . root ,
7069 transport : createServerModuleRunnerTransport ( {
7170 channel : environment . hot as NormalizedServerHotChannel ,
7271 } ) ,
You can’t perform that action at this time.
0 commit comments