Browse Source

lazy load async-to-gen/register (#162)

master
Vladimir Starkov 8 years ago
committed by Tim Neutkens
parent
commit
d614ea4973
  1. 2
      bin/micro.js

2
bin/micro.js

@ -4,7 +4,6 @@
const path = require('path') const path = require('path')
// Packages // Packages
const asyncToGen = require('async-to-gen/register')
const updateNotifier = require('update-notifier') const updateNotifier = require('update-notifier')
const nodeVersion = require('node-version') const nodeVersion = require('node-version')
const args = require('args') const args = require('args')
@ -55,6 +54,7 @@ if (file[0] !== '/') {
} }
if (!isAsyncSupported()) { if (!isAsyncSupported()) {
const asyncToGen = require('async-to-gen/register')
// Support for keywords "async" and "await" // Support for keywords "async" and "await"
const pathSep = process.platform === 'win32' ? '\\\\' : '/' const pathSep = process.platform === 'win32' ? '\\\\' : '/'
const directoryName = path.parse(path.join(__dirname, '..')).base const directoryName = path.parse(path.join(__dirname, '..')).base

Loading…
Cancel
Save