Home > @plasmicapp/loader-core > getBundleSubset
getBundleSubset() function
Get sub-bundle including only modules that are reachable from names
.
Signature:
export declare function getBundleSubset(bundle: LoaderBundleOutput, names: string[], opts?: {
target?: 'browser' | 'server';
}): LoaderBundleOutput;
Parameters
Parameter | Type | Description |
---|---|---|
bundle | LoaderBundleOutput | |
names | string[] | |
opts | { target?: 'browser' | 'server'; } | (Optional) |
Returns: