This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+15
View File
@@ -0,0 +1,15 @@
function onError (err) {
throw err /* ↓ Check stack trace ↓ */
}
module.exports = function (filename, opts) {
const jiti = require('../dist/jiti')
opts = { onError, ...opts }
if (!opts.transform) {
opts.transform = require('../dist/babel')
}
return jiti(filename, opts)
}