Skip to content

Commit b3b42f8

Browse files
committed
chore: change for latest native json plugin
1 parent 618dcb1 commit b3b42f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/vite/src/node/plugins/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,7 @@ export async function resolvePlugins(
127127
: null,
128128
enableNativePlugin
129129
? nativeJsonPlugin({
130-
// TODO: support `json.stringify: 'auto'` and `json.namedExports`
131-
stringify:
132-
!config.json?.stringify || config.json.stringify === 'auto'
133-
? false
134-
: config.json?.stringify,
130+
...config.json,
135131
isBuild,
136132
})
137133
: jsonPlugin(config.json, isBuild),

0 commit comments

Comments
 (0)