@@ -42,12 +42,10 @@ class Dispatcher {
42
42
* @param {boolean } [config.useOwnWorker] - Flag indicating whether the constructed code inserts its own worker expression without the need to inject a provider.
43
43
* @param {string[]|undefined } [config.memoryFS] - Reference to dirs that contains files to be injected in worker memory.
44
44
* @param {object } [config.custom] - Custom Bundle configuration.
45
- * @param {string } buildId - Build ID
46
45
* @param {string } vulcanLibPath - Vulcan lib absolute path
47
46
*/
48
47
constructor (
49
48
config ,
50
- buildId = generateTimestamp ( ) ,
51
49
vulcanLibPath = getAbsoluteLibDirPath ( ) ,
52
50
) {
53
51
/* configuration */
@@ -61,7 +59,6 @@ class Dispatcher {
61
59
this . memoryFS = config . memoryFS ;
62
60
this . custom = config . custom ;
63
61
/* generate */
64
- this . buildId = buildId ;
65
62
this . vulcanLibPath = vulcanLibPath ;
66
63
}
67
64
@@ -255,7 +252,6 @@ class Dispatcher {
255
252
* @param {object } currentConfig.memoryFS - The current memoryFS.
256
253
* @param {object } config - The configuration object.
257
254
* @typedef {object } BuildConfig
258
- * @property {string } buildId - Identifier for the build.
259
255
* @property {boolean } useNodePolyfills - Indicates whether to use Node polyfills.
260
256
* @property {boolean } useOwnWorker - Indicates whether to use a custom worker.
261
257
* @property {* } localCustom - Custom configuration specific to the local environment.
@@ -265,7 +261,6 @@ class Dispatcher {
265
261
*/
266
262
static configureBuild ( currentConfig , config ) {
267
263
const {
268
- buildId,
269
264
useNodePolyfills,
270
265
useOwnWorker,
271
266
preset,
@@ -274,7 +269,6 @@ class Dispatcher {
274
269
} = currentConfig ;
275
270
const buildConfig = { ...config } ;
276
271
277
- buildConfig . buildId = buildId ;
278
272
// include config preset to priority
279
273
buildConfig . useNodePolyfills =
280
274
Dispatcher . checkBooleanValue ( useNodePolyfills ) ||
@@ -288,7 +282,7 @@ class Dispatcher {
288
282
buildConfig . memoryFS = memoryFS || buildConfig ?. memoryFS ;
289
283
290
284
const currentDir = process . cwd ( ) ;
291
- let tempEntryFile = `vulcan-${ buildId } .temp.` ;
285
+ let tempEntryFile = `vulcan-${ generateTimestamp ( ) } .temp.` ;
292
286
tempEntryFile += preset . name === 'typescript' ? 'ts' : 'js' ;
293
287
const tempBuilderEntryPath = join ( currentDir , tempEntryFile ) ;
294
288
@@ -307,9 +301,8 @@ class Dispatcher {
307
301
* @returns {Promise<object> } - A promise that resolves to an object containing the prebuild context.
308
302
*/
309
303
static async runPrebuild ( context , buildConfig ) {
310
- const { buildId , handler, prebuild } = context ;
304
+ const { handler, prebuild } = context ;
311
305
const prebuildContext = {
312
- buildId,
313
306
entry : buildConfig . entry ,
314
307
useNodePolyfills : buildConfig . useNodePolyfills ,
315
308
useOwnWorker : buildConfig . useOwnWorker ,
@@ -326,7 +319,7 @@ class Dispatcher {
326
319
} ;
327
320
feedback . prebuild . info ( Messages . build . info . prebuild_starting ) ;
328
321
await prebuild ( prebuildContext ) ;
329
- createDotEnvFile ( buildId , isWindows ) ;
322
+ createDotEnvFile ( isWindows ) ;
330
323
feedback . prebuild . success ( Messages . build . success . prebuild_succeeded ) ;
331
324
332
325
feedback . build . info ( Messages . build . info . vulcan_build_starting ) ;
@@ -401,7 +394,6 @@ class Dispatcher {
401
394
402
395
const buildConfig = Dispatcher . configureBuild (
403
396
{
404
- buildId : this . buildId ,
405
397
localCustom : this . custom ,
406
398
preset : this . preset ,
407
399
useNodePolyfills : this . useNodePolyfills ,
@@ -415,7 +407,7 @@ class Dispatcher {
415
407
writeFileSync ( buildConfig ?. entry , handler ) ;
416
408
417
409
await Dispatcher . runPrebuild (
418
- { buildId : this . buildId , handler, prebuild } ,
410
+ { handler, prebuild } ,
419
411
buildConfig ,
420
412
) ;
421
413
await Dispatcher . executeBuild ( this . entry , this . builder , buildConfig ) ;
0 commit comments