Interface: ExternalsPresetDefinition
具名 externals 预设的定义。
Properties
extends?
optionalextends?:string|string[]
在当前预设之前应用的其他预设名称。
resolveExternals?
optionalresolveExternals?: (value:boolean|object,context:ExternalsPresetContext) =>Record<string,ExternalValue>
解析该预设提供的 external 请求映射。
Parameters
Returns
Record<string, ExternalValue>
resolveManagedAssets?
optionalresolveManagedAssets?: (value:boolean|object,context:ExternalsPresetContext) =>Record<string,string> |Map<string,string>
解析该预设提供的托管 bundle 资源。
Parameters
Returns
Record<string, string> | Map<string, string>