weboptimizer 2.0.1163 → 2.0.1166

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.
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.1163",
3
+ "version": "2.0.1166",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -112,7 +112,10 @@ var libraryName;
112
112
  if (configuration.libraryName) libraryName = configuration.libraryName;else if (Object.keys(configuration.injection.entry.normalized).length > 1) libraryName = '[name]';else {
113
113
  libraryName = configuration.name;
114
114
  if (['assign', 'global', 'this', 'var', 'window'].includes(configuration.exportFormat.self)) libraryName = _clientnode["default"].stringConvertToValidVariableName(libraryName);
115
- } /// endregion
115
+ }
116
+ if (libraryName === '*') libraryName = Object.keys(configuration.injection.entry.normalized).map(function (name) {
117
+ return _clientnode["default"].stringConvertToValidVariableName(name);
118
+ }); /// endregion
116
119
  /// region plugins
117
120
 
118
121
  var pluginInstances = []; //// region define modules to ignore
@@ -1282,7 +1285,7 @@ var webpackConfiguration = _clientnode["default"].extend(true, {
1282
1285
  globalObject: configuration.exportFormat.globalObject,
1283
1286
  hashFunction: configuration.hashAlgorithm,
1284
1287
  library: {
1285
- name: libraryName === '*' ? '[name]' : libraryName,
1288
+ name: libraryName,
1286
1289
  type: configuration.exportFormat.self,
1287
1290
  umdNamedDefine: true
1288
1291
  },