From 2201dcb72792a29cf56a0de116229dbfdd134a4d Mon Sep 17 00:00:00 2001 From: Michael Ciniawsky Date: Sun, 12 Mar 2017 18:27:16 +0100 Subject: [PATCH 1/3] chore(package): rm convert-source-map --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 665f3045..6deffc69 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ ], "dependencies": { "babel-code-frame": "^6.11.0", - "convert-source-map": "^1.3.0", "css-selector-tokenizer": "^0.7.0", "cssnano": ">=2.6.1 <4", "loader-utils": "^1.0.2", From 0893c3f82096b913a3841dfb04bd77c9e415e810 Mon Sep 17 00:00:00 2001 From: Michael Ciniawsky Date: Sun, 12 Mar 2017 18:28:15 +0100 Subject: [PATCH 2/3] fix(lib/convert-source-map): rm comment --- lib/convert-source-map.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/convert-source-map.js b/lib/convert-source-map.js index 732f6213..03a9cbe0 100644 --- a/lib/convert-source-map.js +++ b/lib/convert-source-map.js @@ -7,8 +7,6 @@ var path = require('path'); var commentRx = /^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/mg; var mapFileCommentRx = - //Example (Extra space between slashes added to solve Safari bug. Exclude space in production): - // / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */ /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg function decodeBase64(base64) { From 0c77ea56a70887f3af03a3f8718e9ce987aa3f76 Mon Sep 17 00:00:00 2001 From: Michael Ciniawsky Date: Sun, 12 Mar 2017 18:28:56 +0100 Subject: [PATCH 3/3] fix(lib/css-base): rename const => var --- lib/css-base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/css-base.js b/lib/css-base.js index 71b9e7dc..6e46a4cc 100644 --- a/lib/css-base.js +++ b/lib/css-base.js @@ -9,7 +9,7 @@ module.exports = function() { // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { - const content = cssWithMappingToString(item); + var content = cssWithMappingToString(item); if(item[2]) { return "@media " + item[2] + "{" + content + "}"; } else {