|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
305 bytes
|
| Line | |
|---|
| 1 | function onError(err) {
|
|---|
| 2 | throw err; /* ↓ Check stack trace ↓ */
|
|---|
| 3 | }
|
|---|
| 4 |
|
|---|
| 5 | module.exports = function jiti(filename, opts) {
|
|---|
| 6 | const jiti = require("../dist/jiti");
|
|---|
| 7 |
|
|---|
| 8 | opts = { onError, ...opts };
|
|---|
| 9 |
|
|---|
| 10 | if (!opts.transform) {
|
|---|
| 11 | opts.transform = require("../dist/babel");
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | return jiti(filename, opts);
|
|---|
| 15 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.