From 9ee8d0fc6714ef95d8bd42d2c714762b0962596a Mon Sep 17 00:00:00 2001 From: Sven Schwyn Date: Sun, 4 Jun 2017 22:28:52 +0200 Subject: [PATCH] Include inline source maps in generated JS files --- lib/converter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/converter.js b/lib/converter.js index 2c9b900..e653c37 100644 --- a/lib/converter.js +++ b/lib/converter.js @@ -23,7 +23,7 @@ exports.convert = function(logger, projectDir, options) { try { var coffeeContents = fs.readFileSync(filePath, { encoding: 'utf-8' }); - var jsContents = coffee.compile(coffeeContents, { bare: 'true' }); + var jsContents = coffee.compile(coffeeContents, { bare: 'true', inlineMap: 'true' }); } catch (e) { reject(new Error(filePath + ' CoffeeScript failed. Error: ' + e)); return;