const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
const require_jiti$1 = require('../dist/jiti.cjs');
let node_module = require("node:module");

//#region ../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs
var import_jiti = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_jiti$1.default, 1);
function onError(err) {
	throw err;
}
const nativeImport = (id) => import(id);
let _transform;
function lazyTransform(...args) {
	if (!_transform) _transform = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("../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: node_module.createRequire
	});
}

//#endregion
exports.createJiti = createJiti;