Browserify es6 transform support.#44
Conversation
|
I'm not a Browserify user myself, so I trust this would help in case someone would wish to import the .vue component itself. Right now if you use the default import, you get an already transpiled es5 module. |
|
@shentao yeah, I imported component directly (to apply fix). This pull request makes no much sense in terms of using precompiled bundle. |
|
Fine with me! Merging! |
|
BTW. What kind of fix is it? Are you extending the component? Have you thought about using the mixins to create a similar component? I'm planning on creating few examples of such custom components like search with images (similar to the one in IMDb) or more complex dropdowns like the one on github when you hover over the watch option. |
|
@shentao I'm talking about this one.
Yeah, I plan to use them in future. Gonna get somewhat more complex formatting. Also thinking of modal onclick select. Code vise the library is very good so far, and it fits my objective/reactive paradigm (meaning all selects work with objects and going fine). For now, I just did an assortment of wrappers on your |
|
Sounds great! The idea is to create some more complex examples for everyone to use. The idea of selecting stuff is quite powerful. That’s why it was important to extract most of the code behind it into mixins to encourage others to play with it. :D |
Required to hint
browserifythat*.vuefiles should be babelified.Without it, you get plain es6, which is not digestible by many browsers.