diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d1d57b9..d9e6437d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +# [0.27.2](https://github.com/webpack/css-loader/compare/v0.27.1...v0.27.2) (2017-03-12) + # [0.27.1](https://github.com/webpack/css-loader/compare/v0.27.0...v0.27.1) (2017-03-10) 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) { 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 { diff --git a/package.json b/package.json index 665f3045..ffbb4574 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "css-loader", - "version": "0.27.1", + "version": "0.27.2", "author": "Tobias Koppers @sokra", "description": "css loader module for webpack", "engines": { @@ -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",