Skip to content

Commit 8704cec

Browse files
Removed defineAsyncComponent
1 parent ff5f274 commit 8704cec

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/plugin/index.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
defineAsyncComponent,
3-
} from 'vue';
4-
import type {
5-
App,
6-
} from 'vue';
1+
import type { App } from 'vue';
72
import type { Props } from './types';
83
import './styles/cssVariables.css';
94
import './styles/utilities.scss';
@@ -17,8 +12,8 @@ export const codeBlockOptions = Symbol();
1712
export function createVCodeBlock(options: Props = {}) {
1813
return (app: App) => {
1914
app.provide(codeBlockOptions, options);
20-
app.component('CodeBlock', defineAsyncComponent(() => import('./VCodeBlock.vue')));
21-
app.component('VCodeBlock', defineAsyncComponent(() => import('./VCodeBlock.vue')));
15+
app.component('CodeBlock', VCodeBlock);
16+
app.component('VCodeBlock', VCodeBlock);
2217
};
2318
}
2419

0 commit comments

Comments
 (0)