weboptimizer 2.0.1193 → 2.0.1196

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
@@ -353,10 +353,10 @@ var load = function load(context) {
353
353
  }, resolvedConfiguration.path.context,
354
354
  /*
355
355
  NOTE: We doesn't use
356
- "resolvedConfiguration.path.source.asset.base" because
357
- we already have resolved all module ids.
356
+ "resolvedConfiguration.path.source.asset.base" because we
357
+ already have resolved all module ids.
358
358
  */
359
- './', resolvedConfiguration.path.ignore, resolvedConfiguration.module.directoryNames, resolvedConfiguration["package"].main.fileNames, resolvedConfiguration["package"].main.propertyNames, resolvedConfiguration["package"].aliasPropertyNames, resolvedConfiguration.encoding);
359
+ '', resolvedConfiguration.path.ignore, resolvedConfiguration.module.directoryNames, resolvedConfiguration["package"].main.fileNames, resolvedConfiguration["package"].main.propertyNames, resolvedConfiguration["package"].aliasPropertyNames, resolvedConfiguration.encoding);
360
360
 
361
361
  var _type2 = null;
362
362
  if (_filePath) _type2 = _helper["default"].determineAssetType(_filePath, resolvedConfiguration.buildContext.types, resolvedConfiguration.path);else throw new Error("Given request \"".concat(moduleID, "\" couldn't be resolved."));
package/helper.js CHANGED
@@ -612,7 +612,7 @@ var Helper = /*#__PURE__*/function () {
612
612
  var _file$stats2;
613
613
 
614
614
  var file = _step8.value;
615
- if ((_file$stats2 = file.stats) !== null && _file$stats2 !== void 0 && _file$stats2.isFile()) chunk.push('./' + (0, _path.relative)(referencePath, (0, _path.resolve)(resolvedPath, file.path)));
615
+ if ((_file$stats2 = file.stats) !== null && _file$stats2 !== void 0 && _file$stats2.isFile()) chunk.push('./' + (0, _path.relative)(context, (0, _path.resolve)(resolvedPath, file.path)));
616
616
  }
617
617
  } catch (err) {
618
618
  _iterator8.e(err);
package/jestSetup.js CHANGED
@@ -22,7 +22,12 @@ var _clientnode = require("clientnode");
22
22
  var _util = require("util");
23
23
 
24
24
  _clientnode.globalContext.TextEncoder = _util.TextEncoder;
25
- _clientnode.globalContext.TextDecoder = _util.TextDecoder; // region vim modline
25
+ _clientnode.globalContext.TextDecoder = _util.TextDecoder;
26
+
27
+ try {
28
+ if (eval('require')('jest-canvas-mock')) console.info('Canvas mocking module loaded.');
29
+ } catch (error) {// Do nothing.
30
+ } // region vim modline
26
31
  // vim: set tabstop=4 shiftwidth=4 expandtab:
27
32
  // vim: foldmethod=marker foldmarker=region,endregion:
28
33
  // endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1193",
3
+ "version": "2.0.1196",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -173,6 +173,7 @@
173
173
  "image-minimizer-webpack-plugin": "*",
174
174
  "imagemin": "*",
175
175
  "jest": "*",
176
+ "jest-canvas-mock": "*",
176
177
  "jsdoc": "*",
177
178
  "mini-css-extract-plugin": "*",
178
179
  "postcss": "*",
@@ -244,6 +245,9 @@
244
245
  "jest": {
245
246
  "optional": true
246
247
  },
248
+ "jest-canvas-mock": {
249
+ "optional": true
250
+ },
247
251
  "jsdoc": {
248
252
  "optional": true
249
253
  },