We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8038af6 commit 7ff4087Copy full SHA for 7ff4087
src/plugin/index.ts
@@ -1,3 +1,4 @@
1
+import { defineAsyncComponent } from 'vue';
2
import type { App } from 'vue';
3
import type { GlobalOptions } from './types';
4
import './styles/main.scss';
@@ -10,7 +11,7 @@ export function createVColorField(options: GlobalOptions = {}) {
10
11
const install = (app: App) => {
12
app.provide(globalOptions, options);
13
- app.component('VColorField', VColorField);
14
+ app.component('VColorField', defineAsyncComponent(() => import('./VColorField.vue')));
15
};
16
17
return {
0 commit comments