Interface CodePathOptions

Options for controlling what gets returned by [computeCodePaths].

interface CodePathOptions {
    extraExcludePackages?: string[];
    extraIncludePackages?: string[];
    extraIncludePaths?: string[];
    logResource?: Resource;
}

Properties

extraExcludePackages?: string[]

Packages to explicitly exclude from the Assets for a serialized closure. This can be used when clients want to trim down the size of a closure, and they know that some package won't ever actually be needed at runtime, but is still a dependency of some package that is being used at runtime.

extraIncludePackages?: string[]

Extra packages to include when producing the Assets for a serialized closure. This can be useful if the packages are acquired in a way that the serialization code does not understand. For example, if there was some sort of module that was pulled in based off of a computed string.

extraIncludePaths?: string[]

Local file/directory paths that we always want to include when producing the Assets to be included for a serialized closure.

logResource?: Resource

The resource to log any errors we encounter against.

Generated using TypeDoc