Skip to content

Commit

Permalink
perf: ⚡️ use default resolver (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY authored and sapphi-red committed Nov 29, 2024
1 parent 155fe98 commit 34772a5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/vite/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,17 @@ export async function resolvePlugins(
})
: modulePreloadPolyfillPlugin(config)
: null,
resolvePlugin({
root: config.root,
isProduction: config.isProduction,
isBuild,
packageCache: config.packageCache,
asSrc: true,
optimizeDeps: true,
externalize: true,
}),
enableNativePlugin
? null
: resolvePlugin({
root: config.root,
isProduction: config.isProduction,
isBuild,
packageCache: config.packageCache,
asSrc: true,
optimizeDeps: true,
externalize: true,
}),
htmlInlineProxyPlugin(config),
cssPlugin(config),
config.esbuild !== false
Expand Down

0 comments on commit 34772a5

Please sign in to comment.