From d614ea4973903feccf27710d850f29ee45700e0d Mon Sep 17 00:00:00 2001 From: Vladimir Starkov Date: Wed, 22 Feb 2017 13:46:16 +0100 Subject: [PATCH] lazy load async-to-gen/register (#162) --- bin/micro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/micro.js b/bin/micro.js index bfda790..082a154 100755 --- a/bin/micro.js +++ b/bin/micro.js @@ -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') @@ -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