weboptimizer 2.0.1383 → 2.0.1385
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/helper.js +3 -4
- package/package.json +7 -4
package/helper.js
CHANGED
|
@@ -496,7 +496,8 @@ var Helper = exports.Helper = /*#__PURE__*/function () {
|
|
|
496
496
|
var referencePath = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
|
|
497
497
|
var pathsToIgnore = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : ['.git'];
|
|
498
498
|
if (referencePath.startsWith('/')) referencePath = (0, _path.relative)(context, referencePath);
|
|
499
|
-
|
|
499
|
+
var result = _clientnode["default"].copy(normalizedGivenInjection);
|
|
500
|
+
for (var _i7 = 0, _Object$values4 = Object.values(result); _i7 < _Object$values4.length; _i7++) {
|
|
500
501
|
var chunk = _Object$values4[_i7];
|
|
501
502
|
var index = 0;
|
|
502
503
|
var _iterator7 = _createForOfIteratorHelper(_clientnode["default"].copy(chunk)),
|
|
@@ -536,7 +537,7 @@ var Helper = exports.Helper = /*#__PURE__*/function () {
|
|
|
536
537
|
_iterator7.f();
|
|
537
538
|
}
|
|
538
539
|
}
|
|
539
|
-
return
|
|
540
|
+
return result;
|
|
540
541
|
}
|
|
541
542
|
/**
|
|
542
543
|
* Every injection definition type can be represented as plain object
|
|
@@ -691,8 +692,6 @@ var Helper = exports.Helper = /*#__PURE__*/function () {
|
|
|
691
692
|
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
|
|
692
693
|
var moduleFilePath = _step12.value;
|
|
693
694
|
if (!moduleFilePathsToExclude.includes(moduleFilePath)) {
|
|
694
|
-
console.log('A', moduleFilePath);
|
|
695
|
-
console.log('B', moduleFilePathsToExclude);
|
|
696
695
|
var relativeModuleFilePath = "./".concat((0, _path.relative)(context, moduleFilePath));
|
|
697
696
|
var directoryPath = (0, _path.dirname)(relativeModuleFilePath);
|
|
698
697
|
var baseName = (0, _path.basename)(relativeModuleFilePath, ".".concat(buildConfiguration.extension));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1385",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -755,8 +755,7 @@
|
|
|
755
755
|
"./type",
|
|
756
756
|
"./type.js",
|
|
757
757
|
"./type.ts",
|
|
758
|
-
".coverage"
|
|
759
|
-
"exclude"
|
|
758
|
+
".coverage"
|
|
760
759
|
],
|
|
761
760
|
"chunks": {},
|
|
762
761
|
"entry": {
|
|
@@ -795,7 +794,11 @@
|
|
|
795
794
|
},
|
|
796
795
|
"modules": "__implicit__"
|
|
797
796
|
},
|
|
798
|
-
"ignorePattern": [
|
|
797
|
+
"ignorePattern": [
|
|
798
|
+
{
|
|
799
|
+
"resourceRegExp": "(.*/)?exclude/.+"
|
|
800
|
+
}
|
|
801
|
+
]
|
|
799
802
|
},
|
|
800
803
|
"inPlace": {
|
|
801
804
|
"#": "Indicates whether to include the corresponding artefacts into build target artefact or reference them to dynamically include them during runtime.",
|