@@ -606,6 +606,16 @@ export interface ResolvedConfig
606
606
ssr : ResolvedSSROptions
607
607
assetsInclude : ( file : string ) => boolean
608
608
logger : Logger
609
+ /**
610
+ * Create an internal resolver to be used in special scenarios, e.g.
611
+ * optimizer & handling css `@imports`.
612
+ *
613
+ * This API is deprecated. It only works for the client and ssr
614
+ * environments. The `aliasOnly` option is also not being used anymore.
615
+ * Plugins should move to `createIdResolver(environment.config)` instead.
616
+ *
617
+ * @deprecated Use `createIdResolver` from `vite` instead.
618
+ */
609
619
createResolver : ( options ?: Partial < InternalResolveOptions > ) => ResolveFn
610
620
optimizeDeps : DepOptimizationOptions
611
621
/** @internal */
@@ -1514,13 +1524,6 @@ export async function resolveConfig(
1514
1524
getSortedPlugins : undefined ! ,
1515
1525
getSortedPluginHooks : undefined ! ,
1516
1526
1517
- /**
1518
- * createResolver is deprecated. It only works for the client and ssr
1519
- * environments. The `aliasOnly` option is also not being used any more
1520
- * Plugins should move to createIdResolver(environment) instead.
1521
- * create an internal resolver to be used in special scenarios, e.g.
1522
- * optimizer & handling css @imports
1523
- */
1524
1527
createResolver ( options ) {
1525
1528
const resolve = createIdResolver ( this , options )
1526
1529
const clientEnvironment = new PartialEnvironment ( 'client' , this )
0 commit comments