Skip to content

Commit

Permalink
feat: add types in dts
Browse files Browse the repository at this point in the history
  • Loading branch information
younggglcy committed Mar 17, 2024
1 parent acb8db1 commit c71e6c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/node-resolve/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ export interface RollupNodeResolveOptions {
/**
* If `true`, the plugin will prefer built-in modules (e.g. `fs`, `path`). If `false`,
* the plugin will look for locally installed modules of the same name.
*
* If a function is provided, it will be called to determine whether to prefer built-ins.
* @default true
*/
preferBuiltins?: boolean;
preferBuiltins?: boolean | ((module: string) => boolean);

/**
* An `Array` which instructs the plugin to limit module resolution to those whose
Expand Down

0 comments on commit c71e6c7

Please sign in to comment.