@unpackjs/core 1.6.2 → 1.6.3
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 +8 -8
- package/compiled/sass-loader/index.js +8 -8
- package/dist/bundler-config/experimentCss.cjs +2 -2
- package/dist/bundler-config/experimentCss.js +1 -1
- package/dist/bundler-config/index.cjs +4 -3
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +3 -2
- package/dist/createUnpack.cjs +3 -3
- package/dist/createUnpack.js +4 -4
- package/dist/plugin-progress/rspack.cjs +12 -11
- package/dist/plugin-progress/rspack.js +12 -11
- package/dist/plugin-progress/webpack.cjs +12 -11
- package/dist/plugin-progress/webpack.js +12 -11
- package/dist/progressBar.cjs +5 -5
- package/dist/progressBar.js +4 -4
- package/dist/run/dev.cjs +1 -1
- package/dist/run/dev.js +1 -1
- package/dist/thread-loader/worker.js +1 -1
- package/dist/utils.cjs +14 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +12 -0
- package/package.json +2 -7
- package/compiled/log-update/index.d.ts +0 -1
- package/compiled/log-update/index.js +0 -1970
- package/compiled/log-update/package.json +0 -1
- package/dist/lightningcss/index.cjs +0 -21
- package/dist/lightningcss/index.d.ts +0 -2
- package/dist/lightningcss/index.d.ts.map +0 -1
- package/dist/lightningcss/index.js +0 -10
- package/dist/typed-css-modules/index.cjs +0 -21
- package/dist/typed-css-modules/index.d.ts +0 -2
- package/dist/typed-css-modules/index.d.ts.map +0 -1
- package/dist/typed-css-modules/index.js +0 -10
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
8322: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(4820);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(6805).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
4820: (__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__(977));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(3360));
|
|
16
16
|
var _semver = __nccwpck_require__(5204);
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(31));
|
|
18
|
+
var _plugins = __nccwpck_require__(8570);
|
|
19
|
+
var _utils = __nccwpck_require__(6805);
|
|
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
|
+
8570: (__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__(9456),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(9562),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(6647));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
9562: (__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__(8406);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(6805);
|
|
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
|
+
9456: (__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__(7555),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(6805);
|
|
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
|
+
6647: (__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__(7555),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(6805);
|
|
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
|
+
6805: (__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
|
+
31: (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__(8322);
|
|
8003
8003
|
module.exports = __webpack_exports__;
|
|
8004
8004
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
890: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(262)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
262: (__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__(17));
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(38));
|
|
13
|
+
var _utils = __nccwpck_require__(681);
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
16
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
681: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
17: (module) => {
|
|
308
308
|
module.exports = require("path");
|
|
309
309
|
},
|
|
310
|
-
|
|
310
|
+
38: (module) => {
|
|
311
311
|
module.exports = JSON.parse(
|
|
312
312
|
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/less-loader#webpackimporter","type":"boolean"},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack-contrib/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
313
313
|
);
|
|
@@ -335,6 +335,6 @@
|
|
|
335
335
|
}
|
|
336
336
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
337
337
|
__nccwpck_require__.ab = __dirname + "/";
|
|
338
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
338
|
+
var __webpack_exports__ = __nccwpck_require__(890);
|
|
339
339
|
module.exports = __webpack_exports__;
|
|
340
340
|
})();
|
|
@@ -93276,19 +93276,19 @@
|
|
|
93276
93276
|
module.exports = createColors();
|
|
93277
93277
|
module.exports.createColors = createColors;
|
|
93278
93278
|
},
|
|
93279
|
-
|
|
93279
|
+
7562: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
93280
93280
|
"use strict";
|
|
93281
|
-
module.exports = __nccwpck_require__(
|
|
93281
|
+
module.exports = __nccwpck_require__(2461)["default"];
|
|
93282
93282
|
},
|
|
93283
|
-
|
|
93283
|
+
2461: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
93284
93284
|
"use strict";
|
|
93285
93285
|
var __webpack_unused_export__;
|
|
93286
93286
|
__webpack_unused_export__ = { value: true };
|
|
93287
93287
|
exports["default"] = loader;
|
|
93288
93288
|
var _path = _interopRequireDefault(__nccwpck_require__(1017));
|
|
93289
93289
|
var _package = _interopRequireDefault(__nccwpck_require__(3360));
|
|
93290
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
93291
|
-
var _utils = __nccwpck_require__(
|
|
93290
|
+
var _options = _interopRequireDefault(__nccwpck_require__(5119));
|
|
93291
|
+
var _utils = __nccwpck_require__(5013);
|
|
93292
93292
|
function _interopRequireDefault(obj) {
|
|
93293
93293
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
93294
93294
|
}
|
|
@@ -93466,7 +93466,7 @@
|
|
|
93466
93466
|
callback(null, result.css, map, { ast });
|
|
93467
93467
|
}
|
|
93468
93468
|
},
|
|
93469
|
-
|
|
93469
|
+
5013: (module, exports, __nccwpck_require__) => {
|
|
93470
93470
|
"use strict";
|
|
93471
93471
|
module = __nccwpck_require__.nmd(module);
|
|
93472
93472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -94833,7 +94833,7 @@
|
|
|
94833
94833
|
};
|
|
94834
94834
|
}
|
|
94835
94835
|
},
|
|
94836
|
-
|
|
94836
|
+
5119: (module) => {
|
|
94837
94837
|
"use strict";
|
|
94838
94838
|
module.exports = JSON.parse(
|
|
94839
94839
|
'{"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}',
|
|
@@ -94943,6 +94943,6 @@
|
|
|
94943
94943
|
})();
|
|
94944
94944
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
94945
94945
|
__nccwpck_require__.ab = __dirname + "/";
|
|
94946
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
94946
|
+
var __webpack_exports__ = __nccwpck_require__(7562);
|
|
94947
94947
|
module.exports = __webpack_exports__;
|
|
94948
94948
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
522: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(326);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
326: (__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__(310));
|
|
4808
4808
|
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(364));
|
|
4810
|
+
var _utils = __nccwpck_require__(646);
|
|
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
|
+
646: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -5575,7 +5575,7 @@
|
|
|
5575
5575
|
"use strict";
|
|
5576
5576
|
module.exports = require("url");
|
|
5577
5577
|
},
|
|
5578
|
-
|
|
5578
|
+
364: (module) => {
|
|
5579
5579
|
"use strict";
|
|
5580
5580
|
module.exports = JSON.parse(
|
|
5581
5581
|
'{"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}',
|
|
@@ -5605,6 +5605,6 @@
|
|
|
5605
5605
|
}
|
|
5606
5606
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5607
5607
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5608
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5608
|
+
var __webpack_exports__ = __nccwpck_require__(522);
|
|
5609
5609
|
module.exports = __webpack_exports__;
|
|
5610
5610
|
})();
|
|
@@ -32,7 +32,7 @@ __export(experimentCss_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(experimentCss_exports);
|
|
33
33
|
var import_node_path = __toESM(require("node:path"));
|
|
34
34
|
var import_constants = require("../constants.cjs");
|
|
35
|
-
var
|
|
35
|
+
var import_plugin = require("../typed-css-modules/plugin.cjs");
|
|
36
36
|
var import_utils = require("../utils.cjs");
|
|
37
37
|
var import_helper = require("./helper.cjs");
|
|
38
38
|
function addExperimentCssSupport({
|
|
@@ -157,7 +157,7 @@ function addExperimentCssSupport({
|
|
|
157
157
|
}
|
|
158
158
|
].filter(Boolean)
|
|
159
159
|
});
|
|
160
|
-
(0, import_utils.isDev)() && config.plugins.push(new
|
|
160
|
+
(0, import_utils.isDev)() && config.plugins.push(new import_plugin.PluginTypedCssModules({ modules }));
|
|
161
161
|
return config;
|
|
162
162
|
}
|
|
163
163
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
EXPORT_LOCALS_CONVENTION,
|
|
16
16
|
THREAD_OPTIONS
|
|
17
17
|
} from "../constants.js";
|
|
18
|
-
import { PluginTypedCssModules } from "../typed-css-modules/
|
|
18
|
+
import { PluginTypedCssModules } from "../typed-css-modules/plugin.js";
|
|
19
19
|
import {
|
|
20
20
|
getCompiledPkgPath,
|
|
21
21
|
getUserDepPath,
|
|
@@ -39,7 +39,7 @@ var import_esbuild = __toESM(require("esbuild"));
|
|
|
39
39
|
var import_esbuild_loader = require("esbuild-loader");
|
|
40
40
|
var import_json5 = __toESM(require("json5"));
|
|
41
41
|
var import_constants = require("../constants.cjs");
|
|
42
|
-
var
|
|
42
|
+
var import_minimizer = require("../lightningcss/minimizer.cjs");
|
|
43
43
|
var import_logger = require("../logger.cjs");
|
|
44
44
|
var import_plugin = require("../plugin.cjs");
|
|
45
45
|
var import_rspack = require("../plugin-progress/rspack.cjs");
|
|
@@ -161,14 +161,15 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
161
161
|
},
|
|
162
162
|
experiments: {
|
|
163
163
|
lazyCompilation: (0, import_utils.isDevServer)(),
|
|
164
|
-
css: false
|
|
164
|
+
css: false,
|
|
165
|
+
...isRspack && (0, import_utils.isDev)() ? { incremental: true } : {}
|
|
165
166
|
},
|
|
166
167
|
optimization: {
|
|
167
168
|
moduleIds: (0, import_utils.isDev)() ? "named" : "deterministic",
|
|
168
169
|
minimize: Boolean(unpackConfig.build?.minify),
|
|
169
170
|
minimizer: [
|
|
170
171
|
new import_esbuild_loader.EsbuildPlugin({ implementation: import_esbuild.default }),
|
|
171
|
-
new
|
|
172
|
+
new import_minimizer.LightningcssMinifyPlugin(minifyOptions.lightningcss)
|
|
172
173
|
]
|
|
173
174
|
},
|
|
174
175
|
cache: unpackConfig.build?.cache && unpackConfig.bundler === "webpack" ? {
|
|
@@ -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;AAqBzE,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;AAqBzE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAoKhG"}
|
|
@@ -19,7 +19,7 @@ import esbuild from "esbuild";
|
|
|
19
19
|
import { EsbuildPlugin } from "esbuild-loader";
|
|
20
20
|
import json5 from "json5";
|
|
21
21
|
import { TEMPLATE_CONTENT } from "../constants.js";
|
|
22
|
-
import { LightningcssMinifyPlugin } from "../lightningcss/
|
|
22
|
+
import { LightningcssMinifyPlugin } from "../lightningcss/minimizer.js";
|
|
23
23
|
import { logger } from "../logger.js";
|
|
24
24
|
import { getNormalizedPluginsByHook } from "../plugin.js";
|
|
25
25
|
import { RspackPluginProgress } from "../plugin-progress/rspack.js";
|
|
@@ -138,7 +138,8 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
138
138
|
},
|
|
139
139
|
experiments: {
|
|
140
140
|
lazyCompilation: isDevServer(),
|
|
141
|
-
css: false
|
|
141
|
+
css: false,
|
|
142
|
+
...isRspack && isDev() ? { incremental: true } : {}
|
|
142
143
|
},
|
|
143
144
|
optimization: {
|
|
144
145
|
moduleIds: isDev() ? "named" : "deterministic",
|
package/dist/createUnpack.cjs
CHANGED
|
@@ -43,7 +43,7 @@ function createUnpack() {
|
|
|
43
43
|
outDir: "dist",
|
|
44
44
|
minify: (0, import_utils.isProd)(),
|
|
45
45
|
sourceMap: (0, import_utils.isProd)() ? false : "cheap-module-source-map",
|
|
46
|
-
parallel:
|
|
46
|
+
parallel: !(0, import_utils.isDevServer)(),
|
|
47
47
|
filenameHash: true,
|
|
48
48
|
cache: (0, import_utils.isDev)()
|
|
49
49
|
},
|
|
@@ -73,7 +73,7 @@ function createUnpack() {
|
|
|
73
73
|
build: async (unpackConfig) => {
|
|
74
74
|
(0, import_utils.setNodeEnv)("production");
|
|
75
75
|
console.log(
|
|
76
|
-
import_colors.default.rainbow(`unpack v${"1.6.
|
|
76
|
+
import_colors.default.rainbow(`unpack v${"1.6.3"}`),
|
|
77
77
|
import_colors.default.green("building for production...")
|
|
78
78
|
);
|
|
79
79
|
const config = await resolveConfig(unpackConfig);
|
|
@@ -89,7 +89,7 @@ function createUnpack() {
|
|
|
89
89
|
watch: async (unpackConfig) => {
|
|
90
90
|
(0, import_utils.setNodeEnv)("development");
|
|
91
91
|
console.log(
|
|
92
|
-
import_colors.default.rainbow(`unpack v${"1.6.
|
|
92
|
+
import_colors.default.rainbow(`unpack v${"1.6.3"}`),
|
|
93
93
|
import_colors.default.green("building for development...")
|
|
94
94
|
);
|
|
95
95
|
const config = await resolveConfig(unpackConfig);
|
package/dist/createUnpack.js
CHANGED
|
@@ -10,7 +10,7 @@ var __filename = /* @__PURE__ */ getFilename();
|
|
|
10
10
|
import colors from "./colors.js";
|
|
11
11
|
import { getNormalizedPluginsByHook } from "./plugin.js";
|
|
12
12
|
import { bundlerBuild, bundlerDev } from "./run/index.js";
|
|
13
|
-
import { isDev, isProd, mergeConfig, setDevServer, setNodeEnv } from "./utils.js";
|
|
13
|
+
import { isDev, isDevServer, isProd, mergeConfig, setDevServer, setNodeEnv } from "./utils.js";
|
|
14
14
|
function createUnpack() {
|
|
15
15
|
const resolveConfig = async (unpackConfig) => {
|
|
16
16
|
const defaultConfig = {
|
|
@@ -20,7 +20,7 @@ function createUnpack() {
|
|
|
20
20
|
outDir: "dist",
|
|
21
21
|
minify: isProd(),
|
|
22
22
|
sourceMap: isProd() ? false : "cheap-module-source-map",
|
|
23
|
-
parallel:
|
|
23
|
+
parallel: !isDevServer(),
|
|
24
24
|
filenameHash: true,
|
|
25
25
|
cache: isDev()
|
|
26
26
|
},
|
|
@@ -50,7 +50,7 @@ function createUnpack() {
|
|
|
50
50
|
build: async (unpackConfig) => {
|
|
51
51
|
setNodeEnv("production");
|
|
52
52
|
console.log(
|
|
53
|
-
colors.rainbow(`unpack v${"1.6.
|
|
53
|
+
colors.rainbow(`unpack v${"1.6.3"}`),
|
|
54
54
|
colors.green("building for production...")
|
|
55
55
|
);
|
|
56
56
|
const config = await resolveConfig(unpackConfig);
|
|
@@ -66,7 +66,7 @@ function createUnpack() {
|
|
|
66
66
|
watch: async (unpackConfig) => {
|
|
67
67
|
setNodeEnv("development");
|
|
68
68
|
console.log(
|
|
69
|
-
colors.rainbow(`unpack v${"1.6.
|
|
69
|
+
colors.rainbow(`unpack v${"1.6.3"}`),
|
|
70
70
|
colors.green("building for development...")
|
|
71
71
|
);
|
|
72
72
|
const config = await resolveConfig(unpackConfig);
|
|
@@ -52,17 +52,18 @@ class RspackPluginProgress extends import_core.rspack.ProgressPlugin {
|
|
|
52
52
|
!(0, import_utils.isProd)() && import_logger.logger.wait("building...");
|
|
53
53
|
});
|
|
54
54
|
compiler.hooks.done.tap(PLUGIN_NAME, async (stats) => {
|
|
55
|
-
if (this.startTime)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
if (!this.startTime)
|
|
56
|
+
return;
|
|
57
|
+
(0, import_utils.isProd)() && this.progressBar.done();
|
|
58
|
+
const hrtime = process.hrtime(this.startTime);
|
|
59
|
+
const compileTime = hrtime[0] + hrtime[1] / 1e9;
|
|
60
|
+
this.startTime = void 0;
|
|
61
|
+
if (!stats.hasErrors()) {
|
|
62
|
+
if ((0, import_utils.isProd)()) {
|
|
63
|
+
await (0, import_reporter.printFileSize)({ root: compiler.options.context, stats });
|
|
64
|
+
console.log(import_colors.default.green(`✓ built in ${import_colors.default.bold((0, import_utils.prettyTime)(compileTime))}`));
|
|
65
|
+
} else {
|
|
66
|
+
import_logger.logger.ready(`built in ${import_colors.default.bold((0, import_utils.prettyTime)(compileTime))}`);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
});
|
|
@@ -29,17 +29,18 @@ class RspackPluginProgress extends rspack.ProgressPlugin {
|
|
|
29
29
|
!isProd() && logger.wait("building...");
|
|
30
30
|
});
|
|
31
31
|
compiler.hooks.done.tap(PLUGIN_NAME, async (stats) => {
|
|
32
|
-
if (this.startTime)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
if (!this.startTime)
|
|
33
|
+
return;
|
|
34
|
+
isProd() && this.progressBar.done();
|
|
35
|
+
const hrtime = process.hrtime(this.startTime);
|
|
36
|
+
const compileTime = hrtime[0] + hrtime[1] / 1e9;
|
|
37
|
+
this.startTime = void 0;
|
|
38
|
+
if (!stats.hasErrors()) {
|
|
39
|
+
if (isProd()) {
|
|
40
|
+
await printFileSize({ root: compiler.options.context, stats });
|
|
41
|
+
console.log(colors.green(`✓ built in ${colors.bold(prettyTime(compileTime))}`));
|
|
42
|
+
} else {
|
|
43
|
+
logger.ready(`built in ${colors.bold(prettyTime(compileTime))}`);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
});
|
|
@@ -62,17 +62,18 @@ class WebpackPluginProgress extends import_webpack.default.ProgressPlugin {
|
|
|
62
62
|
!(0, import_utils.isProd)() && import_logger.logger.wait("building...");
|
|
63
63
|
});
|
|
64
64
|
compiler.hooks.done.tap(PLUGIN_NAME, async (stats) => {
|
|
65
|
-
if (this.startTime)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
65
|
+
if (!this.startTime)
|
|
66
|
+
return;
|
|
67
|
+
(0, import_utils.isProd)() && this.progressBar.done();
|
|
68
|
+
const hrtime = process.hrtime(this.startTime);
|
|
69
|
+
const compileTime = hrtime[0] + hrtime[1] / 1e9;
|
|
70
|
+
this.startTime = void 0;
|
|
71
|
+
if (!stats.hasErrors()) {
|
|
72
|
+
if ((0, import_utils.isProd)()) {
|
|
73
|
+
await (0, import_reporter.printFileSize)({ root: compiler.options.context, stats });
|
|
74
|
+
console.log(import_colors.default.green(`✓ built in ${import_colors.default.bold((0, import_utils.prettyTime)(compileTime))}`));
|
|
75
|
+
} else {
|
|
76
|
+
import_logger.logger.ready(`built in ${import_colors.default.bold((0, import_utils.prettyTime)(compileTime))}`);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
});
|
|
@@ -39,17 +39,18 @@ class WebpackPluginProgress extends webpack.ProgressPlugin {
|
|
|
39
39
|
!isProd() && logger.wait("building...");
|
|
40
40
|
});
|
|
41
41
|
compiler.hooks.done.tap(PLUGIN_NAME, async (stats) => {
|
|
42
|
-
if (this.startTime)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
if (!this.startTime)
|
|
43
|
+
return;
|
|
44
|
+
isProd() && this.progressBar.done();
|
|
45
|
+
const hrtime = process.hrtime(this.startTime);
|
|
46
|
+
const compileTime = hrtime[0] + hrtime[1] / 1e9;
|
|
47
|
+
this.startTime = void 0;
|
|
48
|
+
if (!stats.hasErrors()) {
|
|
49
|
+
if (isProd()) {
|
|
50
|
+
await printFileSize({ root: compiler.options.context, stats });
|
|
51
|
+
console.log(colors.green(`✓ built in ${colors.bold(prettyTime(compileTime))}`));
|
|
52
|
+
} else {
|
|
53
|
+
logger.ready(`built in ${colors.bold(prettyTime(compileTime))}`);
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
});
|
package/dist/progressBar.cjs
CHANGED
|
@@ -31,7 +31,7 @@ __export(progressBar_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(progressBar_exports);
|
|
33
33
|
var import_colors = __toESM(require("./colors.cjs"));
|
|
34
|
-
|
|
34
|
+
var import_utils = require("./utils.cjs");
|
|
35
35
|
class ProgressBar {
|
|
36
36
|
constructor() {
|
|
37
37
|
this.options = {
|
|
@@ -43,7 +43,7 @@ class ProgressBar {
|
|
|
43
43
|
}
|
|
44
44
|
update({ current: originalCurrent, message = "" }) {
|
|
45
45
|
const { columns: terminalWidth } = process.stdout;
|
|
46
|
-
const messageWidth = terminalWidth - this.options.width - this.options.prefix.length -
|
|
46
|
+
const messageWidth = terminalWidth - this.options.width - this.options.prefix.length - 8;
|
|
47
47
|
let current = originalCurrent;
|
|
48
48
|
if (originalCurrent >= 0.98) {
|
|
49
49
|
current = 1;
|
|
@@ -54,14 +54,14 @@ class ProgressBar {
|
|
|
54
54
|
const undone = import_colors.default.dim(this.options.char).repeat(undoneWidth);
|
|
55
55
|
const bar = `${done}${undone}`;
|
|
56
56
|
const prefix = this.options.prefix ? `${import_colors.default.bold(this.options.prefix)} ` : "";
|
|
57
|
-
logUpdate(
|
|
57
|
+
(0, import_utils.logUpdate)(
|
|
58
58
|
`${prefix}${bar} (${Math.floor(
|
|
59
59
|
current * 100
|
|
60
|
-
)}%) ${import_colors.default.dim(message.slice(0, messageWidth))}`
|
|
60
|
+
)}%) ${import_colors.default.dim(message.slice(0, messageWidth).padEnd(messageWidth, " "))}`
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
done() {
|
|
64
|
-
|
|
64
|
+
console.log();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/progressBar.js
CHANGED
|
@@ -8,7 +8,7 @@ var getDirname = () => path.dirname(getFilename());
|
|
|
8
8
|
var __dirname = /* @__PURE__ */ getDirname();
|
|
9
9
|
var __filename = /* @__PURE__ */ getFilename();
|
|
10
10
|
import colors from "./colors.js";
|
|
11
|
-
|
|
11
|
+
import { logUpdate } from "./utils.js";
|
|
12
12
|
class ProgressBar {
|
|
13
13
|
constructor() {
|
|
14
14
|
this.options = {
|
|
@@ -20,7 +20,7 @@ class ProgressBar {
|
|
|
20
20
|
}
|
|
21
21
|
update({ current: originalCurrent, message = "" }) {
|
|
22
22
|
const { columns: terminalWidth } = process.stdout;
|
|
23
|
-
const messageWidth = terminalWidth - this.options.width - this.options.prefix.length -
|
|
23
|
+
const messageWidth = terminalWidth - this.options.width - this.options.prefix.length - 8;
|
|
24
24
|
let current = originalCurrent;
|
|
25
25
|
if (originalCurrent >= 0.98) {
|
|
26
26
|
current = 1;
|
|
@@ -34,11 +34,11 @@ class ProgressBar {
|
|
|
34
34
|
logUpdate(
|
|
35
35
|
`${prefix}${bar} (${Math.floor(
|
|
36
36
|
current * 100
|
|
37
|
-
)}%) ${colors.dim(message.slice(0, messageWidth))}`
|
|
37
|
+
)}%) ${colors.dim(message.slice(0, messageWidth).padEnd(messageWidth, " "))}`
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
done() {
|
|
41
|
-
|
|
41
|
+
console.log();
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
export {
|