There might be a bit of trickery needed to make this happen, but currently a .md
file like this:
# Example
<example-import></example-import>
<script>
import ExampleImport from '@/components/ExampleImport.vue';
export default {
functional: true,
components: {
ExampleImport,
},
};
</script>
Will throw [Vue warn]: Error in render: "TypeError: _vm is undefined"
. This also happens when in .vue
files, you define both a script
and a template
tag, instead of either/or. Would it be possible to see if someone has set functional: true
on their component and inlining the template if so? This could provide quite a significant speed-up in rendering stateless components.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too