weboptimizer 2.0.1164 → 2.0.1165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/configurator.js +1 -2
  2. package/package.json +1 -1
package/configurator.js CHANGED
@@ -229,8 +229,7 @@ var load = function load(context) {
229
229
  try {
230
230
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
231
231
  var _name = _step3.value;
232
-
233
- _clientnode["default"].extend(true, result, configuration[_name]);
232
+ if (Object.prototype.hasOwnProperty.call(configuration, _name)) _clientnode["default"].extend(true, result, configuration[_name]);else if (_clientnode["default"].isFileSync(_name)) _clientnode["default"].extend(true, result, JSON.parse((0, _fs.readFileSync)(_name, configuration.encoding)));else console.warn("Given dynamic referenced configuration \"".concat(_name, "\" ") + 'could not be resolved.');
234
233
  }
235
234
  } catch (err) {
236
235
  _iterator3.e(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1164",
3
+ "version": "2.0.1165",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",