We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f02bdc commit ff2fd57Copy full SHA for ff2fd57
lib/map-generator.js
@@ -202,7 +202,11 @@ class MapGenerator {
202
if (this.mapOpts.from) {
203
return this.toUrl(this.mapOpts.from)
204
} else if (this.mapOpts.absolute) {
205
- return pathToFileURL(node.source.input.from).toString()
+ if(pathToFileURL) {
206
+ return pathToFileURL(node.source.input.from).toString()
207
+ } else {
208
+ throw new Error('map option "absolute" is not available in this postcss build')
209
+ }
210
} else {
211
return this.toUrl(this.path(node.source.input.from))
212
}
0 commit comments