Skip to content

Commit

Permalink
lazy load async-to-gen/register (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstarkov authored and timneutkens committed Feb 22, 2017
1 parent cdf15dc commit d614ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/micro.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
const path = require('path')

// Packages
const asyncToGen = require('async-to-gen/register')
const updateNotifier = require('update-notifier')
const nodeVersion = require('node-version')
const args = require('args')
Expand Down Expand Up @@ -55,6 +54,7 @@ if (file[0] !== '/') {
}

if (!isAsyncSupported()) {
const asyncToGen = require('async-to-gen/register')
// Support for keywords "async" and "await"
const pathSep = process.platform === 'win32' ? '\\\\' : '/'
const directoryName = path.parse(path.join(__dirname, '..')).base
Expand Down

0 comments on commit d614ea4

Please sign in to comment.