Skip to content

Commit

Permalink
fix: should parse files option into include
Browse files Browse the repository at this point in the history
fix #337
  • Loading branch information
qmhc committed Jul 18, 2024
1 parent 1c3c7dc commit b219453
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b219453

Please sign in to comment.