Skip to content

Pass attributes to parseComponent (addresses #4914)#4925

Merged
yyx990803 merged 4 commits intovuejs:devfrom
just-be-dev:4914
Feb 14, 2017
Merged

Pass attributes to parseComponent (addresses #4914)#4925
yyx990803 merged 4 commits intovuejs:devfrom
just-be-dev:4914

Conversation

@just-be-dev
Copy link
Copy Markdown
Contributor

@just-be-dev just-be-dev commented Feb 14, 2017

See #4914

This PR passes attributes down to parseComponent so that build tools layered on top of vue-template-compiler can have access to that information without having to parse the src to retrieve it.

@just-be-dev
Copy link
Copy Markdown
Contributor Author

Tests are incoming.

@yyx990803
Copy link
Copy Markdown
Member

The build.js is auto-genarated before publishing the package. Can you apply the change in src/sfc/parse.js instead?

@just-be-dev
Copy link
Copy Markdown
Contributor Author

Ahhh! I can't believe I missed that. >_> Sorry about that, yeah, I absolutely will.

@just-be-dev
Copy link
Copy Markdown
Contributor Author

@yyx990803 do you want me to undo the changes I made to build.js?

@yyx990803
Copy link
Copy Markdown
Member

yes please

@just-be-dev
Copy link
Copy Markdown
Contributor Author

just-be-dev commented Feb 14, 2017

done. Also, there's only one test... I can certainly add more if desired.

@just-be-dev
Copy link
Copy Markdown
Contributor Author

just-be-dev commented Feb 14, 2017

I added an extra check just for good measure. It's ready for review now.

@yyx990803 yyx990803 merged commit 97d36bc into vuejs:dev Feb 14, 2017
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.

3 participants