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
feat(templates): allow selecting the compiler per <template> #1645
base: next
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change the option format to use Babel config style options:
options: {
compilerOptions: { /* options for default compiler */ },
customCompilers: {
vugel: [require('vugel'), { /* vugel compiler options */ }],
foobar: require('foobar-compiler') // shorthand no options
}
}
This is to allow multiple renderers to be used within the same Vue app.
781501f
to
85e9356
Compare
@yyx990803 could you maybe take another look at this? Thanks! |
I'm looking into making a custom renderer for TroisJS and am running into a similar issue with needing to use multiple renderers - would love a feature like this to combine HTML and ThreeJS components easily! |
Is this still on the roadmap? |
This is to allow multiple renderers to be used within the same Vue app. In particular, I am building a WebGL/Canvas2d renderer for the vue3 api. It enables the developer to write a part of the app in HTML DOM, and another part in WebGL.
Example usage:
webpack.config.js:
Comp.vue: