Skip to content

Commit 6864d01

Browse files
author
Sanjeet Suhag
committed
Fixes build step
1 parent 1dab7ef commit 6864d01

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

build.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ export async function bundleCombinedWorkers(options) {
365365
thirdPartyWorkerConfig.entryPoints = thirdPartyWorkers;
366366
thirdPartyWorkerConfig.outdir = options.path;
367367
thirdPartyWorkerConfig.minify = options.minify;
368+
thirdPartyWorkerConfig.outbase = "Source";
368369
await esbuild.build(thirdPartyWorkerConfig);
369370

370371
// Bundle ES6 workers.
@@ -426,18 +427,6 @@ export async function bundleWorkers(options) {
426427
workerConfig.minify = options.minify;
427428
await esbuild.build(workerConfig);
428429

429-
// Copy ThirdParty workers
430-
const thirdPartyWorkers = await globby(["Source/ThirdParty/Workers/**"]);
431-
432-
const thirdPartyWorkerConfig = defaultESBuildOptions();
433-
thirdPartyWorkerConfig.entryPoints = thirdPartyWorkers;
434-
thirdPartyWorkerConfig.outdir = options.path;
435-
thirdPartyWorkerConfig.outbase = `packages/engine/Source`; // Maintain existing file paths
436-
thirdPartyWorkerConfig.minify = options.minify;
437-
// We don't want the CesiumJS copyright banner added to the ThirdParty worker files.
438-
thirdPartyWorkerConfig.banner = undefined;
439-
await esbuild.build(thirdPartyWorkerConfig);
440-
441430
// Use rollup to build the workers:
442431
// 1) They can be built as AMD style modules
443432
// 2) They can be built using code-splitting, resulting in smaller modules

0 commit comments

Comments
 (0)