MCPcopy
hub / github.com/parcel-bundler/parcel / bundle

Function bundle

packages/core/test-utils/src/utils.js:232–237  ·  view source on GitHub ↗
(
  entries: FilePath | Array<FilePath>,
  opts?: InitialParcelOptions,
)

Source from the content-addressed store, hash-verified

230}
231
232export async function bundle(
233 entries: FilePath | Array<FilePath>,
234 opts?: InitialParcelOptions,
235): Promise<BundleGraph<PackagedBundle>> {
236 return (await bundler(entries, opts).run()).bundleGraph;
237}
238
239export function getNextBuild(b: Parcel): Promise<BuildEvent> {
240 return new Promise((resolve, reject) => {

Callers 15

bundleHtmlFunction · 0.90
bundleJsFunction · 0.90
cache.jsFile · 0.90
mdx.jsFile · 0.90
plugin.jsFile · 0.90
assertAssetFunction · 0.90
scope-hoisting.jsFile · 0.90
rust.jsFile · 0.90
vue.jsFile · 0.90
webextension.jsFile · 0.90
BundleGraph.jsFile · 0.90

Calls 2

bundlerFunction · 0.70
runMethod · 0.45

Tested by 1

testFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…