postcss-modules
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -15,2 +15,6 @@ "use strict"; | ||
var _unquote = require("./unquote"); | ||
var _unquote2 = _interopRequireDefault(_unquote); | ||
var _parser = require("./css-loader-core/parser"); | ||
@@ -114,7 +118,8 @@ | ||
const fetcher = function fetcher(file, relativeTo, depTrace) { | ||
const resolvedResult = typeof opts.resolve === 'function' && opts.resolve(file); | ||
const unquoteFile = (0, _unquote2.default)(file); | ||
const resolvedResult = typeof opts.resolve === 'function' && opts.resolve(unquoteFile); | ||
const resolvedFile = resolvedResult instanceof Promise ? resolvedResult : Promise.resolve(resolvedResult); | ||
return resolvedFile.then(function (f = file) { | ||
return loader.fetch.call(loader, f || file, relativeTo, depTrace); | ||
return resolvedFile.then(function (f) { | ||
return loader.fetch.call(loader, `"${f || unquoteFile}"`, relativeTo, depTrace); | ||
}); | ||
@@ -121,0 +126,0 @@ }; |
# Changelog | ||
## 4.2.2 | ||
- Fix the build | ||
## 4.2.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "postcss-modules", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "PostCSS plugin to use CSS Modules everywhere", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31824
12
421