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

Method run

packages/core/core/src/Parcel.js:166–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 async run(): Promise<BuildSuccessEvent> {
167 let startTime = Date.now();
168 if (!this.#initialized) {
169 await this._init();
170 }
171
172 let result = await this._build({startTime});
173
174 await this._end();
175
176 if (result.type === 'buildFailure') {
177 throw new BuildError(result.diagnostics);
178 }
179
180 return result;
181 }
182
183 async _end(): Promise<void> {
184 this.#initialized = false;

Callers 15

runFunction · 0.95
runFunction · 0.45
bundleFunction · 0.45
Parcel.test.jsFile · 0.45
getMockRunApiFunction · 0.45
watchMethod · 0.45
unsubscribeMethod · 0.45
_buildMethod · 0.45
runTransformFunction · 0.45
runValidateFunction · 0.45
runRequestMethod · 0.45

Calls 3

_initMethod · 0.95
_buildMethod · 0.95
_endMethod · 0.95

Tested by 1

getMockRunApiFunction · 0.36