added to remote repo
This commit is contained in:
1 parent
8697c9f405
commit
cc599b6e18
8049 files changed
+1096323
No files matched your search
+15
@@ -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);
|
||||
};
|
||||
Reference in new issue
Block a user