Skip to content

Commit

Permalink
update plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 11, 2024
1 parent 4a3bcd3 commit 06c18e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ export async function resolveConfig(
experimental: {
importGlobRestoreExtension: false,
hmrPartialAccept: false,
enableNativePlugin: false,
enableNativePlugin: true,
...config.experimental,
},
getSortedPlugins: undefined!,
Expand Down
4 changes: 2 additions & 2 deletions packages/vite/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -100,7 +100,7 @@ export async function resolvePlugins(
? esbuildPlugin(config)
: esbuildPlugin(config)
: null,
enableNativePlugin
false
? nativeJsonPlugin({
stringify: config.json?.stringify,
isBuild,
Expand Down

0 comments on commit 06c18e2

Please sign in to comment.