lunaisadev-website-old/node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js

14 lines
579 B
JavaScript
Raw Normal View History

2021-07-28 01:40:12 +00: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