diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index c7b2de69c16a63..47b72715f8fd00 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -836,7 +836,7 @@ export async function resolveConfig( experimental: { importGlobRestoreExtension: false, hmrPartialAccept: false, - enableNativePlugin: false, + enableNativePlugin: true, ...config.experimental, }, getSortedPlugins: undefined!, diff --git a/packages/vite/src/node/plugins/index.ts b/packages/vite/src/node/plugins/index.ts index a2fe065554c01f..b19fa98c51f165 100644 --- a/packages/vite/src/node/plugins/index.ts +++ b/packages/vite/src/node/plugins/index.ts @@ -59,7 +59,7 @@ export async function resolvePlugins( isBuild ? metadataPlugin() : null, !isWorker ? watchPackageDataPlugin(config.packageCache) : null, preAliasPlugin(config), - (enableNativePlugin && isBuild) + (false && isBuild) ? nativeAliasPlugin({ entries: config.resolve.alias.map((item) => { return { @@ -100,7 +100,7 @@ export async function resolvePlugins( ? esbuildPlugin(config) : esbuildPlugin(config) : null, - enableNativePlugin + false ? nativeJsonPlugin({ stringify: config.json?.stringify, isBuild,