aboutsummaryrefslogtreecommitdiff
path: root/node_modules/clean-css/lib/reader/apply-source-maps.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-24 15:10:37 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-24 15:11:17 +0200
commit7a3df06eb573d36142bd1a8e03c5ce8752d300b3 (patch)
tree70bfaea8884c374876f607774850a3a51c0cb381 /node_modules/clean-css/lib/reader/apply-source-maps.js
parentaca1143cb9eed16cf37f04e475e4257418dd18ac (diff)
fix build issues and add typedoc
Diffstat (limited to 'node_modules/clean-css/lib/reader/apply-source-maps.js')
-rw-r--r--node_modules/clean-css/lib/reader/apply-source-maps.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/clean-css/lib/reader/apply-source-maps.js b/node_modules/clean-css/lib/reader/apply-source-maps.js
index d2f87250e..7c5a9282b 100644
--- a/node_modules/clean-css/lib/reader/apply-source-maps.js
+++ b/node_modules/clean-css/lib/reader/apply-source-maps.js
@@ -2,7 +2,6 @@ var fs = require('fs');
var path = require('path');
var isAllowedResource = require('./is-allowed-resource');
-var loadRemoteResource = require('./load-remote-resource');
var matchDataUri = require('./match-data-uri');
var rebaseLocalMap = require('./rebase-local-map');
var rebaseRemoteMap = require('./rebase-remote-map');
@@ -17,6 +16,7 @@ var MAP_MARKER_PATTERN = /^\/\*# sourceMappingURL=(\S+) \*\/$/;
function applySourceMaps(tokens, context, callback) {
var applyContext = {
callback: callback,
+ fetch: context.options.fetch,
index: 0,
inline: context.options.inline,
inlineRequest: context.options.inlineRequest,
@@ -151,7 +151,7 @@ function loadInputSourceMapFromRemoteUri(uri, applyContext, whenLoaded) {
return whenLoaded(null);
}
- loadRemoteResource(uri, applyContext.inlineRequest, applyContext.inlineTimeout, function (error, body) {
+ applyContext.fetch(uri, applyContext.inlineRequest, applyContext.inlineTimeout, function (error, body) {
if (error) {
applyContext.warnings.push('Missing source map at "' + uri + '" - ' + error);
return whenLoaded(null);