Currently, I am utilizing Webpack 2
to import components using a special syntax with require
.
Among the over 100 components available, only around 5-10 are used at any given time. These components share some common functionality such as props and lifecycle hooks.
Below is an example of the code structure:
// app.js
...
Vue.component("foo", resolve => {
require(['./components/foo.vue'], resolve);
});
...
I am trying to apply a mixin to an async component, but I am unsure of how to accomplish this. Applying a Global mixin
would affect all components, which is not what I want.
After researching, I came across a now closed feature request, but it did not provide a solution to my specific problem.