Does Vue 3 support HTML-based single file components without compilation?

Viewed 479

I've been using HTML-based components with Vue 2 - and loading them dynamically, without a compile step. That is, files that look like this:

<style scoped>
</style>
<template>
  <div>empty component</div>
</template>
<script>
module.exports = {
    data: function () {
        return {
        };
    },
    async mounted(){
    },
    destroyed: function(){
    },
    methods: {
    },
    components: {
    },
}
</script>

and are served statically.

Does this approach still work with Vue 3?

2 Answers
Related