UNPKG

@intlayer/config

Version:

Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.

32 lines (30 loc) 606 B
import { build } from "esbuild"; //#region src/loadExternalFile/bundleJSFile.ts const commonBuildOptions = { bundle: true, format: "cjs", platform: "node", target: "es2019", sourcemap: false, logLevel: "silent", write: true, packages: "external", loader: { ".js": "js", ".jsx": "jsx", ".mjs": "js", ".ts": "ts", ".tsx": "tsx", ".cjs": "js", ".json": "json", ".md": "text", ".mdx": "text" } }; const bundleJSFile = async (buildOptions) => await build({ ...commonBuildOptions, ...buildOptions }); //#endregion export { bundleJSFile }; //# sourceMappingURL=bundleJSFile.mjs.map