Urara-Blog/node_modules/.pnpm-store/v3/files/e4/543c59dcd8c040de2a6ba0528f56f5001e08822dd618e97a74a00d6075b3196eeae919c4f38d822bf096bd233aa50cc1c6739c7538680c59b401b151ae7faf
2022-08-14 01:14:53 +08:00

15 lines
296 B
Text

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)
}