Skip to content

Commit

Permalink
fix: type of PluginOptions['exclude'] (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengdaoshizhongxinyang authored Mar 24, 2023
1 parent a058850 commit 7b2d921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type PluginOptions = {
* Disable it by setting to `false`
*/
tsconfig?: string | false | undefined
} & Pick<SwcOptions, Exclude<keyof SwcOptions, 'filename' & 'include' & 'exclude'>>;
} & Omit<SwcOptions, 'filename' | 'include' | 'exclude'>;

const INCLUDE_REGEXP = /\.[mc]?[jt]sx?$/;
const EXCLUDE_REGEXP = /node_modules/;
Expand Down

0 comments on commit 7b2d921

Please sign in to comment.