Skip to content

Commit

Permalink
fix: use quiet to override emitError and emitWarning
Browse files Browse the repository at this point in the history
- quiet is essentially syntactic sugar for setting emitError to true
and emitWarning to false

fix #19
  • Loading branch information
Michael Liu committed Jan 23, 2021
1 parent 6656fad commit d64f75d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function getOptions(pluginOptions) {
const options = {
extensions: 'js',
...pluginOptions,
...(pluginOptions.quiet ? { emitError: true, emitWarning: false } : {}),
};

// @ts-ignore
Expand Down

0 comments on commit d64f75d

Please sign in to comment.