@unpackjs/core 3.8.0 → 3.8.1
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 +8 -8
- package/compiled/postcss-loader/index.js +11 -11
- package/compiled/sass-loader/index.js +8 -8
- package/dist/index.js +57 -21
- package/dist-types/plugins/browserLogs.d.ts.map +1 -1
- package/dist-types/types/plugin.d.ts +1 -0
- package/dist-types/types/plugin.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
5278: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(2644);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(9117).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
2644: (__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__(444));
|
|
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__(4870));
|
|
18
|
+
var _plugins = __nccwpck_require__(6283);
|
|
19
|
+
var _utils = __nccwpck_require__(9117);
|
|
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
|
+
6283: (__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__(5056),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(6533),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(932));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
6533: (__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__(229);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(9117);
|
|
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
|
+
5056: (__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__(5245),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(9117);
|
|
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
|
+
932: (__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__(5245),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(9117);
|
|
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
|
+
9117: (__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;
|
|
@@ -8086,7 +8086,7 @@
|
|
|
8086
8086
|
"use strict";
|
|
8087
8087
|
module.exports = require("util");
|
|
8088
8088
|
},
|
|
8089
|
-
|
|
8089
|
+
4870: (module) => {
|
|
8090
8090
|
"use strict";
|
|
8091
8091
|
module.exports = JSON.parse(
|
|
8092
8092
|
'{"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"}',
|
|
@@ -8121,6 +8121,6 @@
|
|
|
8121
8121
|
}
|
|
8122
8122
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8123
8123
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8124
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8124
|
+
var __webpack_exports__ = __nccwpck_require__(5278);
|
|
8125
8125
|
module.exports = __webpack_exports__;
|
|
8126
8126
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
546: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(856)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
856: (__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__(
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(378));
|
|
13
|
+
var _utils = __nccwpck_require__(569);
|
|
14
14
|
function _interopRequireDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : { default: e };
|
|
16
16
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
569: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
928: (module) => {
|
|
313
313
|
module.exports = require("path");
|
|
314
314
|
},
|
|
315
|
-
|
|
315
|
+
378: (module) => {
|
|
316
316
|
module.exports = JSON.parse(
|
|
317
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}',
|
|
318
318
|
);
|
|
@@ -340,6 +340,6 @@
|
|
|
340
340
|
}
|
|
341
341
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
342
342
|
__nccwpck_require__.ab = __dirname + "/";
|
|
343
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
343
|
+
var __webpack_exports__ = __nccwpck_require__(546);
|
|
344
344
|
module.exports = __webpack_exports__;
|
|
345
345
|
})();
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
const promises_1 = __importDefault(__nccwpck_require__(1943));
|
|
25
25
|
const path_1 = __importDefault(__nccwpck_require__(6928));
|
|
26
26
|
const defaults_1 = __nccwpck_require__(5604);
|
|
27
|
-
const ExplorerBase_js_1 = __nccwpck_require__(
|
|
27
|
+
const ExplorerBase_js_1 = __nccwpck_require__(4255);
|
|
28
28
|
const merge_1 = __nccwpck_require__(6332);
|
|
29
29
|
const util_js_1 = __nccwpck_require__(6154);
|
|
30
30
|
class Explorer extends ExplorerBase_js_1.ExplorerBase {
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
}
|
|
225
225
|
exports.Explorer = Explorer;
|
|
226
226
|
},
|
|
227
|
-
|
|
227
|
+
4255: function (__unused_webpack_module, exports, __nccwpck_require__) {
|
|
228
228
|
"use strict";
|
|
229
229
|
var __importDefault =
|
|
230
230
|
(this && this.__importDefault) ||
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
const fs_1 = __importDefault(__nccwpck_require__(9896));
|
|
377
377
|
const path_1 = __importDefault(__nccwpck_require__(6928));
|
|
378
378
|
const defaults_1 = __nccwpck_require__(5604);
|
|
379
|
-
const ExplorerBase_js_1 = __nccwpck_require__(
|
|
379
|
+
const ExplorerBase_js_1 = __nccwpck_require__(4255);
|
|
380
380
|
const merge_1 = __nccwpck_require__(6332);
|
|
381
381
|
const util_js_1 = __nccwpck_require__(6154);
|
|
382
382
|
class ExplorerSync extends ExplorerBase_js_1.ExplorerBase {
|
|
@@ -5319,19 +5319,19 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
6636: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(1170)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
1170: (__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 _nodePath = _interopRequireDefault(__nccwpck_require__(6760));
|
|
5332
5332
|
var _package = _interopRequireDefault(__nccwpck_require__(444));
|
|
5333
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
5334
|
-
var _utils = __nccwpck_require__(
|
|
5333
|
+
var _options = _interopRequireDefault(__nccwpck_require__(3730));
|
|
5334
|
+
var _utils = __nccwpck_require__(3251);
|
|
5335
5335
|
function _interopRequireDefault(e) {
|
|
5336
5336
|
return e && e.__esModule ? e : { default: e };
|
|
5337
5337
|
}
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
callback(null, result.css, map, { ast });
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
3251: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6620,7 +6620,7 @@
|
|
|
6620
6620
|
return keywords.has(word);
|
|
6621
6621
|
}
|
|
6622
6622
|
},
|
|
6623
|
-
|
|
6623
|
+
3730: (module) => {
|
|
6624
6624
|
"use strict";
|
|
6625
6625
|
module.exports = JSON.parse(
|
|
6626
6626
|
'{"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}',
|
|
@@ -6730,6 +6730,6 @@
|
|
|
6730
6730
|
})();
|
|
6731
6731
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6732
6732
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6733
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6733
|
+
var __webpack_exports__ = __nccwpck_require__(6636);
|
|
6734
6734
|
module.exports = __webpack_exports__;
|
|
6735
6735
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
582: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(996);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
996: (__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 _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
4808
4808
|
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(136));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(538));
|
|
4810
|
+
var _utils = __nccwpck_require__(13);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4914,7 +4914,7 @@
|
|
|
4914
4914
|
}
|
|
4915
4915
|
var _default = (exports["default"] = loader);
|
|
4916
4916
|
},
|
|
4917
|
-
|
|
4917
|
+
13: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4918
4918
|
"use strict";
|
|
4919
4919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4920
4920
|
exports.errorFactory = errorFactory;
|
|
@@ -5568,7 +5568,7 @@
|
|
|
5568
5568
|
"use strict";
|
|
5569
5569
|
module.exports = require("sass");
|
|
5570
5570
|
},
|
|
5571
|
-
|
|
5571
|
+
538: (module) => {
|
|
5572
5572
|
"use strict";
|
|
5573
5573
|
module.exports = JSON.parse(
|
|
5574
5574
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack/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/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack/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/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5598,6 +5598,6 @@
|
|
|
5598
5598
|
}
|
|
5599
5599
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5600
5600
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5601
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5601
|
+
var __webpack_exports__ = __nccwpck_require__(582);
|
|
5602
5602
|
module.exports = __webpack_exports__;
|
|
5603
5603
|
})();
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import node_fs from "node:fs";
|
|
|
12
12
|
import node_net from "node:net";
|
|
13
13
|
import node_os, { platform } from "node:os";
|
|
14
14
|
import portfinder from "portfinder";
|
|
15
|
-
import { promisify } from "node:util";
|
|
15
|
+
import { format, promisify } from "node:util";
|
|
16
16
|
import { TraceMap, originalPositionFor } from "@jridgewell/trace-mapping";
|
|
17
17
|
import { parse } from "stacktrace-parser";
|
|
18
18
|
import node_zlib from "node:zlib";
|
|
@@ -744,7 +744,7 @@ class JsMinifyPlugin {
|
|
|
744
744
|
apply(compiler) {
|
|
745
745
|
let meta = JSON.stringify({
|
|
746
746
|
name: jsMinify_PLUGIN_NAME,
|
|
747
|
-
version: "3.8.
|
|
747
|
+
version: "3.8.1",
|
|
748
748
|
options: this.minifyOptions
|
|
749
749
|
});
|
|
750
750
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -892,7 +892,8 @@ class RegisterHooksPlugin {
|
|
|
892
892
|
await applyPluginsByHook('buildStart', async (impl)=>{
|
|
893
893
|
await impl({
|
|
894
894
|
compiler,
|
|
895
|
-
isFirstCompile: this.isFirstCompile
|
|
895
|
+
isFirstCompile: this.isFirstCompile,
|
|
896
|
+
isWatch: isWatch()
|
|
896
897
|
});
|
|
897
898
|
});
|
|
898
899
|
}), compiler.hooks.done.tapPromise(registerHooks_PLUGIN_NAME, async (stats)=>{
|
|
@@ -1590,7 +1591,7 @@ async function unpackDev(unpackConfig) {
|
|
|
1590
1591
|
...middlewares
|
|
1591
1592
|
]);
|
|
1592
1593
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1593
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.8.
|
|
1594
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.8.1${unpackConfig.performance?.cache ? ' ϟ' : ''}`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - getUnpackStartTime()))} ${colors.dim('ms')}\n`), printServerUrls({
|
|
1594
1595
|
port,
|
|
1595
1596
|
host: unpackConfig.server?.host,
|
|
1596
1597
|
base: unpackConfig.base
|
|
@@ -1604,7 +1605,7 @@ async function unpackDev(unpackConfig) {
|
|
|
1604
1605
|
function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'unpack' }) {
|
|
1605
1606
|
let _context = {
|
|
1606
1607
|
callerName,
|
|
1607
|
-
version: "3.8.
|
|
1608
|
+
version: "3.8.1",
|
|
1608
1609
|
cachePath: 'node_modules/.unpack'
|
|
1609
1610
|
}, resolveConfig = (mode)=>{
|
|
1610
1611
|
let rootPath, outputPath, basePath, cachedTraceMap, fs, isValidMethodName, parseFrame, formatOriginalLocation, formatFullStack, resolveErrorLocationAndStack, shouldTransformDeepImport, preJsAssets, jsAssets, cssAssets, bundledDepsCachePath, deepImportPkgPattern, deepImportRegex, root;
|
|
@@ -1721,7 +1722,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
1721
1722
|
return absPath.startsWith(rootPath + node_path.sep) && (source = node_path.relative(rootPath, absPath)), `${source}:${Number(line)}:${Number(column)}`;
|
|
1722
1723
|
})(item.message) : null;
|
|
1723
1724
|
if (locationFromMsg) return {
|
|
1724
|
-
locationSuffix: colors.dim(`
|
|
1725
|
+
locationSuffix: colors.dim(`(${locationFromMsg})`),
|
|
1725
1726
|
stackString: ''
|
|
1726
1727
|
};
|
|
1727
1728
|
if (!item.stack) return {
|
|
@@ -1732,7 +1733,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
1732
1733
|
if (userFrame) {
|
|
1733
1734
|
let parsedUserFrame = await parseFrame(userFrame), loc = parsedUserFrame ? formatOriginalLocation(parsedUserFrame.originalPosition) : null;
|
|
1734
1735
|
if (loc) return {
|
|
1735
|
-
locationSuffix: colors.dim(`
|
|
1736
|
+
locationSuffix: colors.dim(`(${loc})`),
|
|
1736
1737
|
stackString: ''
|
|
1737
1738
|
};
|
|
1738
1739
|
}
|
|
@@ -1754,14 +1755,21 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
1754
1755
|
;(() => {
|
|
1755
1756
|
if (typeof window === 'undefined' || typeof console === 'undefined') return
|
|
1756
1757
|
const endpoint = '${BROWSER_LOGS_ENDPOINT}'
|
|
1757
|
-
const levels = ['
|
|
1758
|
+
const levels = ['error', 'warn', 'debug']
|
|
1758
1759
|
|
|
1759
1760
|
const send = (level, args) => {
|
|
1760
1761
|
try {
|
|
1762
|
+
const argsList = Array.prototype.slice.call(args)
|
|
1763
|
+
if (level === 'debug') {
|
|
1764
|
+
const stackHolder = new Error()
|
|
1765
|
+
stackHolder.name = ''
|
|
1766
|
+
stackHolder.message = ''
|
|
1767
|
+
argsList.push(stackHolder)
|
|
1768
|
+
}
|
|
1761
1769
|
const payload = {
|
|
1762
1770
|
level,
|
|
1763
1771
|
time: new Date().toLocaleTimeString(),
|
|
1764
|
-
args:
|
|
1772
|
+
args: argsList.map((item) => {
|
|
1765
1773
|
try {
|
|
1766
1774
|
if (item instanceof Error) {
|
|
1767
1775
|
const name = item.name || ''
|
|
@@ -1830,13 +1838,20 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
1830
1838
|
raw += chunk.toString();
|
|
1831
1839
|
}), req.on('end', async ()=>{
|
|
1832
1840
|
try {
|
|
1833
|
-
let { level
|
|
1841
|
+
let { level, time, args = [] } = JSON.parse(raw || '{}'), formattedArgs = await Promise.all(args.map(async (item)=>{
|
|
1834
1842
|
if (!item) return '';
|
|
1835
1843
|
if ('error' === item.type) {
|
|
1836
|
-
let { locationSuffix, stackString } = await resolveErrorLocationAndStack(item);
|
|
1837
|
-
return `${
|
|
1844
|
+
let { locationSuffix, stackString } = await resolveErrorLocationAndStack(item), msg = item.message || '', suffix = locationSuffix ? msg ? ` ${locationSuffix}` : locationSuffix : '';
|
|
1845
|
+
return `${msg}${suffix}${stackString}`;
|
|
1838
1846
|
}
|
|
1839
1847
|
switch(item.type){
|
|
1848
|
+
case 'string':
|
|
1849
|
+
return ((message)=>{
|
|
1850
|
+
let trimmed = message.trim();
|
|
1851
|
+
if (!trimmed) return !0;
|
|
1852
|
+
let normalizedFirstLine = (trimmed.split('\n', 1)[0]?.trim() || '').replace(/`/g, '');
|
|
1853
|
+
return /^at\s+/.test(normalizedFirstLine);
|
|
1854
|
+
})(item.message) ? '' : item.message;
|
|
1840
1855
|
case 'null':
|
|
1841
1856
|
return null;
|
|
1842
1857
|
case 'undefined':
|
|
@@ -1846,20 +1861,41 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
1846
1861
|
default:
|
|
1847
1862
|
return item.message;
|
|
1848
1863
|
}
|
|
1849
|
-
}))
|
|
1864
|
+
})), outputArgs = ((args)=>{
|
|
1865
|
+
if (args.length < 2 || 'string' != typeof args[0]) return args;
|
|
1866
|
+
let template = args[0];
|
|
1867
|
+
if (!/%[sdifoOj%c%]/.test(template)) return args;
|
|
1868
|
+
let rest = args.slice(1), cleanedTemplate = '';
|
|
1869
|
+
for(let i = 0; i < template.length; i++){
|
|
1870
|
+
let ch = template[i];
|
|
1871
|
+
if ('%' !== ch || i + 1 >= template.length) {
|
|
1872
|
+
cleanedTemplate += ch;
|
|
1873
|
+
continue;
|
|
1874
|
+
}
|
|
1875
|
+
let next = template[i + 1];
|
|
1876
|
+
if ('%' === next) {
|
|
1877
|
+
cleanedTemplate += '%%', i++;
|
|
1878
|
+
continue;
|
|
1879
|
+
}
|
|
1880
|
+
if ('c' === next) {
|
|
1881
|
+
rest.length > 0 && rest.shift(), i++;
|
|
1882
|
+
continue;
|
|
1883
|
+
}
|
|
1884
|
+
cleanedTemplate += `%${next}`, i++;
|
|
1885
|
+
}
|
|
1886
|
+
return [
|
|
1887
|
+
format(cleanedTemplate, ...rest)
|
|
1888
|
+
];
|
|
1889
|
+
})(formattedArgs), prefix = colors.dim(`[browser ${time}]`);
|
|
1850
1890
|
switch(level){
|
|
1851
1891
|
case 'error':
|
|
1852
|
-
logger_logger.error(`${prefix} ${
|
|
1892
|
+
logger_logger.error(`${prefix} ${outputArgs.join(' ')}`);
|
|
1853
1893
|
break;
|
|
1854
1894
|
case 'warn':
|
|
1855
|
-
logger_logger.warn(`${prefix} ${
|
|
1856
|
-
break;
|
|
1857
|
-
case 'info':
|
|
1858
|
-
default:
|
|
1859
|
-
logger_logger.info(prefix, ...formattedArgs);
|
|
1895
|
+
logger_logger.warn(`${prefix} ${outputArgs.join(' ')}`);
|
|
1860
1896
|
break;
|
|
1861
1897
|
case 'debug':
|
|
1862
|
-
logger_logger.
|
|
1898
|
+
logger_logger.info(prefix, ...outputArgs);
|
|
1863
1899
|
}
|
|
1864
1900
|
} catch (e) {
|
|
1865
1901
|
logger_logger.error('Failed to parse browser log payload', e);
|
|
@@ -2219,7 +2255,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2219
2255
|
let mode = watch ? 'development' : 'production';
|
|
2220
2256
|
setNodeEnv(mode);
|
|
2221
2257
|
let config = resolveConfig(mode);
|
|
2222
|
-
console.log(colors.brand(`${callerName} v3.8.
|
|
2258
|
+
console.log(colors.brand(`${callerName} v3.8.1${config.performance?.cache ? ' ϟ' : ''}`), colors.cyan(`building for ${mode}...`)), await unpackBuild(config);
|
|
2223
2259
|
},
|
|
2224
2260
|
dev: async ()=>{
|
|
2225
2261
|
setUnpackStartTime(performance.now());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserLogs.d.ts","sourceRoot":"","sources":["../../src/plugins/browserLogs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA6B7C,eAAO,MAAM,iBAAiB,QAAO,
|
|
1
|
+
{"version":3,"file":"browserLogs.d.ts","sourceRoot":"","sources":["../../src/plugins/browserLogs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA6B7C,eAAO,MAAM,iBAAiB,QAAO,YA+YpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/types/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEzF,KAAK,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,eAAe,CAAC,CAAA;AAE1E,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,KAAK,GAAG,OAAO,CAAA;IACxB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EACF,KAAK,GACL,OAAO,GACP,CAAC,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,EAAE,cAAc,KAAK,OAAO,GAAG,SAAS,CAAC,CAAA;IAC/E,MAAM,CAAC,EAAE,CACP,MAAM,EAAE,mBAAmB,EAC3B,OAAO,EAAE,aAAa,GAAG;QACvB,WAAW,EAAE,CAAC,GAAG,OAAO,EAAE,mBAAmB,EAAE,KAAK,mBAAmB,CAAA;KACxE,KACE,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAA;IACvD,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC/D,aAAa,CAAC,EAAE,CACd,MAAM,EAAE,oBAAoB,EA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CAAC,EAAE,CAAC,OAAO,EAAE;QACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAA;QACzB,cAAc,EAAE,OAAO,CAAA;QACvB,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAA;KACpB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAC3B,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
38
38
|
"@rsdoctor/rspack-plugin": "1.4.0",
|
|
39
|
-
"@rspack/core": "1.7.
|
|
39
|
+
"@rspack/core": "1.7.1",
|
|
40
40
|
"@rspack/dev-server": "1.1.5",
|
|
41
41
|
"chokidar": "5.0.0",
|
|
42
42
|
"dotenv-expand": "12.0.3",
|
|
43
43
|
"jiti": "2.6.1",
|
|
44
|
-
"oxc-minify": "0.
|
|
44
|
+
"oxc-minify": "0.107.0",
|
|
45
45
|
"portfinder": "1.0.38",
|
|
46
46
|
"postcss": "8.5.6",
|
|
47
47
|
"stacktrace-parser": "0.1.11",
|