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

//#region ../../node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.mjs
var import_jiti = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_jiti$1.default, 1);
var import_babel = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_babel$1.default, 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: node_module.createRequire
	});
}

//#endregion
exports.createJiti = createJiti;