We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a391a7 commit 6f60adcCopy full SHA for 6f60adc
packages/vite/src/node/plugins/preAlias.ts
@@ -53,10 +53,7 @@ export function preAliasPlugin(config: ResolvedConfig): Plugin {
53
if (depsOptimizer.options.noDiscovery) {
54
return
55
}
56
- const resolved = await this.resolve(id, importer, {
57
- ...options,
58
- custom: { ...options.custom, 'vite:pre-alias': true },
59
- })
+ const resolved = await this.resolve(id, importer, options)
60
if (resolved && !depsOptimizer.isOptimizedDepFile(resolved.id)) {
61
const optimizeDeps = depsOptimizer.options
62
const resolvedId = cleanUrl(resolved.id)
0 commit comments