Skip to content

Commit 2c52374

Browse files
committed
Fixes bundleCombinedWorkers function
1 parent 6864d01 commit 2c52374

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function rollupWarning(message) {
346346
*/
347347
export async function bundleCombinedWorkers(options) {
348348
// Bundle non ES6 workers.
349-
const workers = await globby(["Source/Workers/**"]);
349+
const workers = await globby(["packages/engine/Source/Workers/**"]);
350350
const workerConfig = defaultESBuildOptions();
351351
workerConfig.bundle = false;
352352
workerConfig.banner = {
@@ -355,17 +355,20 @@ export async function bundleCombinedWorkers(options) {
355355
workerConfig.entryPoints = workers;
356356
workerConfig.outdir = options.path;
357357
workerConfig.minify = options.minify;
358+
workerConfig.outbase = "packages/engine/Source";
358359
await esbuild.build(workerConfig);
359360

360361
// Copy ThirdParty workers
361-
const thirdPartyWorkers = await globby(["Source/ThirdParty/Workers/**"]);
362+
const thirdPartyWorkers = await globby([
363+
"packages/engine/Source/ThirdParty/Workers/**",
364+
]);
362365

363366
const thirdPartyWorkerConfig = defaultESBuildOptions();
364367
thirdPartyWorkerConfig.bundle = false;
365368
thirdPartyWorkerConfig.entryPoints = thirdPartyWorkers;
366369
thirdPartyWorkerConfig.outdir = options.path;
367370
thirdPartyWorkerConfig.minify = options.minify;
368-
thirdPartyWorkerConfig.outbase = "Source";
371+
thirdPartyWorkerConfig.outbase = "packages/engine/Source";
369372
await esbuild.build(thirdPartyWorkerConfig);
370373

371374
// Bundle ES6 workers.

0 commit comments

Comments
 (0)