Webpack parses .vue to a js, so how does vue register this js as a component?

1.webpack parses .vue into a js, so how does vue register this js as a component
2. Whether this component is a global component or a local component
3. If it is a local component, how is it injected


1. First of all, parsing vue to js is
2. Implemented by vue-loader. You can register a local component or a global component, depending on your input processing
3 after the vue code import. How to inject it? you need to analyze the source code of vue


to see where you introduced it. If you import it in the outermost part, you can register it as global, and if you introduce it inside your own component, it will be a local component

.
Menu