diff --git a/lib/cli/spawn.js b/lib/cli/spawn.js
index <HASH>..<HASH> 100644
--- a/lib/cli/spawn.js
+++ b/lib/cli/spawn.js
@@ -25,12 +25,12 @@ module.exports = co(function * (cwd) {
 	const opts = {cwd, file, plugins}
 
 	try {
-		const esnext = require.resolve("fly-esnext") && require("fly-esnext")
+		const esnext = require("fly-esnext")
 		if (esnext) {
 			const data = yield read(file, "utf8")
 			opts.tasks = esnext(file, data)
 		}
-	} catch (e) {}
+	} catch (err) {}
 
 	return new Fly(opts)
 })
no need to require.resolve + require()