import { dirname, extname } from "node:path";
import { buildSync } from "esbuild";
import { pathToFileURL } from "node:url";

//#region ../@intlayer/dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs
const getLoader = (extension) => {
	switch (extension) {
		case ".js": return "js";
		case ".jsx": return "jsx";
		case ".mjs": return "js";
		case ".ts": return "ts";
		case ".tsx": return "tsx";
		case ".cjs": return "js";
		case ".json": return "json";
		case ".md": return "text";
		case ".mdx": return "text";
		default: return "js";
	}
};

//#endregion
export { getLoader };
//# sourceMappingURL=bundleFile.mjs.map