UNPKG

241 BJavaScriptView Raw
1module.exports = function (filename, opts) {
2 require('./dist/v8cache')
3 const jiti = require('./dist/jiti')
4
5 opts = { ...opts }
6
7 if (!opts.transform) {
8 opts.transform = require('./dist/babel')
9 }
10
11 return jiti(filename, opts)
12}