You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an external tool is using vue-template-compiler it would be very useful to have access to any attributes that are set on the template, script, or style sections. Custom blocks already do this, but the previously mentioned three don't.
In my use case I'm building a webpack loader to separate out component themes into a separate file.
Calling parseComponent on a file that contained the following...
<style theme="site" lang="stylus">
This would allow me to do processComponent(src).output.styles[0].attrs.theme in my tool. Without doing this I'm forced to do the parsing myself which seems unnecessary.
I would use custom blocks for this, but custom blocks don't have syntax highlighting in any editor that supports *.vue files.
The text was updated successfully, but these errors were encountered:
* Pass attributes to parseComponent
* Edited source in the right place, added test
* Back out changes made to the generated compiler build file
* Add a few more checks
When an external tool is using
vue-template-compiler
it would be very useful to have access to any attributes that are set on thetemplate
,script
, orstyle
sections. Custom blocks already do this, but the previously mentioned three don't.This specifically applies to the parseComponent method.
In my use case I'm building a webpack loader to separate out component themes into a separate file.
Calling parseComponent on a file that contained the following...
This would allow me to do
processComponent(src).output.styles[0].attrs.theme
in my tool. Without doing this I'm forced to do the parsing myself which seems unnecessary.I would use custom blocks for this, but custom blocks don't have syntax highlighting in any editor that supports *.vue files.
The text was updated successfully, but these errors were encountered: