diff --git a/src/plugin.ts b/src/plugin.ts index 703dc6a..8ddd5d7 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -342,7 +342,11 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin { ) } - include = computeGlobs(options.include, content?.raw.include, '**/*') + include = computeGlobs( + options.include, + [...ensureArray(content?.raw.include ?? []), ...ensureArray(content?.raw.files ?? [])], + '**/*' + ) exclude = computeGlobs(options.exclude, content?.raw.exclude, 'node_modules/**') filter = createFilter(include, exclude)