Skip to content

Commit

Permalink
refactor: remove custom resolveOptions from pre-alias plugin (#18041)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Sep 9, 2024
1 parent 2a391a7 commit 6f60adc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/vite/src/node/plugins/preAlias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ export function preAliasPlugin(config: ResolvedConfig): Plugin {
if (depsOptimizer.options.noDiscovery) {
return
}
const resolved = await this.resolve(id, importer, {
...options,
custom: { ...options.custom, 'vite:pre-alias': true },
})
const resolved = await this.resolve(id, importer, options)
if (resolved && !depsOptimizer.isOptimizedDepFile(resolved.id)) {
const optimizeDeps = depsOptimizer.options
const resolvedId = cleanUrl(resolved.id)
Expand Down

0 comments on commit 6f60adc

Please sign in to comment.