Skip to content

Commit

Permalink
fix(lib): rm comment, rename const => var (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky authored Mar 12, 2017
1 parent 0252643 commit 27ca5a0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions lib/convert-source-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/css-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 27ca5a0

Please sign in to comment.