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

//#region ../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs
var import_jiti = /* @__PURE__ */ __toESM(require_jiti(), 1);
function onError(err) {
	throw err;
}
const nativeImport = (id) => import(id);
let _transform;
function lazyTransform(...args) {
	if (!_transform) _transform = createRequire(import.meta.url)("../dist/babel.cjs");
	return _transform(...args);
}
function createJiti(id, opts = {}) {
	if (!opts.transform) opts = {
		...opts,
		transform: lazyTransform
	};
	return (0, import_jiti.default)(id, opts, {
		onError,
		nativeImport,
		createRequire
	});
}

//#endregion
export { createJiti };
//# sourceMappingURL=jiti.mjs.map