Skip to content

Commit 889b177

Browse files
skirtles-codeabdullah-wn
authored andcommitted
perf(runtime-core): use feature flag for call to resolveMergedOptions (vuejs#12163)
Reduce bundle size when using `__VUE_OPTIONS_API__: false`
1 parent 57c3cf5 commit 889b177

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
@@ -1008,7 +1008,7 @@ export function finishComponentSetup(
10081008
instance.vnode.props &&
10091009
instance.vnode.props['inline-template']) ||
10101010
Component.template ||
1011-
resolveMergedOptions(instance).template
1011+
(__FEATURE_OPTIONS_API__ && resolveMergedOptions(instance).template)
10121012
if (template) {
10131013
if (__DEV__) {
10141014
startMeasure(instance, `compile`)

0 commit comments

Comments
 (0)