Skip to content

Question about extracting SFC-processing #24

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
dennisreimann opened this issue Nov 5, 2017 · 2 comments
Closed

Question about extracting SFC-processing #24

dennisreimann opened this issue Nov 5, 2017 · 2 comments

Comments

@dennisreimann
Copy link

dennisreimann commented Nov 5, 2017

I am wondering if it would make sense to extract the vue file processing into a separate module, so that other tools could benefit from the existing solution in vue-jest as well. Right now there a several different modules handling the parsed output from vue-template-compiler (vue-jest, vue-loader, vueify or jest-vue-preprocessor).
Background: I am currently working on a project that needs to consume vue files independent from a concrete implementation (like processing via vue-loader or vueify) and came here, because vue-jest does exactly what I would need. But of course vue-jest does not expose the processing functionality, because it serves another purpose.

Does this make sense?

@eddyerburgh
Copy link
Member

Yes, it makes perfect sense 😀!

We're already doing this in the vue-component-compiler —vuejs/vue-component-compiler#29

The PR is nearly ready to be merged. We're waiting for a review from Evan. I think it will be a month or two before it's released.

I won't be doing this from vue-jest itself, so I'm closing the issue.

@dennisreimann
Copy link
Author

Nice, thanks for the feedback! 🍰

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

No branches or pull requests

2 participants