"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watch = watch;
exports.build = build;
exports.buildSync = buildSync;
const esbuild = require("esbuild");
const constants_1 = require("../build/constants");
async function watch(opt) {
    const context = await esbuild.context({ ...constants_1.DEFAULT_WATCH_OPTIONS, ...opt });
    return context.watch();
}
function build(opt) {
    return esbuild.build({ ...constants_1.DEFAULT_BUILD_OPTIONS, ...opt });
}
function buildSync(opt) {
    return esbuild.buildSync({ ...constants_1.DEFAULT_BUILD_OPTIONS, ...opt });
}
//# sourceMappingURL=build.js.map