From e5c24cc552d78f37c74192ed3d503f220befdc15 Mon Sep 17 00:00:00 2001 From: "James J. Alavosus" Date: Tue, 28 Mar 2017 18:33:01 -0400 Subject: [PATCH] feat: add support for coffeescript 2 dependency (#30) --- index.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 2a99d99..e15019d 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ -var coffee = require("coffee-script"); +var coffee = require("coffeescript"); var loaderUtils = require("loader-utils"); module.exports = function(source) { this.cacheable && this.cacheable(); @@ -24,8 +24,8 @@ module.exports = function(source) { } catch (e) { var err = ""; if (e.location == null || e.location.first_column == null || e.location.first_line == null) { - err += "Got an unexpected exception from the coffee-script compiler. The original exception was: " + e + "\n"; - err += "(The coffee-script compiler should not raise *unexpected* exceptions. You can file this error as an issue of the coffee-script compiler: https://github.com/jashkenas/coffee-script/issues)\n"; + err += "Got an unexpected exception from the coffeescript compiler. The original exception was: " + e + "\n"; + err += "(The coffeescript compiler should not raise *unexpected* exceptions. You can file this error as an issue of the coffeescript compiler: https://github.com/jashkenas/coffee-script/issues)\n"; } else { var codeLine = source.split("\n")[e.location.first_line]; var offendingCharacter = (e.location.first_column < codeLine.length) ? codeLine[e.location.first_column] : ""; diff --git a/package.json b/package.json index e60515f..28fd73e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "loader-utils": "^1.0.2" }, "peerDependencies": { - "coffee-script": "^1.6.0" + "coffeescript": ">= 1.8.x" }, "repository": { "type": "git",