MyRepo-Ums/node_modules/browser-sync/dist/cli/transforms/appendServerDirectoryOption.js

16 lines
553 B
JavaScript
Raw Permalink Normal View History

2024-01-19 10:09:11 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.appendServerDirectoryOption = void 0;
function appendServerDirectoryOption(incoming) {
if (!incoming.get("server"))
return [incoming, []];
if (incoming.get("directory")) {
return [
incoming.setIn(["server", "directory"], incoming.has("directory")),
[]
];
}
return [incoming, []];
}
exports.appendServerDirectoryOption = appendServerDirectoryOption;
//# sourceMappingURL=appendServerDirectoryOption.js.map