-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Feature request: Vue components #5
Comments
Yep, totally want to do this. May require some changes to how the internals work to allow an asset to have multiple sub-assets I guess (e.g. script, style, etc.). I'm working on how this might work and will update this issue. |
Just to remind that subsections can be js, ts, pug, html, css, scss, stylus. |
@sdras Do you know anyone in the Vue community who might be willing to help with this? |
I'm not sure their availability, but @kazupon, @Jinjiang and @Alex-Sokolov are major contributors to vue-loader, so they might be interested/the best people to talk to. |
In the roadmap of vue project, vue-componet-compiler work in progress. The goal of this project support to a bundle-agnostic package so that it can be reused in all tooling in the ecosystem. You might be asked @znck and @eddyerburgh about it than I do. |
I would suggest you use vue-component-compiler, this would keep parcel at feature parity with officially maintained build utils like vue-loader etc. vuejs/vue-component-compiler#28 is awaiting final design review. The example implementation covers everything discussed in the thread, you should join above design thread to express your concerns. |
I could help build this in the new year |
@shawwn Are you also working on this? |
how does @webpack implement this |
@zzz6519003 There's a vue-loader maintained by Vue. We're planning to add support for Vue SFCs to parcel core. |
@devongovett Hey! I need to understand how parcel works to make vue-component-compiler work with it. In order to compile
The question: |
@eddyerburgh i have time now, i can probb figure that out, and make one XD |
@zzz6519003 join parcel slack, we can discuss implementing in the vue channel |
Basically, parcel supports |
@tom76kimo we can't use babel alone to compile Vue single file components(SFCs), since they are not valid JavaScript/ JSX and can't be parsed by babylon. We either need to add support to parcel core, or create a parcel plugin, like https://github.com/lc60005457/parcel-plugin-vue. |
@eddyerburgh I see. Thanks. |
Soon! Come join us in Slack for status updates :)
…On Thu, Jan 4, 2018 at 3:50 PM, scriptPilot ***@***.***> wrote:
Looking forward to Vue support :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADo8FXvIOUGU13YUY6TVyYjAObPp0onks5tHUe0gaJpZM4Q2vn_>
.
|
Update: vue-component-compiler is available for dev testing. npm add https://github.com/vuejs/vue-component-compiler Waiting for feedback. |
Guys, while the devs here keep working on improving parcel support for Vue, if you want zero configuration, you should also check out vue-cli 3. It provides zero config for VueJs at its best. |
@pbastowski That's perfect timing cause I just bailed on trying to get Vue working with parcel bundler. Thanks! |
Is there any planning to release the Vue support? |
@shawwn Any progress? |
I suggest going with POI or vue-cli if proper Vue support is needed. Those are projects strictly targeted at Vue developers. |
Mhm, what a pity in my point of view ... Vue.js has a fast growing community and should be more essentiell in Parcel than others already included ... like json5 eg. So, what is the difficulty, how can we support? |
Anyone who feels like it's taking too long, feel free to dive into the branch started by Shawwn, it should be near finished, except for some cleanup and points probably already mentioned in here as response to his example. https://github.com/parcel-bundler/parcel/tree/vue cc @scriptPilot |
@DeMoorJasper Idk why it wasn't merged back in January. You're only digging yourself deeper in technical debt. |
I believe @shawwn mentioned on Slack that Parcel needed Pug/Jade support before he could continue with this branch. It is being added in #769. For those wanting to use the latest Parcel version, I'm using https://github.com/BoltDoggy/parcel-plugin-vue in one of my projects and everything seem to work fine. No issues so far, apart from the fact it has to inject CSS using JS, instead of compiling into CSS files. |
Actually I have published a version based on Vue branch with removal of adding unnecessary dependencies on npm, called parcel-bundler-vue. Try it if you need. |
Is it correct that at the moment the Vue branch doesn't create a correct build? I tried opening shawwn's proof of concept (which still needed |
Current Vue work is on #1052. It is very much WIP, but feel free to try it out. The more apps we test it against the better. |
#1052 is now merged, and will be released as part of v1.7.0 later this week! 🎉 |
Is it just me, or due CSS modules not work as expected? Like in this case for example: // box.vue
<style module>
.box {
border: 1px solid black;
}
</style>
// other_box.vue
<style module>
.box {
background-color: gray;
}
</style> It just doesn't work. Am I missing something or is this just not implemented yet? |
@fraf I am guessing it doesn't work since it looks like modules are a |
@frarf If you'd like to see this feature added, probably best to open up a seperate issue. |
Anyone knows if relative URLs of images in the So far everything is working for me except that. More info in this issue. |
@PierBover does it already support the |
@Mouvedia apparently yes, but in the case of URLs of images in CSS of Vue components it doesn't seem to have any effect. |
@frarf I'm running into a similar problem that styles just don't work, for example the following produces no CSS in the browser.
There are no errors or anything else, and everything else about the vue components works as expected. Did you figure out a workaround or more helpfully how to debug this sort of thing? I'd love to investigate what's going on and contribute back a fix (if there is one), but I'm not even sure where to start... |
like #2199 |
Fix tests Approved-by: Maia Teegarden
Live reexports fix Approved-by: Maia Teegarden
Using vue-component-compiler.
The text was updated successfully, but these errors were encountered: