Skip to content

Commit

Permalink
Remove handling of below node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 2, 2019
1 parent 85576ed commit f41de4c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions errors/old-node-version.md

This file was deleted.

12 changes: 0 additions & 12 deletions lib/handler.js
Expand Up @@ -12,18 +12,6 @@ module.exports = async file => {
}
} catch (err) {
logError(`Error when importing ${file}: ${err.stack}`, 'invalid-entry');

if (
err instanceof SyntaxError &&
/\s+async\s+/.test(err.stack) &&
Number(process.versions.node.split('.')[0]) < 8
) {
logError(
'In order for `async` & `await` to work, you need to use at least Node.js 8!',
'old-node-version'
);
}

process.exit(1);
}

Expand Down

0 comments on commit f41de4c

Please sign in to comment.