Skip to content

Commit

Permalink
Update public.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Nov 4, 2024
1 parent 7aa4d79 commit ef7c390
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .api/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14878,7 +14878,7 @@ declare module "@cocos/ccbuild" {
/**
* Locate modules using the Node resolution algorithm, for using third party modules in node_modules
*/
export function nodeResolve(options?: __private.___node_modules_rollup_plugin_node_resolve_types_index__RollupNodeResolveOptions): Plugin;
export function nodeResolve(options?: __private.___node_modules_cocos_rollup_plugin_node_resolve_types_index__RollupNodeResolveOptions): Plugin;
/**
* Convert CommonJS modules to ES6, so they can be included in a Rollup bundle
*/
Expand Down Expand Up @@ -16397,7 +16397,7 @@ declare module "@cocos/ccbuild" {
*/
namedExports?: boolean;
}
export interface ___node_modules_rollup_plugin_node_resolve_types_index__RollupNodeResolveOptions {
export interface ___node_modules_cocos_rollup_plugin_node_resolve_types_index__RollupNodeResolveOptions {
/**
* Additional conditions of the package.json exports field to match when resolving modules.
* By default, this plugin looks for the `'default', 'module', 'import']` conditions when resolving imports.
Expand Down Expand Up @@ -16460,9 +16460,11 @@ declare module "@cocos/ccbuild" {
/**
* 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
* names match patterns in the array.
Expand Down

0 comments on commit ef7c390

Please sign in to comment.