mirror of
https://github.com/klxf/eda-copilot.git
synced 2025-09-21 15:43:26 +08:00
14 lines
253 B
TypeScript
14 lines
253 B
TypeScript
import esbuild from 'esbuild';
|
|
|
|
import common from './esbuild.common';
|
|
|
|
(async () => {
|
|
const ctx = await esbuild.context(common);
|
|
if (process.argv.includes('--watch')) {
|
|
await ctx.watch();
|
|
} else {
|
|
await ctx.rebuild();
|
|
process.exit();
|
|
}
|
|
})();
|