Skip to content

Commit

Permalink
perf(runtime-core): use feature flag for call to resolveMergedOptions (
Browse files Browse the repository at this point in the history
…#12163)

Reduce bundle size when using `__VUE_OPTIONS_API__: false`
  • Loading branch information
skirtles-code authored Oct 14, 2024
1 parent 770ea67 commit 1755ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ export function finishComponentSetup(
instance.vnode.props &&
instance.vnode.props['inline-template']) ||
Component.template ||
resolveMergedOptions(instance).template
(__FEATURE_OPTIONS_API__ && resolveMergedOptions(instance).template)
if (template) {
if (__DEV__) {
startMeasure(instance, `compile`)
Expand Down

0 comments on commit 1755ac0

Please sign in to comment.