Skip to content

Set render functions in Constructor's extendOptions #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Set render functions in Constructor's extendOptions #433

wants to merge 1 commit into from

Conversation

HerringtonDarkholme
Copy link
Member

@HerringtonDarkholme HerringtonDarkholme commented Oct 29, 2016

Fix #432 and vuejs/vue#4052

When users have Vue.mixin(globalMixin), vue-loader will fail for constructor style export because Ctor.options is replaced and redner function lost.

In vue's core code. resolveCtorOptions will compute the options for a consturctor by merging extendOptions and SuperOptions. Vue.mixin will reset SuperOptions and constructor's option is replaced. So render function which vue-loader set is lost. However, if extendOptions has render, newly created options will preserve render function.

@yyx990803
Copy link
Member

Thanks, I think it's better to fix it in core so that vue-loader's bundle output will be smaller.

See vuejs/vue@09f9783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

render function is lost when used in Constructor style
2 participants
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