Skip to content

Commit

Permalink
fix: call build configs with options
Browse files Browse the repository at this point in the history
  • Loading branch information
seasick committed Jan 24, 2024
1 parent 2705c05 commit 6b9adc5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import * as esbuild from 'esbuild';
import appBuildConfig from './esbuild.app.mjs';
import workerBuildConfig from './esbuild.worker.mjs';

if (process.argv?.length > 2) {
const appOptions = {};
const workerOptions = {};
const appOptions = {};
const workerOptions = {};

if (process.argv?.length > 2) {
// Check if a cors-proxy should be started
if (process.argv.includes('--cors-proxy')) {
const host = process.env.CORS_HOST || '0.0.0.0';
Expand Down Expand Up @@ -38,6 +38,6 @@ if (process.argv?.length > 2) {
});
}
} else {
await esbuild.build(appBuildConfig);
await esbuild.build(workerBuildConfig);
await esbuild.build(appBuildConfig(appOptions));
await esbuild.build(workerBuildConfig(workerBuildConfig));
}

0 comments on commit 6b9adc5

Please sign in to comment.