biofriction-wp-theme/node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js

14 lines
579 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var immutable_1 = require("immutable");
function copyCLIIgnoreToWatchOptions(incoming) {
if (!incoming.get("ignore")) {
return [incoming, []];
}
var output = incoming.updateIn(["watchOptions", "ignored"], immutable_1.List([]), function (ignored) {
return immutable_1.List([]).concat(ignored, incoming.get("ignore"));
});
return [output, []];
}
exports.copyCLIIgnoreToWatchOptions = copyCLIIgnoreToWatchOptions;
//# sourceMappingURL=copyCLIIgnoreToWatchOptions.js.map