Skip to content

Commit eb8f884

Browse files
committed
fix: build
1 parent 84cc6cd commit eb8f884

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export default {
33
{ input: 'src/module.ts', name: 'module' },
44
{ input: 'src/runtime/index.ts', name: 'runtime' }
55
],
6-
externals: ['#build', '#build/component-meta.mjs'],
6+
externals: ['#build', '#build/component-meta.mjs', '@nuxt/schema'],
77
declaration: true
88
}

src/module.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { addTemplate, defineNuxtModule, resolveModule } from '@nuxt/kit'
22
import { parse } from 'vue-docgen-api'
3-
import type { Nuxt } from '@nuxt/kit'
43
import { runtimeDir } from './dirs'
54
import template from './template'
65

@@ -10,7 +9,7 @@ export interface Options {
109

1110
export default defineNuxtModule<Options>({
1211
configKey: 'componentMeta',
13-
setup({ parserOptions }, nuxt: Nuxt) {
12+
setup({ parserOptions }, nuxt) {
1413
nuxt.options.alias['#component-meta'] = runtimeDir
1514
nuxt.hook('components:extend', async (components: any[]) => {
1615
const _components = await Promise.all(

0 commit comments

Comments
 (0)