import { __toESM } from "../../../../../../_virtual/rolldown_runtime.mjs";
import { require_jiti } from "../dist/jiti.mjs";
import { require_babel } from "../dist/babel.mjs";
import { createRequire } from "node:module";

//#region ../../node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.mjs
var import_jiti = /* @__PURE__ */ __toESM(require_jiti(), 1);
var import_babel = /* @__PURE__ */ __toESM(require_babel(), 1);
function onError(err) {
	throw err;
}
const nativeImport = (id) => import(id);
function createJiti(id, opts = {}) {
	if (!opts.transform) opts = {
		...opts,
		transform: import_babel.default
	};
	return (0, import_jiti.default)(id, opts, {
		onError,
		nativeImport,
		createRequire
	});
}

//#endregion
export { createJiti };