/** * @file Make * @module mkbuild/make */ import type { Config, Result } from './interfaces/index.mjs'; /** * [esbuild][1] based file-to-file transformer and bundler. * * [1]: https://esbuild.github.io * * @todo hooks support * @todo validate build results against package.json * * @async * * @example * await make({ entries: [{}] }) * @example * await make({ entries: [{ ext: '.mjs', format: 'esm' }] }) * @example * await make({ entries: [{ ext: '.cjs', format: 'cjs' }] }) * @example * await make({ entries: [{ ext: '.js', format: 'iife' }] }) * * @param {Config} [config={}] - Build configuration options * @return {Promise} Build results * @throws {esbuild.BuildFailure | NodeError} */ declare function make({ configfile, cwd, ...config }?: Config): Promise; export default make;