weboptimizer 2.0.1193 → 2.0.1194
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 +3 -3
- package/helper.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
356
|
+
"resolvedConfiguration.path.source.asset.base" because we
|
|
357
|
+
already have resolved all module ids.
|
|
358
358
|
*/
|
|
359
|
-
'
|
|
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)(
|
|
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);
|