Skip to content

Commit 27ca5a0

Browse files
authoredMar 12, 2017
fix(lib): rm comment, rename const => var (#452)
1 parent 0252643 commit 27ca5a0

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed
 

‎lib/convert-source-map.js

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ var path = require('path');
77

88
var commentRx = /^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/mg;
99
var mapFileCommentRx =
10-
//Example (Extra space between slashes added to solve Safari bug. Exclude space in production):
11-
// / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */
1210
/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg
1311

1412
function decodeBase64(base64) {

‎lib/css-base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function() {
99
// return the list of modules as css string
1010
list.toString = function toString() {
1111
return this.map(function (item) {
12-
const content = cssWithMappingToString(item);
12+
var content = cssWithMappingToString(item);
1313
if(item[2]) {
1414
return "@media " + item[2] + "{" + content + "}";
1515
} else {

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
],
1414
"dependencies": {
1515
"babel-code-frame": "^6.11.0",
16-
"convert-source-map": "^1.3.0",
1716
"css-selector-tokenizer": "^0.7.0",
1817
"cssnano": ">=2.6.1 <4",
1918
"loader-utils": "^1.0.2",

0 commit comments

Comments
 (0)