Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,16 @@ export interface ResolvedConfig
ssr: ResolvedSSROptions
assetsInclude: (file: string) => boolean
logger: Logger
/**
* Create an internal resolver to be used in special scenarios, e.g.
* optimizer & handling css `@imports`.
*
* This API is deprecated. It only works for the client and ssr
* environments. The `aliasOnly` option is also not being used anymore.
* Plugins should move to `createIdResolver(environment.config)` instead.
*
* @deprecated Use `createIdResolver` from `vite` instead.
*/
createResolver: (options?: Partial<InternalResolveOptions>) => ResolveFn
optimizeDeps: DepOptimizationOptions
/** @internal */
Expand Down Expand Up @@ -1514,13 +1524,6 @@ export async function resolveConfig(
getSortedPlugins: undefined!,
getSortedPluginHooks: undefined!,

/**
* createResolver is deprecated. It only works for the client and ssr
* environments. The `aliasOnly` option is also not being used any more
* Plugins should move to createIdResolver(environment) instead.
* create an internal resolver to be used in special scenarios, e.g.
* optimizer & handling css @imports
*/
createResolver(options) {
const resolve = createIdResolver(this, options)
const clientEnvironment = new PartialEnvironment('client', this)
Expand Down