@unpackjs/core 1.7.11 → 1.7.13
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 +20 -20
- package/compiled/less-loader/index.js +20 -15
- package/compiled/less-loader/package.json +1 -1
- package/compiled/portfinder/index.d.ts +21 -1
- package/compiled/portfinder/index.js +39 -22
- package/compiled/portfinder/package.json +1 -1
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +8 -8
- package/compiled/style-loader/index.js +10 -10
- package/dist/bundler-config/index.cjs +13 -1
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +13 -1
- package/dist/bundler-config/jsMinify.cjs +1 -1
- package/dist/bundler-config/jsMinify.js +1 -1
- package/dist/createUnpack.cjs +2 -2
- package/dist/createUnpack.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +7 -39
- package/dist/logger.cjs +7 -7
- package/dist/logger.js +7 -7
- package/dist/plugin-progress/rspack.cjs +1 -1
- package/dist/plugin-progress/rspack.js +1 -1
- package/dist/plugin-progress/webpack.cjs +1 -1
- package/dist/plugin-progress/webpack.js +1 -1
- package/dist/prebundleDeps.cjs +1 -1
- package/dist/prebundleDeps.js +1 -1
- package/dist/progressBar.cjs +1 -1
- package/dist/progressBar.js +1 -1
- package/dist/reporter.cjs +2 -2
- package/dist/reporter.js +2 -2
- package/dist/run/dev.cjs +10 -9
- package/dist/run/dev.d.ts.map +1 -1
- package/dist/run/dev.js +10 -9
- package/package.json +7 -7
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
6367: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(5121);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(2028).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
5121: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(1940));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(2357));
|
|
16
16
|
var _semver = __nccwpck_require__(5200);
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(2180));
|
|
18
|
+
var _plugins = __nccwpck_require__(9182);
|
|
19
|
+
var _utils = __nccwpck_require__(2028);
|
|
20
20
|
function _interopRequireDefault(obj) {
|
|
21
21
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
22
22
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
9182: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
247
247
|
"use strict";
|
|
248
248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
249
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -265,22 +265,22 @@
|
|
|
265
265
|
},
|
|
266
266
|
});
|
|
267
267
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
268
|
+
__nccwpck_require__(7781),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(6852),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(5587));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
6852: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
279
279
|
"use strict";
|
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
281
|
exports["default"] = void 0;
|
|
282
282
|
var _icssUtils = __nccwpck_require__(4531);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(2028);
|
|
284
284
|
const plugin = (options = {}) => ({
|
|
285
285
|
postcssPlugin: "postcss-icss-parser",
|
|
286
286
|
async OnceExit(root) {
|
|
@@ -379,14 +379,14 @@
|
|
|
379
379
|
plugin.postcss = true;
|
|
380
380
|
var _default = (exports["default"] = plugin);
|
|
381
381
|
},
|
|
382
|
-
|
|
382
|
+
7781: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
383
383
|
"use strict";
|
|
384
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
385
385
|
exports["default"] = void 0;
|
|
386
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
387
387
|
__nccwpck_require__(2948),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(2028);
|
|
390
390
|
function _interopRequireDefault(obj) {
|
|
391
391
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
392
392
|
}
|
|
@@ -691,14 +691,14 @@
|
|
|
691
691
|
plugin.postcss = true;
|
|
692
692
|
var _default = (exports["default"] = plugin);
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
5587: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
695
695
|
"use strict";
|
|
696
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
697
697
|
exports["default"] = void 0;
|
|
698
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
699
699
|
__nccwpck_require__(2948),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(2028);
|
|
702
702
|
function _interopRequireDefault(obj) {
|
|
703
703
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
704
704
|
}
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
plugin.postcss = true;
|
|
1042
1042
|
var _default = (exports["default"] = plugin);
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
2028: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1045
1045
|
"use strict";
|
|
1046
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1047
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -7964,7 +7964,7 @@
|
|
|
7964
7964
|
"use strict";
|
|
7965
7965
|
module.exports = require("util");
|
|
7966
7966
|
},
|
|
7967
|
-
|
|
7967
|
+
2180: (module) => {
|
|
7968
7968
|
"use strict";
|
|
7969
7969
|
module.exports = JSON.parse(
|
|
7970
7970
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
@@ -7999,6 +7999,6 @@
|
|
|
7999
7999
|
}
|
|
8000
8000
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8001
8001
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8002
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8002
|
+
var __webpack_exports__ = __nccwpck_require__(6367);
|
|
8003
8003
|
module.exports = __webpack_exports__;
|
|
8004
8004
|
})();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
741: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(975)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
975: (__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
11
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
return
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(718));
|
|
13
|
+
var _utils = __nccwpck_require__(650);
|
|
14
|
+
function _interopRequireDefault(e) {
|
|
15
|
+
return e && e.__esModule ? e : { default: e };
|
|
16
16
|
}
|
|
17
17
|
async function lessLoader(source) {
|
|
18
18
|
const options = this.getOptions(_options.default);
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
650: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
exports.isUnsupportedUrl = isUnsupportedUrl;
|
|
121
121
|
exports.normalizeSourceMap = normalizeSourceMap;
|
|
122
122
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
123
|
-
function _interopRequireDefault(
|
|
124
|
-
return
|
|
123
|
+
function _interopRequireDefault(e) {
|
|
124
|
+
return e && e.__esModule ? e : { default: e };
|
|
125
125
|
}
|
|
126
126
|
const trailingSlash = /[/\\]$/;
|
|
127
127
|
const IS_SPECIAL_MODULE_IMPORT = /^~[^/]+$/;
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;
|
|
131
131
|
const MODULE_REQUEST_REGEX = /^[^?]*~/;
|
|
132
132
|
function createWebpackLessPlugin(loaderContext, implementation) {
|
|
133
|
+
const lessOptions = loaderContext.getOptions();
|
|
133
134
|
const resolve = loaderContext.getResolve({
|
|
134
135
|
dependencyType: "less",
|
|
135
136
|
conditionNames: ["less", "style", "..."],
|
|
@@ -187,7 +188,10 @@
|
|
|
187
188
|
async loadFile(filename, ...args) {
|
|
188
189
|
let result;
|
|
189
190
|
try {
|
|
190
|
-
if (
|
|
191
|
+
if (
|
|
192
|
+
IS_SPECIAL_MODULE_IMPORT.test(filename) ||
|
|
193
|
+
lessOptions.webpackImporter === "only"
|
|
194
|
+
) {
|
|
191
195
|
const error = new Error();
|
|
192
196
|
error.type = "Next";
|
|
193
197
|
throw error;
|
|
@@ -238,7 +242,8 @@
|
|
|
238
242
|
};
|
|
239
243
|
const plugins = lessOptions.plugins.slice();
|
|
240
244
|
const shouldUseWebpackImporter =
|
|
241
|
-
typeof loaderOptions.webpackImporter === "boolean"
|
|
245
|
+
typeof loaderOptions.webpackImporter === "boolean" ||
|
|
246
|
+
loaderOptions.webpackImporter === "only"
|
|
242
247
|
? loaderOptions.webpackImporter
|
|
243
248
|
: true;
|
|
244
249
|
if (shouldUseWebpackImporter) {
|
|
@@ -307,9 +312,9 @@
|
|
|
307
312
|
928: (module) => {
|
|
308
313
|
module.exports = require("path");
|
|
309
314
|
},
|
|
310
|
-
|
|
315
|
+
718: (module) => {
|
|
311
316
|
module.exports = JSON.parse(
|
|
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}',
|
|
317
|
+
'{"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","anyOf":[{"type":"boolean"},{"type":"string","enum":["only"]}]},"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
318
|
);
|
|
314
319
|
},
|
|
315
320
|
};
|
|
@@ -335,6 +340,6 @@
|
|
|
335
340
|
}
|
|
336
341
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
337
342
|
__nccwpck_require__.ab = __dirname + "/";
|
|
338
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
343
|
+
var __webpack_exports__ = __nccwpck_require__(741);
|
|
339
344
|
module.exports = __webpack_exports__;
|
|
340
345
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"less-loader","author":"Johannes Ewald @jhnns","version":"12.
|
|
1
|
+
{"name":"less-loader","author":"Johannes Ewald @jhnns","version":"12.3.0","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -28,6 +28,20 @@ interface PortFinderOptions {
|
|
|
28
28
|
stopPort?: number;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
type SocketfinderCallback = (err: Error, socket: string) => void;
|
|
32
|
+
|
|
33
|
+
interface SocketFinderOptions {
|
|
34
|
+
/**
|
|
35
|
+
* Mode to use when creating folder for socket if it doesn't exist
|
|
36
|
+
*/
|
|
37
|
+
mod?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Path to the socket file to create
|
|
40
|
+
* (defaults to `${exports.basePath}.sock` if not provided)
|
|
41
|
+
*/
|
|
42
|
+
path?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
31
45
|
/**
|
|
32
46
|
* The lowest port to begin any port search from.
|
|
33
47
|
*/
|
|
@@ -82,4 +96,10 @@ declare function getPorts(count: number, options: PortFinderOptions, callback: (
|
|
|
82
96
|
*/
|
|
83
97
|
declare function getPortsPromise(count: number, options?: PortFinderOptions): Promise<Array<number>>;
|
|
84
98
|
|
|
85
|
-
|
|
99
|
+
declare function getSocket(options: SocketFinderOptions): Promise<string>;
|
|
100
|
+
declare function getSocket(callback: SocketfinderCallback): void;
|
|
101
|
+
declare function getSocket(options: SocketFinderOptions, callback: SocketfinderCallback): void;
|
|
102
|
+
|
|
103
|
+
declare function getSocketPromise(options?: SocketFinderOptions): Promise<string>;
|
|
104
|
+
|
|
105
|
+
export { basePath, basePort, getPort, getPortPromise, getPorts, getPortsPromise, getSocket, getSocketPromise, highestPort, setBasePath, setBasePort, setHighestPort };
|
|
@@ -2676,7 +2676,7 @@
|
|
|
2676
2676
|
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
2677
2677
|
}
|
|
2678
2678
|
},
|
|
2679
|
-
|
|
2679
|
+
312: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
2680
2680
|
"use strict";
|
|
2681
2681
|
const fs = __nccwpck_require__(896),
|
|
2682
2682
|
os = __nccwpck_require__(857),
|
|
@@ -2761,26 +2761,27 @@
|
|
|
2761
2761
|
exports.basePath = path;
|
|
2762
2762
|
};
|
|
2763
2763
|
internals.getPort = function (options, callback) {
|
|
2764
|
-
options.port =
|
|
2764
|
+
options.port =
|
|
2765
|
+
Number(options.port) ||
|
|
2766
|
+
Number(options.startPort) ||
|
|
2767
|
+
Number(exports.basePort);
|
|
2765
2768
|
options.host = options.host || null;
|
|
2766
2769
|
options.stopPort =
|
|
2767
2770
|
Number(options.stopPort) || Number(exports.highestPort);
|
|
2768
2771
|
if (!options.startPort) {
|
|
2769
|
-
options.startPort =
|
|
2772
|
+
options.startPort = options.port;
|
|
2770
2773
|
if (options.startPort < 0) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
options.
|
|
2774
|
-
|
|
2774
|
+
return callback(
|
|
2775
|
+
Error(
|
|
2776
|
+
`Provided options.port(${options.port}) is less than 0, which are cannot be bound.`,
|
|
2777
|
+
),
|
|
2775
2778
|
);
|
|
2776
2779
|
}
|
|
2777
2780
|
if (options.stopPort < options.startPort) {
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
options.stopPort
|
|
2781
|
-
|
|
2782
|
-
options.startPort +
|
|
2783
|
-
")",
|
|
2781
|
+
return callback(
|
|
2782
|
+
Error(
|
|
2783
|
+
`Provided options.stopPort(${options.stopPort}) is less than options.port(${options.startPort})`,
|
|
2784
|
+
),
|
|
2784
2785
|
);
|
|
2785
2786
|
}
|
|
2786
2787
|
}
|
|
@@ -2886,7 +2887,7 @@
|
|
|
2886
2887
|
});
|
|
2887
2888
|
});
|
|
2888
2889
|
} else {
|
|
2889
|
-
|
|
2890
|
+
internals.getPort(options, callback);
|
|
2890
2891
|
}
|
|
2891
2892
|
};
|
|
2892
2893
|
exports.getPortPromise = exports.getPort;
|
|
@@ -2926,15 +2927,11 @@
|
|
|
2926
2927
|
});
|
|
2927
2928
|
});
|
|
2928
2929
|
} else {
|
|
2929
|
-
|
|
2930
|
+
internals.getPorts(count, options, callback);
|
|
2930
2931
|
}
|
|
2931
2932
|
};
|
|
2932
2933
|
exports.getPortsPromise = exports.getPorts;
|
|
2933
|
-
|
|
2934
|
-
if (!callback) {
|
|
2935
|
-
callback = options;
|
|
2936
|
-
options = {};
|
|
2937
|
-
}
|
|
2934
|
+
internals.getSocket = function (options, callback) {
|
|
2938
2935
|
options.mod = options.mod || parseInt(755, 8);
|
|
2939
2936
|
options.path = options.path || exports.basePath + ".sock";
|
|
2940
2937
|
function testSocket() {
|
|
@@ -2947,7 +2944,7 @@
|
|
|
2947
2944
|
}
|
|
2948
2945
|
} else {
|
|
2949
2946
|
options.path = exports.nextSocket(options.path);
|
|
2950
|
-
|
|
2947
|
+
internals.getSocket(options, callback);
|
|
2951
2948
|
}
|
|
2952
2949
|
});
|
|
2953
2950
|
}
|
|
@@ -2972,6 +2969,26 @@
|
|
|
2972
2969
|
}
|
|
2973
2970
|
return options.exists ? testSocket() : checkAndTestSocket();
|
|
2974
2971
|
};
|
|
2972
|
+
exports.getSocket = function (options, callback) {
|
|
2973
|
+
if (typeof options === "function") {
|
|
2974
|
+
callback = options;
|
|
2975
|
+
options = {};
|
|
2976
|
+
}
|
|
2977
|
+
options = options || {};
|
|
2978
|
+
if (!callback) {
|
|
2979
|
+
return new Promise(function (resolve, reject) {
|
|
2980
|
+
internals.getSocket(options, function (err, socketPath) {
|
|
2981
|
+
if (err) {
|
|
2982
|
+
return reject(err);
|
|
2983
|
+
}
|
|
2984
|
+
resolve(socketPath);
|
|
2985
|
+
});
|
|
2986
|
+
});
|
|
2987
|
+
} else {
|
|
2988
|
+
internals.getSocket(options, callback);
|
|
2989
|
+
}
|
|
2990
|
+
};
|
|
2991
|
+
exports.getSocketPromise = exports.getSocket;
|
|
2975
2992
|
exports.nextPort = function (port) {
|
|
2976
2993
|
return port + 1;
|
|
2977
2994
|
};
|
|
@@ -3209,6 +3226,6 @@
|
|
|
3209
3226
|
}
|
|
3210
3227
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
3211
3228
|
__nccwpck_require__.ab = __dirname + "/";
|
|
3212
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
3229
|
+
var __webpack_exports__ = __nccwpck_require__(312);
|
|
3213
3230
|
module.exports = __webpack_exports__;
|
|
3214
3231
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"portfinder","author":"Charlie Robbins <charlie.robbins@gmail.com>, Erik Trom <erik.trom@gmail.com>","version":"1.0.
|
|
1
|
+
{"name":"portfinder","author":"Charlie Robbins <charlie.robbins@gmail.com>, Erik Trom <erik.trom@gmail.com>","version":"1.0.37","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -5319,19 +5319,19 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
9901: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(8855)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
8855: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5327
5327
|
"use strict";
|
|
5328
5328
|
var __webpack_unused_export__;
|
|
5329
5329
|
__webpack_unused_export__ = { value: true };
|
|
5330
5330
|
exports["default"] = loader;
|
|
5331
5331
|
var _path = _interopRequireDefault(__nccwpck_require__(6928));
|
|
5332
5332
|
var _package = _interopRequireDefault(__nccwpck_require__(2357));
|
|
5333
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
5334
|
-
var _utils = __nccwpck_require__(
|
|
5333
|
+
var _options = _interopRequireDefault(__nccwpck_require__(950));
|
|
5334
|
+
var _utils = __nccwpck_require__(3346);
|
|
5335
5335
|
function _interopRequireDefault(obj) {
|
|
5336
5336
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
5337
5337
|
}
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
callback(null, result.css, map, { ast });
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
3346: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6607,7 +6607,7 @@
|
|
|
6607
6607
|
return keywords.has(word);
|
|
6608
6608
|
}
|
|
6609
6609
|
},
|
|
6610
|
-
|
|
6610
|
+
950: (module) => {
|
|
6611
6611
|
"use strict";
|
|
6612
6612
|
module.exports = JSON.parse(
|
|
6613
6613
|
'{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
|
|
@@ -6717,6 +6717,6 @@
|
|
|
6717
6717
|
})();
|
|
6718
6718
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6719
6719
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6720
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6720
|
+
var __webpack_exports__ = __nccwpck_require__(9901);
|
|
6721
6721
|
module.exports = __webpack_exports__;
|
|
6722
6722
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
34: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(840);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
840: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4804
4804
|
"use strict";
|
|
4805
4805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4806
4806
|
exports["default"] = void 0;
|
|
4807
4807
|
var _url = _interopRequireDefault(__nccwpck_require__(16));
|
|
4808
4808
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(41));
|
|
4810
|
+
var _utils = __nccwpck_require__(265);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4917,7 +4917,7 @@
|
|
|
4917
4917
|
}
|
|
4918
4918
|
var _default = (exports["default"] = loader);
|
|
4919
4919
|
},
|
|
4920
|
-
|
|
4920
|
+
265: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
"use strict";
|
|
5583
5583
|
module.exports = require("url");
|
|
5584
5584
|
},
|
|
5585
|
-
|
|
5585
|
+
41: (module) => {
|
|
5586
5586
|
"use strict";
|
|
5587
5587
|
module.exports = JSON.parse(
|
|
5588
5588
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5612,6 +5612,6 @@
|
|
|
5612
5612
|
}
|
|
5613
5613
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5614
5614
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5615
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5615
|
+
var __webpack_exports__ = __nccwpck_require__(34);
|
|
5616
5616
|
module.exports = __webpack_exports__;
|
|
5617
5617
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
4
|
+
697: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
const loader = __nccwpck_require__(283);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
},
|
|
8
|
-
|
|
8
|
+
283: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
13
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(734);
|
|
13
|
+
var _options = _interopRequireDefault(__nccwpck_require__(802));
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
16
|
}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
};
|
|
96
96
|
var _default = (exports["default"] = loader);
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
528: (module) => {
|
|
99
99
|
function isEqualLocals(a, b, isNamedExport) {
|
|
100
100
|
if ((!a && b) || (a && !b)) {
|
|
101
101
|
return false;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
module.exports = isEqualLocals;
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
734: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
125
125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126
126
|
exports.getExportLazyStyleCode = getExportLazyStyleCode;
|
|
127
127
|
exports.getExportStyleCode = getExportStyleCode;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
exports.getdomAPI = getdomAPI;
|
|
143
143
|
exports.stringifyRequest = stringifyRequest;
|
|
144
144
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
145
|
-
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(
|
|
145
|
+
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(528));
|
|
146
146
|
function _interopRequireDefault(obj) {
|
|
147
147
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
148
148
|
}
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
928: (module) => {
|
|
338
338
|
module.exports = require("path");
|
|
339
339
|
},
|
|
340
|
-
|
|
340
|
+
802: (module) => {
|
|
341
341
|
module.exports = JSON.parse(
|
|
342
342
|
'{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","type":"string"},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","type":"string"}},"additionalProperties":false}',
|
|
343
343
|
);
|
|
@@ -365,6 +365,6 @@
|
|
|
365
365
|
}
|
|
366
366
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
367
367
|
__nccwpck_require__.ab = __dirname + "/";
|
|
368
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
368
|
+
var __webpack_exports__ = __nccwpck_require__(697);
|
|
369
369
|
module.exports = __webpack_exports__;
|
|
370
370
|
})();
|
|
@@ -104,6 +104,7 @@ var __webpack_exports__ = {};
|
|
|
104
104
|
};
|
|
105
105
|
const minifyOptions = (0, external_utils_cjs_namespaceObject.isPlainObject)(null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify) ? null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.minify : {};
|
|
106
106
|
const PluginProgress = isRspack ? rspack_cjs_namespaceObject.RspackPluginProgress : webpack_cjs_namespaceObject.WebpackPluginProgress;
|
|
107
|
+
const wasmFilename = 'js/[hash].module.wasm';
|
|
107
108
|
let config = {
|
|
108
109
|
context: unpackConfig.root,
|
|
109
110
|
mode: (0, external_utils_cjs_namespaceObject.isDev)() ? 'development' : 'production',
|
|
@@ -118,7 +119,8 @@ var __webpack_exports__ = {};
|
|
|
118
119
|
chunkFilename: JS_FILENAME,
|
|
119
120
|
crossOriginLoading: 'anonymous',
|
|
120
121
|
pathinfo: false,
|
|
121
|
-
publicPath: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.publicPath
|
|
122
|
+
publicPath: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.publicPath,
|
|
123
|
+
webassemblyModuleFilename: wasmFilename
|
|
122
124
|
},
|
|
123
125
|
infrastructureLogging: {
|
|
124
126
|
level: 'warn'
|
|
@@ -133,6 +135,14 @@ var __webpack_exports__ = {};
|
|
|
133
135
|
{
|
|
134
136
|
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
|
135
137
|
type: 'asset/resource'
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
test: /\.wasm$/,
|
|
141
|
+
dependency: 'url',
|
|
142
|
+
type: 'asset/resource',
|
|
143
|
+
generator: {
|
|
144
|
+
filename: wasmFilename
|
|
145
|
+
}
|
|
136
146
|
}
|
|
137
147
|
]
|
|
138
148
|
},
|
|
@@ -201,12 +211,14 @@ var __webpack_exports__ = {};
|
|
|
201
211
|
'.ts',
|
|
202
212
|
'.jsx',
|
|
203
213
|
'.js',
|
|
214
|
+
'.wasm',
|
|
204
215
|
...(null == (_unpackConfig_resolve1 = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve1.extensions) || []
|
|
205
216
|
]
|
|
206
217
|
},
|
|
207
218
|
experiments: {
|
|
208
219
|
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && (0, external_utils_cjs_namespaceObject.isDevServer)(),
|
|
209
220
|
css: false,
|
|
221
|
+
asyncWebAssembly: true,
|
|
210
222
|
...isRspack && (0, external_utils_cjs_namespaceObject.isDev)() ? {
|
|
211
223
|
incremental: true
|
|
212
224
|
} : {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAmBzE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAmBzE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAgMhG"}
|
|
@@ -67,6 +67,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
67
67
|
};
|
|
68
68
|
const minifyOptions = (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isPlainObject)(null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify) ? null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.minify : {};
|
|
69
69
|
const PluginProgress = isRspack ? __WEBPACK_EXTERNAL_MODULE__plugin_progress_rspack_js_7c160de9__.RspackPluginProgress : __WEBPACK_EXTERNAL_MODULE__plugin_progress_webpack_js_077e3654__.WebpackPluginProgress;
|
|
70
|
+
const wasmFilename = 'js/[hash].module.wasm';
|
|
70
71
|
let config = {
|
|
71
72
|
context: unpackConfig.root,
|
|
72
73
|
mode: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDev)() ? 'development' : 'production',
|
|
@@ -81,7 +82,8 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
81
82
|
chunkFilename: JS_FILENAME,
|
|
82
83
|
crossOriginLoading: 'anonymous',
|
|
83
84
|
pathinfo: false,
|
|
84
|
-
publicPath: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.publicPath
|
|
85
|
+
publicPath: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.publicPath,
|
|
86
|
+
webassemblyModuleFilename: wasmFilename
|
|
85
87
|
},
|
|
86
88
|
infrastructureLogging: {
|
|
87
89
|
level: 'warn'
|
|
@@ -96,6 +98,14 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
96
98
|
{
|
|
97
99
|
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
|
98
100
|
type: 'asset/resource'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
test: /\.wasm$/,
|
|
104
|
+
dependency: 'url',
|
|
105
|
+
type: 'asset/resource',
|
|
106
|
+
generator: {
|
|
107
|
+
filename: wasmFilename
|
|
108
|
+
}
|
|
99
109
|
}
|
|
100
110
|
]
|
|
101
111
|
},
|
|
@@ -164,12 +174,14 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
164
174
|
'.ts',
|
|
165
175
|
'.jsx',
|
|
166
176
|
'.js',
|
|
177
|
+
'.wasm',
|
|
167
178
|
...(null == (_unpackConfig_resolve1 = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve1.extensions) || []
|
|
168
179
|
]
|
|
169
180
|
},
|
|
170
181
|
experiments: {
|
|
171
182
|
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDevServer)(),
|
|
172
183
|
css: false,
|
|
184
|
+
asyncWebAssembly: true,
|
|
173
185
|
...isRspack && (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDev)() ? {
|
|
174
186
|
incremental: true
|
|
175
187
|
} : {}
|
|
@@ -56,7 +56,7 @@ class JsMinifyPlugin {
|
|
|
56
56
|
const { implementation, ...transformOptions } = this.options;
|
|
57
57
|
const meta = JSON.stringify({
|
|
58
58
|
name: PLUGIN_NAME,
|
|
59
|
-
version: "1.7.
|
|
59
|
+
version: "1.7.13",
|
|
60
60
|
options: transformOptions
|
|
61
61
|
});
|
|
62
62
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
|
@@ -20,7 +20,7 @@ class JsMinifyPlugin {
|
|
|
20
20
|
const { implementation, ...transformOptions } = this.options;
|
|
21
21
|
const meta = JSON.stringify({
|
|
22
22
|
name: PLUGIN_NAME,
|
|
23
|
-
version: "1.7.
|
|
23
|
+
version: "1.7.13",
|
|
24
24
|
options: transformOptions
|
|
25
25
|
});
|
|
26
26
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
package/dist/createUnpack.cjs
CHANGED
|
@@ -86,7 +86,7 @@ function createUnpack() {
|
|
|
86
86
|
return {
|
|
87
87
|
build: async (unpackConfig)=>{
|
|
88
88
|
(0, external_utils_cjs_namespaceObject.setNodeEnv)('production');
|
|
89
|
-
console.log(external_colors_cjs_default().rainbow("unpack v1.7.
|
|
89
|
+
console.log(external_colors_cjs_default().rainbow("unpack v1.7.13"), external_colors_cjs_default().green('building for production...'));
|
|
90
90
|
const config = await resolveConfig(unpackConfig);
|
|
91
91
|
(0, index_cjs_namespaceObject.bundlerBuild)(config);
|
|
92
92
|
},
|
|
@@ -99,7 +99,7 @@ function createUnpack() {
|
|
|
99
99
|
},
|
|
100
100
|
watch: async (unpackConfig)=>{
|
|
101
101
|
(0, external_utils_cjs_namespaceObject.setNodeEnv)('development');
|
|
102
|
-
console.log(external_colors_cjs_default().rainbow("unpack v1.7.
|
|
102
|
+
console.log(external_colors_cjs_default().rainbow("unpack v1.7.13"), external_colors_cjs_default().green('building for development...'));
|
|
103
103
|
const config = await resolveConfig(unpackConfig);
|
|
104
104
|
(0, index_cjs_namespaceObject.bundlerBuild)(config);
|
|
105
105
|
}
|
package/dist/createUnpack.js
CHANGED
|
@@ -50,7 +50,7 @@ function createUnpack() {
|
|
|
50
50
|
return {
|
|
51
51
|
build: async (unpackConfig)=>{
|
|
52
52
|
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('production');
|
|
53
|
-
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.
|
|
53
|
+
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.13"), __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].green('building for production...'));
|
|
54
54
|
const config = await resolveConfig(unpackConfig);
|
|
55
55
|
(0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerBuild)(config);
|
|
56
56
|
},
|
|
@@ -63,7 +63,7 @@ function createUnpack() {
|
|
|
63
63
|
},
|
|
64
64
|
watch: async (unpackConfig)=>{
|
|
65
65
|
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('development');
|
|
66
|
-
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.
|
|
66
|
+
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.13"), __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].green('building for development...'));
|
|
67
67
|
const config = await resolveConfig(unpackConfig);
|
|
68
68
|
(0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerBuild)(config);
|
|
69
69
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
"
|
|
3
|
+
"./colors": function(module) {
|
|
4
4
|
module.exports = require("./colors.cjs");
|
|
5
5
|
},
|
|
6
6
|
"./config": function(module) {
|
|
@@ -161,7 +161,7 @@ var __webpack_exports__ = {};
|
|
|
161
161
|
return _config__WEBPACK_IMPORTED_MODULE_7__[key];
|
|
162
162
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
163
163
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
164
|
-
var _colors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("
|
|
164
|
+
var _colors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./colors");
|
|
165
165
|
var _colors__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/ __webpack_require__.n(_colors__WEBPACK_IMPORTED_MODULE_8__);
|
|
166
166
|
var html_webpack_plugin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("html-webpack-plugin");
|
|
167
167
|
var html_webpack_plugin__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/ __webpack_require__.n(html_webpack_plugin__WEBPACK_IMPORTED_MODULE_9__);
|
package/dist/index.js
CHANGED
|
@@ -1,51 +1,19 @@
|
|
|
1
1
|
import __rslib_shim_module__ from 'module';
|
|
2
2
|
/*#__PURE__*/ import.meta.url;
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__ from "./colors.js";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__ from "./types/index.js";
|
|
5
3
|
import * as __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__ from "@rspack/core";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__ from "html-webpack-plugin";
|
|
7
4
|
import * as __WEBPACK_EXTERNAL_MODULE_webpack__ from "webpack";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__ from "./colors.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__ from "html-webpack-plugin";
|
|
8
7
|
export * from "./logger.js";
|
|
8
|
+
export * from "./types/index.js";
|
|
9
9
|
export * from "./utils.js";
|
|
10
10
|
export * from "./constants.js";
|
|
11
11
|
export * from "./createUnpack.js";
|
|
12
12
|
export * from "./config.js";
|
|
13
13
|
export * from "./watchFiles.js";
|
|
14
14
|
export * from "./global.js";
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"src/types/index": function(module) {
|
|
20
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__;
|
|
21
|
-
},
|
|
22
|
-
"@rspack/core": function(module) {
|
|
23
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__;
|
|
24
|
-
},
|
|
25
|
-
"html-webpack-plugin": function(module) {
|
|
26
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__;
|
|
27
|
-
},
|
|
28
|
-
webpack: function(module) {
|
|
29
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_webpack__;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var __webpack_module_cache__ = {};
|
|
33
|
-
function __webpack_require__(moduleId) {
|
|
34
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
35
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
36
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
37
|
-
exports: {}
|
|
38
|
-
};
|
|
39
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
40
|
-
return module.exports;
|
|
41
|
-
}
|
|
42
|
-
var core_ = __webpack_require__("@rspack/core");
|
|
43
|
-
var external_webpack_ = __webpack_require__("webpack");
|
|
44
|
-
__webpack_require__("src/types/index");
|
|
45
|
-
var external_colors_js_ = __webpack_require__("src/colors");
|
|
46
|
-
var external_html_webpack_plugin_ = __webpack_require__("html-webpack-plugin");
|
|
47
|
-
var __webpack_exports__HtmlWebpackPlugin = external_html_webpack_plugin_["default"];
|
|
48
|
-
var __webpack_exports__colors = external_colors_js_["default"];
|
|
49
|
-
var __webpack_exports__rspack = core_.rspack;
|
|
50
|
-
var __webpack_exports__webpack = external_webpack_["default"];
|
|
15
|
+
var __webpack_exports__HtmlWebpackPlugin = __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__["default"];
|
|
16
|
+
var __webpack_exports__colors = __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"];
|
|
17
|
+
var __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack;
|
|
18
|
+
var __webpack_exports__webpack = __WEBPACK_EXTERNAL_MODULE_webpack__["default"];
|
|
51
19
|
export { __webpack_exports__HtmlWebpackPlugin as HtmlWebpackPlugin, __webpack_exports__colors as colors, __webpack_exports__rspack as rspack, __webpack_exports__webpack as webpack };
|
package/dist/logger.cjs
CHANGED
|
@@ -41,13 +41,13 @@ const external_colors_cjs_namespaceObject = require("./colors.cjs");
|
|
|
41
41
|
var external_colors_cjs_default = /*#__PURE__*/ __webpack_require__.n(external_colors_cjs_namespaceObject);
|
|
42
42
|
const index_cjs_namespaceObject = require("./types/index.cjs");
|
|
43
43
|
const prefixes = {
|
|
44
|
-
wait:
|
|
45
|
-
error:
|
|
46
|
-
warn:
|
|
47
|
-
info:
|
|
48
|
-
ready:
|
|
49
|
-
event:
|
|
50
|
-
debug:
|
|
44
|
+
wait: "\u25CB",
|
|
45
|
+
error: "\u2A2F",
|
|
46
|
+
warn: "\u26A0",
|
|
47
|
+
info: "\u2139",
|
|
48
|
+
ready: "\u2713",
|
|
49
|
+
event: "\xbb",
|
|
50
|
+
debug: "\u2699"
|
|
51
51
|
};
|
|
52
52
|
const createLogger = ()=>{
|
|
53
53
|
const log = (type, message, ...args)=>{
|
package/dist/logger.js
CHANGED
|
@@ -4,13 +4,13 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__ from "node:readli
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__ from "./colors.js";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__ from "./types/index.js";
|
|
6
6
|
const prefixes = {
|
|
7
|
-
wait:
|
|
8
|
-
error:
|
|
9
|
-
warn:
|
|
10
|
-
info:
|
|
11
|
-
ready:
|
|
12
|
-
event:
|
|
13
|
-
debug:
|
|
7
|
+
wait: "\u25CB",
|
|
8
|
+
error: "\u2A2F",
|
|
9
|
+
warn: "\u26A0",
|
|
10
|
+
info: "\u2139",
|
|
11
|
+
ready: "\u2713",
|
|
12
|
+
event: "\xbb",
|
|
13
|
+
debug: "\u2699"
|
|
14
14
|
};
|
|
15
15
|
const createLogger = ()=>{
|
|
16
16
|
const log = (type, message, ...args)=>{
|
|
@@ -74,7 +74,7 @@ class RspackPluginProgress extends core_namespaceObject.rspack.ProgressPlugin {
|
|
|
74
74
|
root,
|
|
75
75
|
stats
|
|
76
76
|
});
|
|
77
|
-
console.log(external_colors_cjs_default().green(
|
|
77
|
+
console.log(external_colors_cjs_default().green(`\u{2713} built in ${external_colors_cjs_default().bold((0, external_utils_cjs_namespaceObject.prettyTime)(compileTime))}`));
|
|
78
78
|
} else {
|
|
79
79
|
const modules = stats.compilation.modules;
|
|
80
80
|
modules.forEach((module)=>{
|
|
@@ -37,7 +37,7 @@ class RspackPluginProgress extends __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096f
|
|
|
37
37
|
root,
|
|
38
38
|
stats
|
|
39
39
|
});
|
|
40
|
-
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(
|
|
40
|
+
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(`\u{2713} built in ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold((0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.prettyTime)(compileTime))}`));
|
|
41
41
|
} else {
|
|
42
42
|
const modules = stats.compilation.modules;
|
|
43
43
|
modules.forEach((module)=>{
|
|
@@ -75,7 +75,7 @@ class WebpackPluginProgress extends external_webpack_default().ProgressPlugin {
|
|
|
75
75
|
root,
|
|
76
76
|
stats
|
|
77
77
|
});
|
|
78
|
-
console.log(external_colors_cjs_default().green(
|
|
78
|
+
console.log(external_colors_cjs_default().green(`\u{2713} built in ${external_colors_cjs_default().bold((0, external_utils_cjs_namespaceObject.prettyTime)(compileTime))}`));
|
|
79
79
|
} else {
|
|
80
80
|
const modules = stats.compilation.modules;
|
|
81
81
|
modules.forEach((module)=>{
|
|
@@ -37,7 +37,7 @@ class WebpackPluginProgress extends __WEBPACK_EXTERNAL_MODULE_webpack__["default
|
|
|
37
37
|
root,
|
|
38
38
|
stats
|
|
39
39
|
});
|
|
40
|
-
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(
|
|
40
|
+
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(`\u{2713} built in ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold((0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.prettyTime)(compileTime))}`));
|
|
41
41
|
} else {
|
|
42
42
|
const modules = stats.compilation.modules;
|
|
43
43
|
modules.forEach((module)=>{
|
package/dist/prebundleDeps.cjs
CHANGED
|
@@ -95,7 +95,7 @@ const prebundleDeps = async ({ unpackConfig })=>{
|
|
|
95
95
|
};
|
|
96
96
|
const failedDeps = [];
|
|
97
97
|
const updateProgress = ()=>{
|
|
98
|
-
(0, external_utils_cjs_namespaceObject.logUpdate)(`${external_colors_cjs_default().magenta(external_colors_cjs_default().bold(
|
|
98
|
+
(0, external_utils_cjs_namespaceObject.logUpdate)(`${external_colors_cjs_default().magenta(external_colors_cjs_default().bold("\xbb"))} Optimizing dependencies (${count.bundled}/${count.total})`);
|
|
99
99
|
if (count.total === count.bundled + failedDeps.length) console.log();
|
|
100
100
|
};
|
|
101
101
|
const { root } = unpackConfig;
|
package/dist/prebundleDeps.js
CHANGED
|
@@ -54,7 +54,7 @@ const prebundleDeps = async ({ unpackConfig })=>{
|
|
|
54
54
|
};
|
|
55
55
|
const failedDeps = [];
|
|
56
56
|
const updateProgress = ()=>{
|
|
57
|
-
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.logUpdate)(`${__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].magenta(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].bold(
|
|
57
|
+
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.logUpdate)(`${__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].magenta(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].bold("\xbb"))} Optimizing dependencies (${count.bundled}/${count.total})`);
|
|
58
58
|
if (count.total === count.bundled + failedDeps.length) console.log();
|
|
59
59
|
};
|
|
60
60
|
const { root } = unpackConfig;
|
package/dist/progressBar.cjs
CHANGED
package/dist/progressBar.js
CHANGED
package/dist/reporter.cjs
CHANGED
|
@@ -136,13 +136,13 @@ async function printFileSize({ root, stats }) {
|
|
|
136
136
|
let log = external_colors_cjs_default().dim(relativeOutDir);
|
|
137
137
|
log += external_colors_cjs_default()[group.color](chunk.name.padEnd(longest + 2 - relativeOutDir.length));
|
|
138
138
|
log += external_colors_cjs_default()[sizeColor](external_colors_cjs_default().bold(displaySize(chunk.size).padStart(sizePad)));
|
|
139
|
-
if (chunk.compressedSize) log += external_colors_cjs_default().dim(`
|
|
139
|
+
if (chunk.compressedSize) log += external_colors_cjs_default().dim(` \u{2502} gzip: ${displaySize(chunk.compressedSize).padStart(compressPad)}`);
|
|
140
140
|
console.log(log);
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
let log = external_colors_cjs_default().blue(external_colors_cjs_default().bold('Total'.padEnd(longest + 2)));
|
|
144
144
|
log += external_colors_cjs_default().blue(external_colors_cjs_default().bold(displaySize(totalSize)));
|
|
145
|
-
log += external_colors_cjs_default().dim(`
|
|
145
|
+
log += external_colors_cjs_default().dim(` \u{2502} gzip: ${displaySize(totalCompressedSize)}`);
|
|
146
146
|
console.log(log);
|
|
147
147
|
}
|
|
148
148
|
exports.printFileSize = __webpack_exports__.printFileSize;
|
package/dist/reporter.js
CHANGED
|
@@ -97,13 +97,13 @@ async function printFileSize({ root, stats }) {
|
|
|
97
97
|
let log = __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].dim(relativeOutDir);
|
|
98
98
|
log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"][group.color](chunk.name.padEnd(longest + 2 - relativeOutDir.length));
|
|
99
99
|
log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"][sizeColor](__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].bold(displaySize(chunk.size).padStart(sizePad)));
|
|
100
|
-
if (chunk.compressedSize) log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].dim(`
|
|
100
|
+
if (chunk.compressedSize) log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].dim(` \u{2502} gzip: ${displaySize(chunk.compressedSize).padStart(compressPad)}`);
|
|
101
101
|
console.log(log);
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
let log = __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].blue(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].bold('Total'.padEnd(longest + 2)));
|
|
105
105
|
log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].blue(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].bold(displaySize(totalSize)));
|
|
106
|
-
log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].dim(`
|
|
106
|
+
log += __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].dim(` \u{2502} gzip: ${displaySize(totalCompressedSize)}`);
|
|
107
107
|
console.log(log);
|
|
108
108
|
}
|
|
109
109
|
export { printFileSize };
|
package/dist/run/dev.cjs
CHANGED
|
@@ -51,14 +51,14 @@ const index_cjs_namespaceObject = require("../bundler-config/index.cjs");
|
|
|
51
51
|
async function bundlerDev(originalUnpackConfig) {
|
|
52
52
|
var _unpackConfig_dev, _unpackConfig_server, _unpackConfig_server1, _unpackConfig_dev1;
|
|
53
53
|
let unpackConfig = originalUnpackConfig;
|
|
54
|
-
const
|
|
54
|
+
const isRspack = 'rspack' === unpackConfig.bundler;
|
|
55
|
+
const bundler = isRspack ? core_namespaceObject.rspack : external_webpack_default();
|
|
55
56
|
if (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.prebundle) unpackConfig = await (0, external_prebundleDeps_cjs_namespaceObject.prebundleDeps)({
|
|
56
57
|
unpackConfig
|
|
57
58
|
});
|
|
58
59
|
const config = await (0, index_cjs_namespaceObject.getBundlerConfig)(unpackConfig);
|
|
59
60
|
const compiler = bundler(config);
|
|
60
61
|
const port = await (0, external_utils_cjs_namespaceObject.getPort)(null == (_unpackConfig_server = unpackConfig.server) ? void 0 : _unpackConfig_server.port);
|
|
61
|
-
const middleware = core_namespaceObject.experiments.lazyCompilationMiddleware(compiler, config.experiments.lazyCompilation);
|
|
62
62
|
const devServerOptions = {
|
|
63
63
|
hot: true,
|
|
64
64
|
port,
|
|
@@ -69,16 +69,17 @@ async function bundlerDev(originalUnpackConfig) {
|
|
|
69
69
|
proxy: null == (_unpackConfig_server1 = unpackConfig.server) ? void 0 : _unpackConfig_server1.proxy,
|
|
70
70
|
devMiddleware: {
|
|
71
71
|
writeToDisk: null == (_unpackConfig_dev1 = unpackConfig.dev) ? void 0 : _unpackConfig_dev1.writeToDisk
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
if (isRspack) {
|
|
75
|
+
const middleware = core_namespaceObject.experiments.lazyCompilationMiddleware(compiler, config.experiments.lazyCompilation);
|
|
76
|
+
devServerOptions.setupMiddlewares = (other)=>[
|
|
75
77
|
middleware,
|
|
76
78
|
...other
|
|
77
79
|
];
|
|
78
|
-
|
|
79
|
-
};
|
|
80
|
+
}
|
|
80
81
|
const server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
|
|
81
|
-
external_logger_cjs_namespaceObject.logger.greet(` ${external_colors_cjs_default().green(`${external_colors_cjs_default().bold('UNPACK')} v1.7.
|
|
82
|
+
external_logger_cjs_namespaceObject.logger.greet(` ${external_colors_cjs_default().green(`${external_colors_cjs_default().bold('UNPACK')} v1.7.13`)} ${external_colors_cjs_default().dim(`ready in ${external_colors_cjs_default().reset(external_colors_cjs_default().bold(Math.ceil(performance.now() - global.__unpack_start_time)))}ms`)}\n`);
|
|
82
83
|
printAddressUrls(port);
|
|
83
84
|
await server.start();
|
|
84
85
|
external_global_cjs_namespaceObject.restartCleaners.push(async ()=>await server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
@@ -94,7 +95,7 @@ function printAddressUrls(port) {
|
|
|
94
95
|
});
|
|
95
96
|
const colorUrl = (url)=>external_colors_cjs_default().cyan(url.replace(/:(\d+)\//, (_, port)=>`:${external_colors_cjs_default().bold(port)}/`));
|
|
96
97
|
addressUrls.forEach((addr)=>{
|
|
97
|
-
console.log(` ${external_colors_cjs_default().green(
|
|
98
|
+
console.log(` ${external_colors_cjs_default().green("\u279C")} ${external_colors_cjs_default().bold(addr.label)}${colorUrl(addr.url)}`);
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
exports.bundlerDev = __webpack_exports__.bundlerDev;
|
package/dist/run/dev.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/run/dev.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAMnD,wBAAsB,UAAU,CAAC,oBAAoB,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/run/dev.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAMnD,wBAAsB,UAAU,CAAC,oBAAoB,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDlF"}
|
package/dist/run/dev.js
CHANGED
|
@@ -13,14 +13,14 @@ import * as __WEBPACK_EXTERNAL_MODULE__bundler_config_index_js_e76188c2__ from "
|
|
|
13
13
|
async function bundlerDev(originalUnpackConfig) {
|
|
14
14
|
var _unpackConfig_dev, _unpackConfig_server, _unpackConfig_server1, _unpackConfig_dev1;
|
|
15
15
|
let unpackConfig = originalUnpackConfig;
|
|
16
|
-
const
|
|
16
|
+
const isRspack = 'rspack' === unpackConfig.bundler;
|
|
17
|
+
const bundler = isRspack ? __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack : __WEBPACK_EXTERNAL_MODULE_webpack__["default"];
|
|
17
18
|
if (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.prebundle) unpackConfig = await (0, __WEBPACK_EXTERNAL_MODULE__prebundleDeps_js_142f70dc__.prebundleDeps)({
|
|
18
19
|
unpackConfig
|
|
19
20
|
});
|
|
20
21
|
const config = await (0, __WEBPACK_EXTERNAL_MODULE__bundler_config_index_js_e76188c2__.getBundlerConfig)(unpackConfig);
|
|
21
22
|
const compiler = bundler(config);
|
|
22
23
|
const port = await (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.getPort)(null == (_unpackConfig_server = unpackConfig.server) ? void 0 : _unpackConfig_server.port);
|
|
23
|
-
const middleware = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.experiments.lazyCompilationMiddleware(compiler, config.experiments.lazyCompilation);
|
|
24
24
|
const devServerOptions = {
|
|
25
25
|
hot: true,
|
|
26
26
|
port,
|
|
@@ -31,16 +31,17 @@ async function bundlerDev(originalUnpackConfig) {
|
|
|
31
31
|
proxy: null == (_unpackConfig_server1 = unpackConfig.server) ? void 0 : _unpackConfig_server1.proxy,
|
|
32
32
|
devMiddleware: {
|
|
33
33
|
writeToDisk: null == (_unpackConfig_dev1 = unpackConfig.dev) ? void 0 : _unpackConfig_dev1.writeToDisk
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
if (isRspack) {
|
|
37
|
+
const middleware = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.experiments.lazyCompilationMiddleware(compiler, config.experiments.lazyCompilation);
|
|
38
|
+
devServerOptions.setupMiddlewares = (other)=>[
|
|
37
39
|
middleware,
|
|
38
40
|
...other
|
|
39
41
|
];
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
+
}
|
|
42
43
|
const server = new __WEBPACK_EXTERNAL_MODULE_webpack_dev_server_0dd3124e__["default"](devServerOptions, compiler);
|
|
43
|
-
__WEBPACK_EXTERNAL_MODULE__logger_js_ff791b17__.logger.greet(` ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(`${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold('UNPACK')} v1.7.
|
|
44
|
+
__WEBPACK_EXTERNAL_MODULE__logger_js_ff791b17__.logger.greet(` ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(`${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold('UNPACK')} v1.7.13`)} ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].dim(`ready in ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].reset(__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold(Math.ceil(performance.now() - global.__unpack_start_time)))}ms`)}\n`);
|
|
44
45
|
printAddressUrls(port);
|
|
45
46
|
await server.start();
|
|
46
47
|
__WEBPACK_EXTERNAL_MODULE__global_js_83d0ec5c__.restartCleaners.push(async ()=>await server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
@@ -56,7 +57,7 @@ function printAddressUrls(port) {
|
|
|
56
57
|
});
|
|
57
58
|
const colorUrl = (url)=>__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].cyan(url.replace(/:(\d+)\//, (_, port)=>`:${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold(port)}/`));
|
|
58
59
|
addressUrls.forEach((addr)=>{
|
|
59
|
-
console.log(` ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green(
|
|
60
|
+
console.log(` ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].green("\u279C")} ${__WEBPACK_EXTERNAL_MODULE__colors_js_1d4535d6__["default"].bold(addr.label)}${colorUrl(addr.url)}`);
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
63
|
export { bundlerDev };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/sass-loader": "8.0.9",
|
|
68
68
|
"css-loader": "7.1.2",
|
|
69
|
-
"less-loader": "12.
|
|
69
|
+
"less-loader": "12.3.0",
|
|
70
70
|
"line-diff": "2.1.2",
|
|
71
|
-
"portfinder": "1.0.
|
|
71
|
+
"portfinder": "1.0.37",
|
|
72
72
|
"postcss-loader": "8.1.1",
|
|
73
73
|
"sass-loader": "16.0.5",
|
|
74
74
|
"semver": "7.7.1",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"webpack-merge": "6.0.1"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@rspack/core": "1.3.
|
|
80
|
+
"@rspack/core": "1.3.9",
|
|
81
81
|
"@types/less": "3.0.8",
|
|
82
82
|
"chokidar": "4.0.3",
|
|
83
83
|
"copy-webpack-plugin": "13.0.0",
|
|
84
84
|
"cors": "2.8.5",
|
|
85
|
-
"esbuild": "0.25.
|
|
85
|
+
"esbuild": "0.25.4",
|
|
86
86
|
"express": "5.1.0",
|
|
87
87
|
"html-webpack-plugin": "5.6.3",
|
|
88
88
|
"jiti": "2.4.2",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"picocolors": "1.1.1",
|
|
94
94
|
"postcss": "8.5.3",
|
|
95
95
|
"thread-loader": "4.0.4",
|
|
96
|
-
"tinyglobby": "0.2.
|
|
96
|
+
"tinyglobby": "0.2.13",
|
|
97
97
|
"ts-checker-rspack-plugin": "1.1.1",
|
|
98
98
|
"typed-css-modules": "0.9.1",
|
|
99
|
-
"webpack": "5.99.
|
|
99
|
+
"webpack": "5.99.8",
|
|
100
100
|
"webpack-dev-server": "5.2.1"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|