Properties
data
data: { browser: string | Record<string, string | false>; dependencies: Record<string, string>; exports: string | string[] | Record<string, any>; imports: Record<string, any>; main: string; module: string; name: string; type: string; version: string; [
field:
string]
: any; } Type declaration
[field: string]: any
browser: string | Record<string, string | false>
dependencies: Record<string, string>
exports: string | string[] | Record<string, any>
imports: Record<string, any>
main: string
module: string
name: string
type: string
version: string
dir
dir: string
getResolvedCache
getResolvedCache: ((key, targetWeb) => undefined | string)
Type declaration
- (key, targetWeb): undefined | string
Parameters
- key: string
- targetWeb: boolean
Returns undefined | string
hasSideEffects
hasSideEffects: ((id) => null | boolean | "no-treeshake")
Type declaration
- (id): null | boolean | "no-treeshake"
Returns null | boolean | "no-treeshake"
nodeResolvedImports
nodeResolvedImports: Record<string, undefined | string> setResolvedCache
setResolvedCache: ((key, entry, targetWeb) => void)
Type declaration
- (key, entry, targetWeb): void
Parameters
- key: string
- entry: string
- targetWeb: boolean
Returns void
webResolvedImports
webResolvedImports: Record<string, undefined | string>