weboptimizer 2.0.1109 → 2.0.1110

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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import { ResolvedConfiguration } from './type';
2
+ export declare let loadedConfiguration: null | ResolvedConfiguration;
2
3
  export declare const load: (context?: string | undefined) => ResolvedConfiguration;
3
4
  export default load;
package/configurator.js CHANGED
@@ -24,7 +24,7 @@ var _typeof3 = require("@babel/runtime/helpers/typeof");
24
24
  Object.defineProperty(exports, "__esModule", {
25
25
  value: true
26
26
  });
27
- exports.load = exports["default"] = void 0;
27
+ exports.loadedConfiguration = exports.load = exports["default"] = void 0;
28
28
 
29
29
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
30
30
 
@@ -51,10 +51,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
51
51
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
52
52
 
53
53
  // endregion
54
+ var loadedConfiguration = null;
55
+ exports.loadedConfiguration = loadedConfiguration;
56
+
54
57
  var load = function load(context) {
55
58
  var _specificConfiguratio;
56
59
 
57
- // region determine application context location
60
+ if (loadedConfiguration) return loadedConfiguration; // region determine application context location
61
+
58
62
  if (context) _package.configuration["default"].path.context = context;else {
59
63
  /*
60
64
  To assume to go two folder up from this file until there is no
@@ -405,7 +409,8 @@ var load = function load(context) {
405
409
  _iterator6.f();
406
410
  }
407
411
 
408
- return resolvedConfiguration;
412
+ exports.loadedConfiguration = loadedConfiguration = resolvedConfiguration;
413
+ return loadedConfiguration;
409
414
  };
410
415
 
411
416
  exports.load = load;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1109",
3
+ "version": "2.0.1110",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",