Skip to content

Commit 1755ac0

Browse files
perf(runtime-core): use feature flag for call to resolveMergedOptions (#12163)
Reduce bundle size when using `__VUE_OPTIONS_API__: false`
1 parent 770ea67 commit 1755ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ export function finishComponentSetup(
10061006
instance.vnode.props &&
10071007
instance.vnode.props['inline-template']) ||
10081008
Component.template ||
1009-
resolveMergedOptions(instance).template
1009+
(__FEATURE_OPTIONS_API__ && resolveMergedOptions(instance).template)
10101010
if (template) {
10111011
if (__DEV__) {
10121012
startMeasure(instance, `compile`)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy