This commit is contained in:
Tomáš Dvořák committed 2025-10-03 16:26:44 +02:00
1 parent 0fc92f8464
commit cdb8bcd3e9
5928 files changed
+1054476 -72

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
function onError(err) {
throw err; /* ↓ Check stack trace ↓ */
}
module.exports = function jiti(filename, opts) {
const jiti = require("../dist/jiti");
opts = { onError, ...opts };
if (!opts.transform) {
opts.transform = require("../dist/babel");
}
return jiti(filename, opts);
};