weboptimizer 2.0.1178 → 2.0.1181

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.1178",
3
+ "version": "2.0.1181",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -1639,11 +1639,6 @@
1639
1639
  "payload": "node"
1640
1640
  }
1641
1641
  },
1642
- "exportFormat": {
1643
- "self": {
1644
- "__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2] === 'serve' ? 'var' : 'umd'"
1645
- }
1646
- },
1647
1642
  "files": {
1648
1643
  "compose": {
1649
1644
  "cascadingStyleSheet": {
@@ -115,17 +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
- /*
119
- NOTE: Maybe useful:
120
-
121
- if (libraryName === '*')
122
- libraryName = Object.keys(
123
- configuration.injection.entry.normalized
124
- ).map((name:string):string =>
125
- Tools.stringConvertToValidVariableName(name)
126
- )
127
- */
128
- /// endregion
118
+ if (libraryName === '*') libraryName = ['assign', 'global', 'this', 'var', 'window'].includes(configuration.exportFormat.self) ? Object.keys(configuration.injection.entry.normalized).map(function (name) {
119
+ return _clientnode["default"].stringConvertToValidVariableName(name);
120
+ }) : undefined; /// endregion
129
121
  /// region plugins
130
122
 
131
123
  var pluginInstances = []; //// region define modules to ignore