@unpackjs/core 1.7.4 → 1.7.6
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/compiled/css-loader/index.js +178 -178
- package/compiled/less-loader/index.js +11 -11
- package/compiled/line-diff/index.js +4 -4
- package/compiled/portfinder/index.js +37 -37
- package/compiled/postcss-loader/index.js +261 -256
- package/compiled/sass-loader/index.js +18 -18
- package/compiled/semver/index.js +188 -170
- package/compiled/semver/package.json +1 -1
- package/compiled/style-loader/index.js +13 -13
- package/compiled/webpack-bundle-analyzer/index.js +198 -198
- package/compiled/webpack-merge/index.js +29 -29
- package/dist/bundler-config/chunkSplit.cjs +169 -156
- package/dist/bundler-config/chunkSplit.d.ts +1 -1
- package/dist/bundler-config/chunkSplit.js +125 -134
- package/dist/bundler-config/css.cjs +181 -158
- package/dist/bundler-config/css.d.ts +1 -1
- package/dist/bundler-config/css.js +139 -151
- package/dist/bundler-config/experimentCss.cjs +203 -159
- package/dist/bundler-config/experimentCss.d.ts +1 -1
- package/dist/bundler-config/experimentCss.js +162 -152
- package/dist/bundler-config/helper.cjs +82 -78
- package/dist/bundler-config/helper.js +36 -55
- package/dist/bundler-config/index.cjs +260 -209
- package/dist/bundler-config/index.d.ts +1 -1
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +209 -182
- package/dist/bundler-config/jsMinify.cjs +114 -95
- package/dist/bundler-config/jsMinify.js +70 -73
- package/dist/colors.cjs +83 -56
- package/dist/colors.js +38 -37
- package/dist/config.cjs +107 -93
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +64 -70
- package/dist/constants.cjs +62 -62
- package/dist/constants.js +20 -38
- package/dist/createUnpack.cjs +111 -104
- package/dist/createUnpack.js +67 -82
- package/dist/global.cjs +36 -0
- package/dist/global.d.ts +2 -0
- package/dist/global.d.ts.map +1 -0
- package/dist/global.js +4 -0
- package/dist/index.cjs +174 -51
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -15
- package/dist/lightningcss/cache.cjs +40 -32
- package/dist/lightningcss/cache.js +10 -20
- package/dist/lightningcss/loader.cjs +56 -53
- package/dist/lightningcss/loader.d.ts +1 -1
- package/dist/lightningcss/loader.js +25 -34
- package/dist/lightningcss/minimizer.cjs +90 -109
- package/dist/lightningcss/minimizer.d.ts +1 -1
- package/dist/lightningcss/minimizer.js +59 -87
- package/dist/logger.cjs +104 -98
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +59 -76
- package/dist/openBrowser.cjs +104 -81
- package/dist/openBrowser.js +56 -52
- package/dist/plugin-progress/rspack.cjs +104 -79
- package/dist/plugin-progress/rspack.d.ts +1 -1
- package/dist/plugin-progress/rspack.js +59 -57
- package/dist/plugin-progress/webpack.cjs +111 -89
- package/dist/plugin-progress/webpack.d.ts +1 -1
- package/dist/plugin-progress/webpack.js +65 -67
- package/dist/plugin.cjs +38 -29
- package/dist/plugin.js +8 -17
- package/dist/prebundleDeps.cjs +327 -337
- package/dist/prebundleDeps.d.ts.map +1 -1
- package/dist/prebundleDeps.js +278 -324
- package/dist/progressBar.cjs +82 -65
- package/dist/progressBar.js +38 -43
- package/dist/reporter.cjs +135 -120
- package/dist/reporter.js +88 -98
- package/dist/run/build.cjs +68 -67
- package/dist/run/build.d.ts +1 -1
- package/dist/run/build.js +24 -45
- package/dist/run/dev.cjs +96 -83
- package/dist/run/dev.d.ts +1 -1
- package/dist/run/dev.d.ts.map +1 -1
- package/dist/run/dev.js +50 -61
- package/dist/run/index.cjs +74 -21
- package/dist/run/index.js +2 -9
- package/dist/typed-css-modules/loader.cjs +179 -188
- package/dist/typed-css-modules/loader.d.ts +1 -1
- package/dist/typed-css-modules/loader.js +118 -151
- package/dist/typed-css-modules/plugin.cjs +113 -88
- package/dist/typed-css-modules/plugin.d.ts +1 -1
- package/dist/typed-css-modules/plugin.js +68 -66
- package/dist/typed-css-modules/utils.cjs +43 -42
- package/dist/typed-css-modules/utils.d.ts +1 -1
- package/dist/typed-css-modules/utils.js +13 -30
- package/dist/types/chunkSplit.cjs +19 -15
- package/dist/types/chunkSplit.d.ts +2 -10
- package/dist/types/chunkSplit.d.ts.map +1 -1
- package/dist/types/chunkSplit.js +2 -9
- package/dist/types/config.cjs +19 -15
- package/dist/types/config.d.ts +1 -5
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +2 -9
- package/dist/types/index.cjs +101 -27
- package/dist/types/index.js +2 -9
- package/dist/types/lightningcss.cjs +19 -15
- package/dist/types/lightningcss.js +2 -9
- package/dist/types/logger.cjs +43 -34
- package/dist/types/logger.js +13 -22
- package/dist/types/plugin.cjs +19 -15
- package/dist/types/plugin.js +2 -9
- package/dist/utils.cjs +280 -304
- package/dist/utils.js +195 -241
- package/dist/watchFiles.cjs +73 -0
- package/dist/watchFiles.d.ts +3 -0
- package/dist/watchFiles.d.ts.map +1 -0
- package/dist/watchFiles.js +27 -0
- package/package.json +14 -17
- package/compiled/commander/index.d.ts +0 -971
- package/compiled/commander/index.js +0 -2190
- package/compiled/commander/license +0 -22
- package/compiled/commander/package.json +0 -1
- package/dist/bundleRequire.cjs +0 -200
- package/dist/bundleRequire.d.ts +0 -5
- package/dist/bundleRequire.d.ts.map +0 -1
- package/dist/bundleRequire.js +0 -173
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
755: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(61)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
61: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = void 0;
|
|
11
|
-
var _path = _interopRequireDefault(__nccwpck_require__(
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
11
|
+
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(416));
|
|
13
|
+
var _utils = __nccwpck_require__(408);
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
16
|
}
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
408: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
119
119
|
exports.getLessOptions = getLessOptions;
|
|
120
120
|
exports.isUnsupportedUrl = isUnsupportedUrl;
|
|
121
121
|
exports.normalizeSourceMap = normalizeSourceMap;
|
|
122
|
-
var _path = _interopRequireDefault(__nccwpck_require__(
|
|
122
|
+
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
123
123
|
function _interopRequireDefault(obj) {
|
|
124
124
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
125
125
|
}
|
|
@@ -304,10 +304,10 @@
|
|
|
304
304
|
return obj;
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
|
-
|
|
307
|
+
928: (module) => {
|
|
308
308
|
module.exports = require("path");
|
|
309
309
|
},
|
|
310
|
-
|
|
310
|
+
416: (module) => {
|
|
311
311
|
module.exports = JSON.parse(
|
|
312
312
|
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/less-loader#webpackimporter","type":"boolean"},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack-contrib/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
313
313
|
);
|
|
@@ -335,6 +335,6 @@
|
|
|
335
335
|
}
|
|
336
336
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
337
337
|
__nccwpck_require__.ab = __dirname + "/";
|
|
338
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
338
|
+
var __webpack_exports__ = __nccwpck_require__(755);
|
|
339
339
|
module.exports = __webpack_exports__;
|
|
340
340
|
})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
445: (module) => {
|
|
4
4
|
module.exports = function (s, t) {
|
|
5
5
|
var d = [];
|
|
6
6
|
var n = s.length;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
return d[n][m];
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
220: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
39
39
|
"use strict";
|
|
40
40
|
var _createClass = (function () {
|
|
41
41
|
function defineProperties(target, props) {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
throw new TypeError("Cannot call a class as a function");
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
var LevDist = __nccwpck_require__(
|
|
61
|
+
var LevDist = __nccwpck_require__(445);
|
|
62
62
|
var Change =
|
|
63
63
|
/*!
|
|
64
64
|
* Change
|
|
@@ -155,6 +155,6 @@
|
|
|
155
155
|
}
|
|
156
156
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
157
157
|
__nccwpck_require__.ab = __dirname + "/";
|
|
158
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
158
|
+
var __webpack_exports__ = __nccwpck_require__(220);
|
|
159
159
|
module.exports = __webpack_exports__;
|
|
160
160
|
})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
515: function (module, exports, __nccwpck_require__) {
|
|
4
4
|
module = __nccwpck_require__.nmd(module);
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
true ? factory(exports) : 0;
|
|
@@ -2174,7 +2174,7 @@
|
|
|
2174
2174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2175
2175
|
});
|
|
2176
2176
|
},
|
|
2177
|
-
|
|
2177
|
+
327: (module, exports, __nccwpck_require__) => {
|
|
2178
2178
|
"use strict";
|
|
2179
2179
|
function _typeof(obj) {
|
|
2180
2180
|
if (
|
|
@@ -2373,7 +2373,7 @@
|
|
|
2373
2373
|
return localStorage;
|
|
2374
2374
|
} catch (error) {}
|
|
2375
2375
|
}
|
|
2376
|
-
module.exports = __nccwpck_require__(
|
|
2376
|
+
module.exports = __nccwpck_require__(130)(exports);
|
|
2377
2377
|
var formatters = module.exports.formatters;
|
|
2378
2378
|
formatters.j = function (v) {
|
|
2379
2379
|
try {
|
|
@@ -2383,7 +2383,7 @@
|
|
|
2383
2383
|
}
|
|
2384
2384
|
};
|
|
2385
2385
|
},
|
|
2386
|
-
|
|
2386
|
+
130: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2387
2387
|
"use strict";
|
|
2388
2388
|
function setup(env) {
|
|
2389
2389
|
createDebug.debug = createDebug;
|
|
@@ -2392,7 +2392,7 @@
|
|
|
2392
2392
|
createDebug.disable = disable;
|
|
2393
2393
|
createDebug.enable = enable;
|
|
2394
2394
|
createDebug.enabled = enabled;
|
|
2395
|
-
createDebug.humanize = __nccwpck_require__(
|
|
2395
|
+
createDebug.humanize = __nccwpck_require__(258);
|
|
2396
2396
|
Object.keys(env).forEach(function (key) {
|
|
2397
2397
|
createDebug[key] = env[key];
|
|
2398
2398
|
});
|
|
@@ -2541,7 +2541,7 @@
|
|
|
2541
2541
|
}
|
|
2542
2542
|
module.exports = setup;
|
|
2543
2543
|
},
|
|
2544
|
-
|
|
2544
|
+
163: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2545
2545
|
"use strict";
|
|
2546
2546
|
if (
|
|
2547
2547
|
typeof process === "undefined" ||
|
|
@@ -2549,15 +2549,15 @@
|
|
|
2549
2549
|
process.browser === true ||
|
|
2550
2550
|
process.__nwjs
|
|
2551
2551
|
) {
|
|
2552
|
-
module.exports = __nccwpck_require__(
|
|
2552
|
+
module.exports = __nccwpck_require__(327);
|
|
2553
2553
|
} else {
|
|
2554
|
-
module.exports = __nccwpck_require__(
|
|
2554
|
+
module.exports = __nccwpck_require__(83);
|
|
2555
2555
|
}
|
|
2556
2556
|
},
|
|
2557
|
-
|
|
2557
|
+
83: (module, exports, __nccwpck_require__) => {
|
|
2558
2558
|
"use strict";
|
|
2559
|
-
var tty = __nccwpck_require__(
|
|
2560
|
-
var util = __nccwpck_require__(
|
|
2559
|
+
var tty = __nccwpck_require__(18);
|
|
2560
|
+
var util = __nccwpck_require__(23);
|
|
2561
2561
|
exports.init = init;
|
|
2562
2562
|
exports.log = log;
|
|
2563
2563
|
exports.formatArgs = formatArgs;
|
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
exports.useColors = useColors;
|
|
2567
2567
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2568
2568
|
try {
|
|
2569
|
-
var supportsColor = __nccwpck_require__(
|
|
2569
|
+
var supportsColor = __nccwpck_require__(970);
|
|
2570
2570
|
if (
|
|
2571
2571
|
supportsColor &&
|
|
2572
2572
|
(supportsColor.stderr || supportsColor).level >= 2
|
|
@@ -2651,7 +2651,7 @@
|
|
|
2651
2651
|
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
|
-
module.exports = __nccwpck_require__(
|
|
2654
|
+
module.exports = __nccwpck_require__(130)(exports);
|
|
2655
2655
|
var formatters = module.exports.formatters;
|
|
2656
2656
|
formatters.o = function (v) {
|
|
2657
2657
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -2668,7 +2668,7 @@
|
|
|
2668
2668
|
return util.inspect(v, this.inspectOpts);
|
|
2669
2669
|
};
|
|
2670
2670
|
},
|
|
2671
|
-
|
|
2671
|
+
166: (module) => {
|
|
2672
2672
|
"use strict";
|
|
2673
2673
|
module.exports = (flag, argv = process.argv) => {
|
|
2674
2674
|
const prefix = flag.startsWith("-")
|
|
@@ -2684,9 +2684,9 @@
|
|
|
2684
2684
|
);
|
|
2685
2685
|
};
|
|
2686
2686
|
},
|
|
2687
|
-
|
|
2688
|
-
var path = __nccwpck_require__(
|
|
2689
|
-
var fs = __nccwpck_require__(
|
|
2687
|
+
119: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2688
|
+
var path = __nccwpck_require__(928);
|
|
2689
|
+
var fs = __nccwpck_require__(896);
|
|
2690
2690
|
var _0777 = parseInt("0777", 8);
|
|
2691
2691
|
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
2692
2692
|
function mkdirP(p, opts, f, made) {
|
|
@@ -2760,7 +2760,7 @@
|
|
|
2760
2760
|
return made;
|
|
2761
2761
|
};
|
|
2762
2762
|
},
|
|
2763
|
-
|
|
2763
|
+
258: (module) => {
|
|
2764
2764
|
var s = 1e3;
|
|
2765
2765
|
var m = s * 60;
|
|
2766
2766
|
var h = m * 60;
|
|
@@ -2874,15 +2874,15 @@
|
|
|
2874
2874
|
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
2875
2875
|
}
|
|
2876
2876
|
},
|
|
2877
|
-
|
|
2877
|
+
909: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
2878
2878
|
"use strict";
|
|
2879
|
-
var fs = __nccwpck_require__(
|
|
2880
|
-
os = __nccwpck_require__(
|
|
2881
|
-
net = __nccwpck_require__(
|
|
2882
|
-
path = __nccwpck_require__(
|
|
2883
|
-
_async = __nccwpck_require__(
|
|
2884
|
-
debug = __nccwpck_require__(
|
|
2885
|
-
mkdirp = __nccwpck_require__(
|
|
2879
|
+
var fs = __nccwpck_require__(896),
|
|
2880
|
+
os = __nccwpck_require__(857),
|
|
2881
|
+
net = __nccwpck_require__(278),
|
|
2882
|
+
path = __nccwpck_require__(928),
|
|
2883
|
+
_async = __nccwpck_require__(515),
|
|
2884
|
+
debug = __nccwpck_require__(163),
|
|
2885
|
+
mkdirp = __nccwpck_require__(119).mkdirp;
|
|
2886
2886
|
var debugTestPort = debug("portfinder:testPort"),
|
|
2887
2887
|
debugGetPort = debug("portfinder:getPort"),
|
|
2888
2888
|
debugDefaultHosts = debug("portfinder:defaultHosts");
|
|
@@ -3187,11 +3187,11 @@
|
|
|
3187
3187
|
return results;
|
|
3188
3188
|
})();
|
|
3189
3189
|
},
|
|
3190
|
-
|
|
3190
|
+
970: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3191
3191
|
"use strict";
|
|
3192
|
-
const os = __nccwpck_require__(
|
|
3193
|
-
const tty = __nccwpck_require__(
|
|
3194
|
-
const hasFlag = __nccwpck_require__(
|
|
3192
|
+
const os = __nccwpck_require__(857);
|
|
3193
|
+
const tty = __nccwpck_require__(18);
|
|
3194
|
+
const hasFlag = __nccwpck_require__(166);
|
|
3195
3195
|
const { env } = process;
|
|
3196
3196
|
let flagForceColor;
|
|
3197
3197
|
if (
|
|
@@ -3336,27 +3336,27 @@
|
|
|
3336
3336
|
stderr: getSupportLevel({ isTTY: tty.isatty(2) }),
|
|
3337
3337
|
};
|
|
3338
3338
|
},
|
|
3339
|
-
|
|
3339
|
+
896: (module) => {
|
|
3340
3340
|
"use strict";
|
|
3341
3341
|
module.exports = require("fs");
|
|
3342
3342
|
},
|
|
3343
|
-
|
|
3343
|
+
278: (module) => {
|
|
3344
3344
|
"use strict";
|
|
3345
3345
|
module.exports = require("net");
|
|
3346
3346
|
},
|
|
3347
|
-
|
|
3347
|
+
857: (module) => {
|
|
3348
3348
|
"use strict";
|
|
3349
3349
|
module.exports = require("os");
|
|
3350
3350
|
},
|
|
3351
|
-
|
|
3351
|
+
928: (module) => {
|
|
3352
3352
|
"use strict";
|
|
3353
3353
|
module.exports = require("path");
|
|
3354
3354
|
},
|
|
3355
|
-
|
|
3355
|
+
18: (module) => {
|
|
3356
3356
|
"use strict";
|
|
3357
3357
|
module.exports = require("tty");
|
|
3358
3358
|
},
|
|
3359
|
-
|
|
3359
|
+
23: (module) => {
|
|
3360
3360
|
"use strict";
|
|
3361
3361
|
module.exports = require("util");
|
|
3362
3362
|
},
|
|
@@ -3396,6 +3396,6 @@
|
|
|
3396
3396
|
})();
|
|
3397
3397
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
3398
3398
|
__nccwpck_require__.ab = __dirname + "/";
|
|
3399
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
3399
|
+
var __webpack_exports__ = __nccwpck_require__(909);
|
|
3400
3400
|
module.exports = __webpack_exports__;
|
|
3401
3401
|
})();
|