We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5f274 commit 8704cecCopy full SHA for 8704cec
src/plugin/index.ts
@@ -1,9 +1,4 @@
1
-import {
2
- defineAsyncComponent,
3
-} from 'vue';
4
-import type {
5
- App,
6
+import type { App } from 'vue';
7
import type { Props } from './types';
8
import './styles/cssVariables.css';
9
import './styles/utilities.scss';
@@ -17,8 +12,8 @@ export const codeBlockOptions = Symbol();
17
12
export function createVCodeBlock(options: Props = {}) {
18
13
return (app: App) => {
19
14
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);
22
};
23
}
24
0 commit comments