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 Sep 18, 2024
1 parent bb33be8 commit 2087832
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/vite/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,21 @@ export async function resolvePlugins(
})
: modulePreloadPolyfillPlugin(config)
: null,
resolvePlugin(
{
root: config.root,
isProduction: config.isProduction,
isBuild,
packageCache: config.packageCache,
asSrc: true,
fsUtils: getFsUtils(config),
optimizeDeps: true,
externalize: isBuild && !!config.build.ssr, // TODO: should we do this for all environments?
},
config.environments,
),
enableNativePlugin
? null
: resolvePlugin(
{
root: config.root,
isProduction: config.isProduction,
isBuild,
packageCache: config.packageCache,
asSrc: true,
fsUtils: getFsUtils(config),
optimizeDeps: true,
externalize: isBuild && !!config.build.ssr, // TODO: should we do this for all environments?
},
config.environments,
),
htmlInlineProxyPlugin(config),
cssPlugin(config),
config.esbuild !== false
Expand Down

0 comments on commit 2087832

Please sign in to comment.