mirror of https://github.com/lukechilds/micro.git
Leo Lamprecht
8 years ago
2 changed files with 20 additions and 1 deletions
@ -0,0 +1,19 @@ |
|||
// Native
|
|||
const {resolve} = require('path') |
|||
|
|||
// Packages
|
|||
const isAsyncSupported = require('is-async-supported') |
|||
const asyncToGen = require('async-to-gen/register') |
|||
|
|||
// Support for keywords "async" and "await"
|
|||
if (!isAsyncSupported()) { |
|||
const path = resolve('./load') |
|||
|
|||
asyncToGen({ |
|||
includes: new RegExp(`.*${path}.*`), |
|||
excludes: null, |
|||
sourceMaps: false |
|||
}) |
|||
} |
|||
|
|||
module.exports = require('./server') |
Loading…
Reference in new issue