weboptimizer 2.0.1177 → 2.0.1180

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1177",
3
+ "version": "2.0.1180",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -115,9 +115,9 @@ if (configuration.libraryName) libraryName = configuration.libraryName;else if (
115
115
  libraryName = configuration.name;
116
116
  if (['assign', 'global', 'this', 'var', 'window'].includes(configuration.exportFormat.self)) libraryName = _clientnode["default"].stringConvertToValidVariableName(libraryName);
117
117
  }
118
- if (libraryName === '*') libraryName = Object.keys(configuration.injection.entry.normalized).map(function (name) {
118
+ if (libraryName === '*') libraryName = ['assign', 'global', 'this', 'var', 'window'].includes(configuration.exportFormat.self) ? Object.keys(configuration.injection.entry.normalized).map(function (name) {
119
119
  return _clientnode["default"].stringConvertToValidVariableName(name);
120
- }); /// endregion
120
+ }) : undefined; /// endregion
121
121
  /// region plugins
122
122
 
123
123
  var pluginInstances = []; //// region define modules to ignore