diff --git a/lib/babel/helpers/code-frame.js b/lib/babel/helpers/code-frame.js index 4aaa8b6c46..9595ddabc7 100644 --- a/lib/babel/helpers/code-frame.js +++ b/lib/babel/helpers/code-frame.js @@ -1,6 +1,5 @@ // syntax highlighting based on https://github.com/dominictarr/ansi-highlight by the fantastic Dominic Tarr -var supportsColor = require("supports-color"); var tokenize = require("js-tokenizer"); var chalk = require("chalk"); var util = require("../util"); @@ -43,7 +42,7 @@ var highlight = function (text) { module.exports = function (lines, lineNumber, colNumber) { colNumber = Math.max(colNumber, 0); - if (supportsColor) { + if (chalk.supportsColor) { lines = highlight(lines); } diff --git a/package.json b/package.json index 4ee0971871..c76fb2af06 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "roadrunner": "1.0.4", "source-map": "0.1.43", "source-map-support": "0.2.9", - "supports-color": "1.2.0", "useragent": "^2.1.5" }, "devDependencies": {