Skip to content

Commit

Permalink
Fixes build step
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeet Suhag committed Nov 1, 2022
1 parent 1dab7ef commit 6864d01
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export async function bundleCombinedWorkers(options) {
thirdPartyWorkerConfig.entryPoints = thirdPartyWorkers;
thirdPartyWorkerConfig.outdir = options.path;
thirdPartyWorkerConfig.minify = options.minify;
thirdPartyWorkerConfig.outbase = "Source";
await esbuild.build(thirdPartyWorkerConfig);

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

// Copy ThirdParty workers
const thirdPartyWorkers = await globby(["Source/ThirdParty/Workers/**"]);

const thirdPartyWorkerConfig = defaultESBuildOptions();
thirdPartyWorkerConfig.entryPoints = thirdPartyWorkers;
thirdPartyWorkerConfig.outdir = options.path;
thirdPartyWorkerConfig.outbase = `packages/engine/Source`; // Maintain existing file paths
thirdPartyWorkerConfig.minify = options.minify;
// We don't want the CesiumJS copyright banner added to the ThirdParty worker files.
thirdPartyWorkerConfig.banner = undefined;
await esbuild.build(thirdPartyWorkerConfig);

// Use rollup to build the workers:
// 1) They can be built as AMD style modules
// 2) They can be built using code-splitting, resulting in smaller modules
Expand Down

0 comments on commit 6864d01

Please sign in to comment.