Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1aed3c3

Browse files
committed
fix: default value for compile time flags
refvitejs/vite-plugin-vue@ae9d948
1 parent735cb52 commit1aed3c3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎src/core/index.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,18 @@ export const plugin: UnpluginInstance<Options | undefined, false> =
266266
dedupe:config.build?.ssr ?[] :['vue'],
267267
},
268268
define:{
269-
__VUE_OPTIONS_API__:!!(
270-
(options.value.features?.optionsAPI??true)||
271-
config.define?.__VUE_OPTIONS_API__
272-
),
273-
__VUE_PROD_DEVTOOLS__:!!(
274-
options.value.features?.prodDevtools||
275-
config.define?.__VUE_PROD_DEVTOOLS__
276-
),
277-
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!!(
278-
options.value.features?.prodHydrationMismatchDetails||
279-
config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__
280-
),
269+
__VUE_OPTIONS_API__:
270+
options.value.features?.optionsAPI??
271+
config.define?.__VUE_OPTIONS_API__??
272+
true,
273+
__VUE_PROD_DEVTOOLS__:
274+
(options.value.features?.prodDevtools||
275+
config.define?.__VUE_PROD_DEVTOOLS__)??
276+
false,
277+
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:
278+
(options.value.features?.prodHydrationMismatchDetails||
279+
config.define?.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__)??
280+
false,
281281
},
282282
ssr:{
283283
//@ts-ignore -- config.legacy.buildSsrCjsExternalHeuristics will be removed in Vite 5

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp