Skip to content

Commit

Permalink
fix: take unused error when using setup-script
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Nov 10, 2021
1 parent 666ca09 commit c4145b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugin.ts
Expand Up @@ -157,6 +157,9 @@ export function dtsPlugin(options: PluginOptions = {}): Plugin {
outDir: '.',
// #27 declarationDir option will make no declaration file generated
declarationDir: null,
// compile vue setup script will generate expose parameter for setup function
// although user never use it which will get an unexpected unused error
noUnusedParameters: false,
declaration: true,
noEmit: false,
emitDeclarationOnly: true
Expand Down

0 comments on commit c4145b7

Please sign in to comment.