weboptimizer 2.0.1179 → 2.0.1182

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/index.js CHANGED
@@ -170,7 +170,6 @@ var main = /*#__PURE__*/function () {
170
170
  case 22:
171
171
  additionalArguments = commandLineArguments.splice(3); /// region register exit handler to tidy up
172
172
 
173
- /// region register exit handler to tidy up
174
173
  clear = function clear(error) {
175
174
  // NOTE: Close handler have to be synchronous.
176
175
  if (_clientnode["default"].isFileSync(filePath)) (0, _fs.unlinkSync)(filePath);
@@ -439,10 +438,6 @@ var main = /*#__PURE__*/function () {
439
438
  */
440
439
 
441
440
 
442
- /*
443
- NOTE: Close handler have to be
444
- synchronous.
445
- */
446
441
  if (configuration.buildContext.types[type].outputExtension === 'js' && _clientnode["default"].isFileSync(_filePath3)) (0, _fs.chmodSync)(_filePath3, '755');
447
442
  }
448
443
  }
@@ -491,10 +486,6 @@ var main = /*#__PURE__*/function () {
491
486
  final productive output.
492
487
  */
493
488
 
494
- /*
495
- Triggers complete asset compiling and bundles them into the
496
- final productive output.
497
- */
498
489
  processPromises.push(new Promise(function (resolve, reject) {
499
490
  var commandLineArguments = (configuration.commandLine.build.arguments || []).concat(additionalArguments);
500
491
  console.info('Running "' + ("".concat(configuration.commandLine.build.command, " ") + commandLineArguments.join(' ')).trim() + '"');
@@ -503,10 +494,6 @@ var main = /*#__PURE__*/function () {
503
494
  account.
504
495
  */
505
496
 
506
- /*
507
- NOTE: Take current weboptimizer's dependencies into
508
- account.
509
- */
510
497
  childProcessOptions.env.PATH += ":".concat(webOptimizerPath, "/node_modules/.bin");
511
498
  var childProcess = (0, _child_process.spawn)(configuration.commandLine.build.command, commandLineArguments, childProcessOptions);
512
499
 
@@ -520,7 +507,6 @@ var main = /*#__PURE__*/function () {
520
507
  var sourcePath = (0, _path.join)(configuration.path.source.base, _filePath5);
521
508
  var targetPath = (0, _path.join)(configuration.path.target.base, _filePath5); // NOTE: Close handler have to be synchronous.
522
509
 
523
- // NOTE: Close handler have to be synchronous.
524
510
  if (_clientnode["default"].isDirectorySync(sourcePath)) {
525
511
  if (_clientnode["default"].isDirectorySync(targetPath)) (0, _rimraf.sync)(targetPath, {
526
512
  glob: false
@@ -617,8 +603,6 @@ var main = /*#__PURE__*/function () {
617
603
  // region handle remaining tasks
618
604
 
619
605
 
620
- // endregion
621
- // region handle remaining tasks
622
606
  handleTask = function handleTask(type) {
623
607
  var tasks = Array.isArray(configuration.commandLine[type]) ? configuration.commandLine[type] : [configuration.commandLine[type]];
624
608
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1179",
3
+ "version": "2.0.1182",
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,16 +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 === '*')
119
- /*
120
- NOTE: Maybe useful:
121
- libraryName = Object.keys(
122
- configuration.injection.entry.normalized
123
- ).map((name:string):string =>
124
- Tools.stringConvertToValidVariableName(name)
125
- )
126
- */
127
- libraryName = undefined; /// 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
128
121
  /// region plugins
129
122
 
130
123
  var pluginInstances = []; //// region define modules to ignore