Sha256: 3444fe67f57c01a6adeeb32b1543966d303bc0298fd8f47949433217b0deb29a
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mergeOptions = mergeOptions; function mergeOptions(target, source) { var _arr = Object.keys(source); for (var _i = 0; _i < _arr.length; _i++) { var k = _arr[_i]; if (k === "parserOpts" && source.parserOpts) { var parserOpts = source.parserOpts; var targetObj = target.parserOpts = target.parserOpts || {}; mergeDefaultFields(targetObj, parserOpts); } else if (k === "generatorOpts" && source.generatorOpts) { var generatorOpts = source.generatorOpts; var _targetObj = target.generatorOpts = target.generatorOpts || {}; mergeDefaultFields(_targetObj, generatorOpts); } else { var val = source[k]; if (val !== undefined) target[k] = val; } } } function mergeDefaultFields(target, source) { var _arr2 = Object.keys(source); for (var _i2 = 0; _i2 < _arr2.length; _i2++) { var k = _arr2[_i2]; var val = source[k]; if (val !== undefined) target[k] = val; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
condenser-0.0.4 | lib/condenser/processors/node_modules/@babel/core/lib/config/util.js |