Skip to content

Commit 6f60adc

Browse files
authored
refactor: remove custom resolveOptions from pre-alias plugin (#18041)
1 parent 2a391a7 commit 6f60adc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/vite/src/node/plugins/preAlias.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ export function preAliasPlugin(config: ResolvedConfig): Plugin {
5353
if (depsOptimizer.options.noDiscovery) {
5454
return
5555
}
56-
const resolved = await this.resolve(id, importer, {
57-
...options,
58-
custom: { ...options.custom, 'vite:pre-alias': true },
59-
})
56+
const resolved = await this.resolve(id, importer, options)
6057
if (resolved && !depsOptimizer.isOptimizedDepFile(resolved.id)) {
6158
const optimizeDeps = depsOptimizer.options
6259
const resolvedId = cleanUrl(resolved.id)

0 commit comments

Comments
 (0)