Opal-Estate-Pro/node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js

14 lines
579 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
"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