@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
34 lines (32 loc) • 745 B
JavaScript
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
let esbuild = require("esbuild");
esbuild = require_rolldown_runtime.__toESM(esbuild);
//#region src/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 (0, esbuild.build)({
...commonBuildOptions,
...buildOptions
});
//#endregion
exports.bundleJSFile = bundleJSFile;
//# sourceMappingURL=bundleJSFile.cjs.map