File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,21 @@ export async function resolvePlugins(
8282 } )
8383 : modulePreloadPolyfillPlugin ( config )
8484 : null ,
85- resolvePlugin (
86- {
87- root : config . root ,
88- isProduction : config . isProduction ,
89- isBuild,
90- packageCache : config . packageCache ,
91- asSrc : true ,
92- fsUtils : getFsUtils ( config ) ,
93- optimizeDeps : true ,
94- externalize : isBuild && ! ! config . build . ssr , // TODO: should we do this for all environments?
95- } ,
96- config . environments ,
97- ) ,
85+ enableNativePlugin
86+ ? null
87+ : resolvePlugin (
88+ {
89+ root : config . root ,
90+ isProduction : config . isProduction ,
91+ isBuild,
92+ packageCache : config . packageCache ,
93+ asSrc : true ,
94+ fsUtils : getFsUtils ( config ) ,
95+ optimizeDeps : true ,
96+ externalize : isBuild && ! ! config . build . ssr , // TODO: should we do this for all environments?
97+ } ,
98+ config . environments ,
99+ ) ,
98100 htmlInlineProxyPlugin ( config ) ,
99101 cssPlugin ( config ) ,
100102 config . esbuild !== false
You can’t perform that action at this time.
0 commit comments