| import { n as __toESM, t as require_binding } from "./shared/binding-TuFFIE_J.mjs"; |
| import { n as onExit, t as watch } from "./shared/watch-B1b0gmVh.mjs"; |
| import { b as VERSION, r as RolldownMagicString } from "./shared/bindingify-input-options-XPJLJOD0.mjs"; |
| import { t as rolldown } from "./shared/rolldown-ChpIlMRm.mjs"; |
| import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs"; |
| import { isMainThread } from "node:worker_threads"; |
| |
| var import_binding = __toESM(require_binding(), 1); |
| if (isMainThread) { |
| const subscriberGuard = (0, import_binding.initTraceSubscriber)(); |
| onExit(() => { |
| subscriberGuard?.close(); |
| }); |
| } |
| |
| |
| |
| |
| |
| const RUNTIME_MODULE_ID = "\0rolldown/runtime.js"; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| async function build(options) { |
| if (Array.isArray(options)) return Promise.all(options.map((opts) => build(opts))); |
| else { |
| const { output, write = true, ...inputOptions } = options; |
| const build = await rolldown(inputOptions); |
| try { |
| if (write) return await build.write(output); |
| else return await build.generate(output); |
| } finally { |
| await build.close(); |
| } |
| } |
| } |
| |
| export { RUNTIME_MODULE_ID, RolldownMagicString, VERSION, build, defineConfig, rolldown, watch }; |
|
|