Multi-component Files #744
matthewbecker1990
started this conversation in
General
Replies: 1 comment 1 reply
-
You may want to checkout this project. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
Lately I have been seeing a lot of discussion online, in particular from those coming from React, about how its difficult or not optimal in their situation to have to put smaller components into their own files. The discussion is that if its a small component that is only ever going to be used in one component, then it makes no sense to clutter the file system with tiny repeatable components.
I wanted to get some input whether the following is a good idea, if the solution already exists, or if I'm just being stupid.
My idea is adding the ability to define multiple
<template>
&<script>
tags in a document and tag them to which component they belong to, and then during build time, in the background these are extracted into their own files so the developer never has to see them.Example
And this file would compile to:
Would love to hear your thoughts!
Thanks,
Matt B
Beta Was this translation helpful? Give feedback.
All reactions