@unpackjs/core 3.5.2 → 3.5.4
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/index.cjs +13 -68
- package/dist/index.js +16 -69
- package/dist/typedCssModulesLoader.mjs +4 -4
- package/dist-types/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist-types/constants.d.ts +0 -1
- package/dist-types/constants.d.ts.map +1 -1
- package/dist-types/createUnpack.d.ts.map +1 -1
- package/dist-types/prebundleDeps.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +5 -0
- package/dist-types/types/config.d.ts.map +1 -1
- package/package.json +4 -5
- package/dist-types/bundler-config/plugins/typedCssModules.d.ts +0 -15
- package/dist-types/bundler-config/plugins/typedCssModules.d.ts.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
7264: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(3614);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(9407).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
3614: (__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__(5060));
|
|
18
|
+
var _plugins = __nccwpck_require__(5189);
|
|
19
|
+
var _utils = __nccwpck_require__(9407);
|
|
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
|
+
5189: (__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__(4934),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(2935),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(9554));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
2935: (__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__(9407);
|
|
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
|
+
4934: (__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__(9407);
|
|
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
|
+
9554: (__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__(9407);
|
|
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
|
+
9407: (__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
|
+
5060: (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__(7264);
|
|
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
|
+
220: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(762)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
762: (__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__(944));
|
|
13
|
+
var _utils = __nccwpck_require__(995);
|
|
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
|
+
995: (__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
|
+
944: (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__(220);
|
|
344
344
|
module.exports = __webpack_exports__;
|
|
345
345
|
})();
|
|
@@ -5319,19 +5319,19 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
2195: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(397)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
397: (__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__(1021));
|
|
5334
|
+
var _utils = __nccwpck_require__(4984);
|
|
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
|
+
4984: (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
|
+
1021: (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__(2195);
|
|
6734
6734
|
module.exports = __webpack_exports__;
|
|
6735
6735
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
964: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(26);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
26: (__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__(428));
|
|
4810
|
+
var _utils = __nccwpck_require__(651);
|
|
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
|
+
651: (__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
|
+
428: (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__(964);
|
|
5602
5602
|
module.exports = __webpack_exports__;
|
|
5603
5603
|
})();
|
package/dist/index.cjs
CHANGED
|
@@ -95,7 +95,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
95
95
|
setDevServer: ()=>setDevServer,
|
|
96
96
|
EXPORT_LOCALS_CONVENTION: ()=>EXPORT_LOCALS_CONVENTION,
|
|
97
97
|
isFileExists: ()=>isFileExists,
|
|
98
|
-
TEMP_DIR: ()=>TEMP_DIR,
|
|
99
98
|
isFileSync: ()=>isFileSync,
|
|
100
99
|
getPathInJs: ()=>getPathInJs,
|
|
101
100
|
getTime: ()=>getTime,
|
|
@@ -201,7 +200,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
201
200
|
jsAsync: 'js/async/[name].[contenthash:8].js',
|
|
202
201
|
css: 'css/[name].[contenthash:8].css',
|
|
203
202
|
cssAsync: 'css/async/[name].[contenthash:8].css'
|
|
204
|
-
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only',
|
|
203
|
+
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, THREAD_OPTIONS = {
|
|
205
204
|
workers: 2
|
|
206
205
|
}, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
207
206
|
<html lang="en">
|
|
@@ -713,8 +712,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
713
712
|
let getOutputFilename = ({ type, hash, async })=>{
|
|
714
713
|
let FILENAME = isProd() && !1 !== hash ? PROD_DEFAULT_FILENAME : DEV_DEFAULT_FILENAME;
|
|
715
714
|
return async ? 'js' === type ? FILENAME.jsAsync : FILENAME.cssAsync : FILENAME[type];
|
|
716
|
-
}
|
|
717
|
-
var external_typed_css_modules_default = __webpack_require__.n(external_typed_css_modules_namespaceObject);
|
|
715
|
+
};
|
|
718
716
|
function _define_property(obj, key, value) {
|
|
719
717
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
720
718
|
value: value,
|
|
@@ -723,63 +721,12 @@ for(var __webpack_i__ in (()=>{
|
|
|
723
721
|
writable: !0
|
|
724
722
|
}) : obj[key] = value, obj;
|
|
725
723
|
}
|
|
726
|
-
let statPromise = external_node_fs_default().promises.stat, DtsCreator = external_typed_css_modules_default().default || external_typed_css_modules_default();
|
|
727
|
-
async function writeFile(dtsCreator, cssFile) {
|
|
728
|
-
let content = await dtsCreator.create(cssFile, void 0, !0);
|
|
729
|
-
await content.writeFile((definition)=>`// Generated automatically, do not edit\n${definition}`);
|
|
730
|
-
}
|
|
731
|
-
async function generateTypingIfNecessary(dtsCreator, cssFile) {
|
|
732
|
-
let typingStat;
|
|
733
|
-
try {
|
|
734
|
-
typingStat = await statPromise(`${cssFile}.d.ts`);
|
|
735
|
-
} catch {
|
|
736
|
-
return writeFile(dtsCreator, cssFile);
|
|
737
|
-
}
|
|
738
|
-
if ((await statPromise(cssFile)).mtime.getTime() > typingStat.mtime.getTime()) return writeFile(dtsCreator, cssFile);
|
|
739
|
-
}
|
|
740
|
-
let typedCssModules_PLUGIN_NAME = 'TypedCssModulesPlugin';
|
|
741
|
-
class TypedCssModulesPlugin {
|
|
742
|
-
apply(compiler) {
|
|
743
|
-
compiler.hooks.run.tapPromise(typedCssModules_PLUGIN_NAME, async ()=>{
|
|
744
|
-
await this.generateCssTypings(this.useIncremental);
|
|
745
|
-
}), compiler.hooks.watchRun.tap(typedCssModules_PLUGIN_NAME, ()=>{
|
|
746
|
-
setTimeout(()=>{
|
|
747
|
-
this.generateCssTypings(this.useIncremental).catch((err)=>{
|
|
748
|
-
logger_logger.error(err.toString());
|
|
749
|
-
}).finally(()=>{
|
|
750
|
-
this.useIncremental = !0;
|
|
751
|
-
});
|
|
752
|
-
}, 100);
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
async generateCssTypings(incremental) {
|
|
756
|
-
let cssModulesFiles = (await (0, external_tinyglobby_namespaceObject.glob)(this.globPattern)).filter((file)=>isCSSModules({
|
|
757
|
-
resourcePath: file,
|
|
758
|
-
modules: this.userOptions?.modules
|
|
759
|
-
})), doTask = incremental ? generateTypingIfNecessary : writeFile;
|
|
760
|
-
return Promise.all(cssModulesFiles.map((file)=>doTask(this.dtsCreator, file)));
|
|
761
|
-
}
|
|
762
|
-
constructor(options){
|
|
763
|
-
_define_property(this, "dtsCreator", void 0), _define_property(this, "useIncremental", !1), _define_property(this, "globPattern", 'src/**/*.{css,less,scss}'), _define_property(this, "userOptions", void 0), this.userOptions = options, this.dtsCreator = new DtsCreator({
|
|
764
|
-
camelCase: !0,
|
|
765
|
-
namedExports: !1
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
function jsMinify_define_property(obj, key, value) {
|
|
770
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
771
|
-
value: value,
|
|
772
|
-
enumerable: !0,
|
|
773
|
-
configurable: !0,
|
|
774
|
-
writable: !0
|
|
775
|
-
}) : obj[key] = value, obj;
|
|
776
|
-
}
|
|
777
724
|
let { RawSource, SourceMapSource } = core_namespaceObject.rspack.sources, isJsFile = /\.[cm]?js(\?.*)?$/i, jsMinify_PLUGIN_NAME = 'JsMinifyPlugin';
|
|
778
725
|
class JsMinifyPlugin {
|
|
779
726
|
apply(compiler) {
|
|
780
727
|
let meta = JSON.stringify({
|
|
781
728
|
name: jsMinify_PLUGIN_NAME,
|
|
782
|
-
version: "3.5.
|
|
729
|
+
version: "3.5.4",
|
|
783
730
|
options: this.minifyOptions
|
|
784
731
|
});
|
|
785
732
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -814,7 +761,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
814
761
|
}));
|
|
815
762
|
}
|
|
816
763
|
constructor(options = {}){
|
|
817
|
-
|
|
764
|
+
_define_property(this, "minifyOptions", void 0), _define_property(this, "customMinify", void 0);
|
|
818
765
|
const { implementation, ...minifyOptions } = options;
|
|
819
766
|
this.customMinify = implementation?.minify, this.minifyOptions = minifyOptions;
|
|
820
767
|
}
|
|
@@ -1409,9 +1356,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1409
1356
|
type: 'css'
|
|
1410
1357
|
}
|
|
1411
1358
|
].filter(Boolean)
|
|
1412
|
-
}),
|
|
1413
|
-
modules
|
|
1414
|
-
})), config;
|
|
1359
|
+
}), config;
|
|
1415
1360
|
}({
|
|
1416
1361
|
config,
|
|
1417
1362
|
unpackConfig
|
|
@@ -1678,7 +1623,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1678
1623
|
let existExternals, cacheDir, count = {
|
|
1679
1624
|
total: 0,
|
|
1680
1625
|
bundled: 0
|
|
1681
|
-
}, failedDeps = [], root = unpackConfig.root, failedDepsCachePath2 = external_node_path_default().resolve(root,
|
|
1626
|
+
}, failedDeps = [], root = unpackConfig.root, CACHE_PATH = unpackConfig._context.cachePath, failedDepsCachePath2 = external_node_path_default().resolve(root, CACHE_PATH, 'failed-deps.json'), failedCache = (failedDepsCachePath = failedDepsCachePath2, external_node_fs_default().existsSync(failedDepsCachePath) ? JSON.parse(external_node_fs_default().readFileSync(failedDepsCachePath, 'utf-8')) : {}), updateProgress = ()=>{
|
|
1682
1627
|
logUpdate(`${colors.magenta('»')} optimizing dependencies (${count.bundled}/${count.total})`), count.total === count.bundled + failedDeps.length && console.log();
|
|
1683
1628
|
}, userOptions = isPlainObject(unpackConfig.dev?.prebundle) ? unpackConfig.dev.prebundle : {}, ignoreCSSDeps = userOptions.ignoreCSS || [], packageJson = JSON.parse(external_node_fs_default().readFileSync(external_node_path_default().resolve(root, 'package.json'), 'utf-8')), excludeDeps = [
|
|
1684
1629
|
...(externals = unpackConfig.externals, existExternals = new Set(), Array.isArray(externals) ? externals.forEach((item)=>{
|
|
@@ -1717,7 +1662,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1717
1662
|
version
|
|
1718
1663
|
};
|
|
1719
1664
|
}).filter(Boolean), bundledDeps = await Promise.all(needBundleDeps.map((depInfo)=>(({ name, entry, version })=>new Promise((resolve)=>{
|
|
1720
|
-
let pkgDir = external_node_path_default().resolve(root,
|
|
1665
|
+
let pkgDir = external_node_path_default().resolve(root, CACHE_PATH, 'umd', name), outDir = external_node_path_default().resolve(pkgDir, version), getResult = ()=>({
|
|
1721
1666
|
name,
|
|
1722
1667
|
assets: (0, external_tinyglobby_namespaceObject.globSync)('**/index.{js,css}', {
|
|
1723
1668
|
cwd: outDir,
|
|
@@ -1837,7 +1782,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1837
1782
|
failedDepsCachePath1 = failedDepsCachePath2, cache = failedCache, cacheDir = external_node_path_default().dirname(failedDepsCachePath1), external_node_fs_default().existsSync(cacheDir) || external_node_fs_default().mkdirSync(cacheDir, {
|
|
1838
1783
|
recursive: !0
|
|
1839
1784
|
}), external_node_fs_default().writeFileSync(failedDepsCachePath1, JSON.stringify(cache, null, 2), 'utf-8'), failedDeps[0] && logger_logger.warn(`something went wrong while optimizing "${colors.bold(failedDeps.join(', '))}"`);
|
|
1840
|
-
let cachePath = external_node_path_default().resolve(root,
|
|
1785
|
+
let cachePath = external_node_path_default().resolve(root, CACHE_PATH, 'umd'), [{ default: express }, { default: cors }] = await Promise.all([
|
|
1841
1786
|
import("express"),
|
|
1842
1787
|
import("cors")
|
|
1843
1788
|
]), app = express();
|
|
@@ -1925,7 +1870,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1925
1870
|
req.headers.accept?.includes('html') && (req.url = '/index.html'), next();
|
|
1926
1871
|
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1927
1872
|
let server = new dev_server_namespaceObject.RspackDevServer(devServerOptions, compiler);
|
|
1928
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.5.
|
|
1873
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.5.4`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ${colors.dim('ms')}\n`), printAddressUrls(port, unpackConfig.server?.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
1929
1874
|
let open = unpackConfig.server?.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1930
1875
|
open && openBrowser(url), setupCliShortcuts({
|
|
1931
1876
|
openPage: async ()=>{
|
|
@@ -1998,7 +1943,8 @@ for(var __webpack_i__ in (()=>{
|
|
|
1998
1943
|
...mergeConfig(defaultConfig, config),
|
|
1999
1944
|
_context: {
|
|
2000
1945
|
callerName,
|
|
2001
|
-
version: "3.5.
|
|
1946
|
+
version: "3.5.4",
|
|
1947
|
+
cachePath: 'node_modules/.unpack'
|
|
2002
1948
|
}
|
|
2003
1949
|
};
|
|
2004
1950
|
};
|
|
@@ -2006,7 +1952,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2006
1952
|
build: async ({ watch } = {})=>{
|
|
2007
1953
|
setNodeEnv(watch ? 'development' : 'production');
|
|
2008
1954
|
let config = resolveConfig();
|
|
2009
|
-
console.log(colors.brand(`${callerName} v3.5.
|
|
1955
|
+
console.log(colors.brand(`${callerName} v3.5.4`), colors.cyan(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
2010
1956
|
},
|
|
2011
1957
|
dev: async ()=>{
|
|
2012
1958
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
@@ -2033,7 +1979,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2033
1979
|
...options
|
|
2034
1980
|
});
|
|
2035
1981
|
}
|
|
2036
|
-
})(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEV_DEFAULT_FILENAME = __webpack_exports__.DEV_DEFAULT_FILENAME, exports.EXPORT_LOCALS_CONVENTION = __webpack_exports__.EXPORT_LOCALS_CONVENTION, exports.LogColor = __webpack_exports__.LogColor, exports.NODE_MODULES_REGEX = __webpack_exports__.NODE_MODULES_REGEX, exports.PROD_DEFAULT_FILENAME = __webpack_exports__.PROD_DEFAULT_FILENAME, exports.TEMPLATE_CONTENT = __webpack_exports__.TEMPLATE_CONTENT, exports.
|
|
1982
|
+
})(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEV_DEFAULT_FILENAME = __webpack_exports__.DEV_DEFAULT_FILENAME, exports.EXPORT_LOCALS_CONVENTION = __webpack_exports__.EXPORT_LOCALS_CONVENTION, exports.LogColor = __webpack_exports__.LogColor, exports.NODE_MODULES_REGEX = __webpack_exports__.NODE_MODULES_REGEX, exports.PROD_DEFAULT_FILENAME = __webpack_exports__.PROD_DEFAULT_FILENAME, exports.TEMPLATE_CONTENT = __webpack_exports__.TEMPLATE_CONTENT, exports.THREAD_OPTIONS = __webpack_exports__.THREAD_OPTIONS, exports.addRestartCleaner = __webpack_exports__.addRestartCleaner, exports.cleanUpBeforeRestart = __webpack_exports__.cleanUpBeforeRestart, exports.clearLine = __webpack_exports__.clearLine, exports.colors = __webpack_exports__.colors, exports.convertBasicAnsiColors = __webpack_exports__.convertBasicAnsiColors, exports.createChokidar = __webpack_exports__.createChokidar, exports.createUnpack = __webpack_exports__.createUnpack, exports.currentDevUnpackConfig = __webpack_exports__.currentDevUnpackConfig, exports.debounce = __webpack_exports__.debounce, exports.defineConfig = __webpack_exports__.defineConfig, exports.esVersionToBrowserslist = __webpack_exports__.esVersionToBrowserslist, exports.findExists = __webpack_exports__.findExists, exports.getAddressUrls = __webpack_exports__.getAddressUrls, exports.getCompiledPkgPath = __webpack_exports__.getCompiledPkgPath, exports.getIpv4Interfaces = __webpack_exports__.getIpv4Interfaces, exports.getNodeEnv = __webpack_exports__.getNodeEnv, exports.getPathInJs = __webpack_exports__.getPathInJs, exports.getPort = __webpack_exports__.getPort, exports.getTime = __webpack_exports__.getTime, exports.getUserDepPath = __webpack_exports__.getUserDepPath, exports.getUserDepVersion = __webpack_exports__.getUserDepVersion, exports.getValueByPath = __webpack_exports__.getValueByPath, exports.isBoolean = __webpack_exports__.isBoolean, exports.isCI = __webpack_exports__.isCI, exports.isCSSModules = __webpack_exports__.isCSSModules, exports.isDebug = __webpack_exports__.isDebug, exports.isDev = __webpack_exports__.isDev, exports.isDevServer = __webpack_exports__.isDevServer, exports.isEmptyDir = __webpack_exports__.isEmptyDir, exports.isFileExists = __webpack_exports__.isFileExists, exports.isFileSync = __webpack_exports__.isFileSync, exports.isFunction = __webpack_exports__.isFunction, exports.isNodeVersionAtLeast = __webpack_exports__.isNodeVersionAtLeast, exports.isObject = __webpack_exports__.isObject, exports.isPlainObject = __webpack_exports__.isPlainObject, exports.isProd = __webpack_exports__.isProd, exports.isRegExp = __webpack_exports__.isRegExp, exports.isString = __webpack_exports__.isString, exports.isUndefined = __webpack_exports__.isUndefined, exports.isWatch = __webpack_exports__.isWatch, exports.isWin = __webpack_exports__.isWin, exports.launchEditor = __webpack_exports__.launchEditor, exports.loadConfig = __webpack_exports__.loadConfig, exports.logUpdate = __webpack_exports__.logUpdate, exports.logger = __webpack_exports__.logger, exports.mergeConfig = __webpack_exports__.mergeConfig, exports.pathExists = __webpack_exports__.pathExists, exports.prettyTime = __webpack_exports__.prettyTime, exports.removeDir = __webpack_exports__.removeDir, exports.resolveConfigPath = __webpack_exports__.resolveConfigPath, exports.rspack = __webpack_exports__.rspack, exports.setCurrentDevUnpackConfig = __webpack_exports__.setCurrentDevUnpackConfig, exports.setDevServer = __webpack_exports__.setDevServer, exports.setNodeEnv = __webpack_exports__.setNodeEnv, exports.setValueByPath = __webpack_exports__.setValueByPath, exports.setupCliShortcuts = __webpack_exports__.setupCliShortcuts, exports.trackPerformance = __webpack_exports__.trackPerformance, __webpack_exports__)-1 === [
|
|
2037
1983
|
"CSS_MODULES_LOCAL_IDENT_NAME",
|
|
2038
1984
|
"CSS_MODULES_REGEX",
|
|
2039
1985
|
"CSS_NAMED_EXPORT",
|
|
@@ -2044,7 +1990,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
2044
1990
|
"NODE_MODULES_REGEX",
|
|
2045
1991
|
"PROD_DEFAULT_FILENAME",
|
|
2046
1992
|
"TEMPLATE_CONTENT",
|
|
2047
|
-
"TEMP_DIR",
|
|
2048
1993
|
"THREAD_OPTIONS",
|
|
2049
1994
|
"addRestartCleaner",
|
|
2050
1995
|
"cleanUpBeforeRestart",
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let lastTrackTime, lastFileInfo, logger;
|
|
2
2
|
import __rslib_shim_module__ from 'module';
|
|
3
3
|
let require = __rslib_shim_module__.createRequire(import.meta.url);
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as __rspack_external__compiled_launch_editor_index_js_29002383 from "../compiled/launch-editor/index.js";
|
|
5
|
+
import * as __rspack_external__compiled_webpack_merge_index_js_efd91626 from "../compiled/webpack-merge/index.js";
|
|
6
6
|
import { experiments, rspack } from "@rspack/core";
|
|
7
7
|
import node_readline from "node:readline";
|
|
8
8
|
import node_fs from "node:fs";
|
|
@@ -12,7 +12,6 @@ import portfinder from "portfinder";
|
|
|
12
12
|
import { expand } from "dotenv-expand";
|
|
13
13
|
import node_assert from "node:assert";
|
|
14
14
|
import { glob, globSync } from "tinyglobby";
|
|
15
|
-
import typed_css_modules from "typed-css-modules";
|
|
16
15
|
import { promisify } from "node:util";
|
|
17
16
|
import node_zlib from "node:zlib";
|
|
18
17
|
import { RspackDevServer } from "@rspack/dev-server";
|
|
@@ -20,10 +19,10 @@ import { exec, spawn } from "node:child_process";
|
|
|
20
19
|
import chokidar from "chokidar";
|
|
21
20
|
var LogColor, __webpack_modules__ = {
|
|
22
21
|
"compiled/launch-editor": function(module) {
|
|
23
|
-
module.exports =
|
|
22
|
+
module.exports = __rspack_external__compiled_launch_editor_index_js_29002383;
|
|
24
23
|
},
|
|
25
24
|
"compiled/webpack-merge": function(module) {
|
|
26
|
-
module.exports =
|
|
25
|
+
module.exports = __rspack_external__compiled_webpack_merge_index_js_efd91626;
|
|
27
26
|
}
|
|
28
27
|
}, __webpack_module_cache__ = {};
|
|
29
28
|
function __webpack_require__(moduleId) {
|
|
@@ -118,7 +117,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
|
|
|
118
117
|
jsAsync: 'js/async/[name].[contenthash:8].js',
|
|
119
118
|
css: 'css/[name].[contenthash:8].css',
|
|
120
119
|
cssAsync: 'css/async/[name].[contenthash:8].css'
|
|
121
|
-
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only',
|
|
120
|
+
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, THREAD_OPTIONS = {
|
|
122
121
|
workers: 2
|
|
123
122
|
}, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
124
123
|
<html lang="en">
|
|
@@ -637,63 +636,12 @@ function _define_property(obj, key, value) {
|
|
|
637
636
|
writable: !0
|
|
638
637
|
}) : obj[key] = value, obj;
|
|
639
638
|
}
|
|
640
|
-
let statPromise = node_fs.promises.stat, DtsCreator = typed_css_modules.default || typed_css_modules;
|
|
641
|
-
async function writeFile(dtsCreator, cssFile) {
|
|
642
|
-
let content = await dtsCreator.create(cssFile, void 0, !0);
|
|
643
|
-
await content.writeFile((definition)=>`// Generated automatically, do not edit\n${definition}`);
|
|
644
|
-
}
|
|
645
|
-
async function generateTypingIfNecessary(dtsCreator, cssFile) {
|
|
646
|
-
let typingStat;
|
|
647
|
-
try {
|
|
648
|
-
typingStat = await statPromise(`${cssFile}.d.ts`);
|
|
649
|
-
} catch {
|
|
650
|
-
return writeFile(dtsCreator, cssFile);
|
|
651
|
-
}
|
|
652
|
-
if ((await statPromise(cssFile)).mtime.getTime() > typingStat.mtime.getTime()) return writeFile(dtsCreator, cssFile);
|
|
653
|
-
}
|
|
654
|
-
let typedCssModules_PLUGIN_NAME = 'TypedCssModulesPlugin';
|
|
655
|
-
class TypedCssModulesPlugin {
|
|
656
|
-
apply(compiler) {
|
|
657
|
-
compiler.hooks.run.tapPromise(typedCssModules_PLUGIN_NAME, async ()=>{
|
|
658
|
-
await this.generateCssTypings(this.useIncremental);
|
|
659
|
-
}), compiler.hooks.watchRun.tap(typedCssModules_PLUGIN_NAME, ()=>{
|
|
660
|
-
setTimeout(()=>{
|
|
661
|
-
this.generateCssTypings(this.useIncremental).catch((err)=>{
|
|
662
|
-
logger_logger.error(err.toString());
|
|
663
|
-
}).finally(()=>{
|
|
664
|
-
this.useIncremental = !0;
|
|
665
|
-
});
|
|
666
|
-
}, 100);
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
async generateCssTypings(incremental) {
|
|
670
|
-
let cssModulesFiles = (await glob(this.globPattern)).filter((file)=>isCSSModules({
|
|
671
|
-
resourcePath: file,
|
|
672
|
-
modules: this.userOptions?.modules
|
|
673
|
-
})), doTask = incremental ? generateTypingIfNecessary : writeFile;
|
|
674
|
-
return Promise.all(cssModulesFiles.map((file)=>doTask(this.dtsCreator, file)));
|
|
675
|
-
}
|
|
676
|
-
constructor(options){
|
|
677
|
-
_define_property(this, "dtsCreator", void 0), _define_property(this, "useIncremental", !1), _define_property(this, "globPattern", 'src/**/*.{css,less,scss}'), _define_property(this, "userOptions", void 0), this.userOptions = options, this.dtsCreator = new DtsCreator({
|
|
678
|
-
camelCase: !0,
|
|
679
|
-
namedExports: !1
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
function jsMinify_define_property(obj, key, value) {
|
|
684
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
685
|
-
value: value,
|
|
686
|
-
enumerable: !0,
|
|
687
|
-
configurable: !0,
|
|
688
|
-
writable: !0
|
|
689
|
-
}) : obj[key] = value, obj;
|
|
690
|
-
}
|
|
691
639
|
let { RawSource, SourceMapSource } = rspack.sources, isJsFile = /\.[cm]?js(\?.*)?$/i, jsMinify_PLUGIN_NAME = 'JsMinifyPlugin';
|
|
692
640
|
class JsMinifyPlugin {
|
|
693
641
|
apply(compiler) {
|
|
694
642
|
let meta = JSON.stringify({
|
|
695
643
|
name: jsMinify_PLUGIN_NAME,
|
|
696
|
-
version: "3.5.
|
|
644
|
+
version: "3.5.4",
|
|
697
645
|
options: this.minifyOptions
|
|
698
646
|
});
|
|
699
647
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -728,7 +676,7 @@ class JsMinifyPlugin {
|
|
|
728
676
|
}));
|
|
729
677
|
}
|
|
730
678
|
constructor(options = {}){
|
|
731
|
-
|
|
679
|
+
_define_property(this, "minifyOptions", void 0), _define_property(this, "customMinify", void 0);
|
|
732
680
|
let { implementation, ...minifyOptions } = options;
|
|
733
681
|
this.customMinify = implementation?.minify, this.minifyOptions = minifyOptions;
|
|
734
682
|
}
|
|
@@ -1319,9 +1267,7 @@ async function getBundlerConfig(originalUnpackConfig) {
|
|
|
1319
1267
|
type: 'css'
|
|
1320
1268
|
}
|
|
1321
1269
|
].filter(Boolean)
|
|
1322
|
-
}),
|
|
1323
|
-
modules
|
|
1324
|
-
})), config;
|
|
1270
|
+
}), config;
|
|
1325
1271
|
}({
|
|
1326
1272
|
config,
|
|
1327
1273
|
unpackConfig
|
|
@@ -1586,7 +1532,7 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1586
1532
|
let existExternals, cacheDir, count = {
|
|
1587
1533
|
total: 0,
|
|
1588
1534
|
bundled: 0
|
|
1589
|
-
}, failedDeps = [], root = unpackConfig.root, failedDepsCachePath = node_path.resolve(root,
|
|
1535
|
+
}, failedDeps = [], root = unpackConfig.root, CACHE_PATH = unpackConfig._context.cachePath, failedDepsCachePath = node_path.resolve(root, CACHE_PATH, 'failed-deps.json'), failedCache = node_fs.existsSync(failedDepsCachePath) ? JSON.parse(node_fs.readFileSync(failedDepsCachePath, 'utf-8')) : {}, updateProgress = ()=>{
|
|
1590
1536
|
logUpdate(`${colors.magenta('»')} optimizing dependencies (${count.bundled}/${count.total})`), count.total === count.bundled + failedDeps.length && console.log();
|
|
1591
1537
|
}, userOptions = isPlainObject(unpackConfig.dev?.prebundle) ? unpackConfig.dev.prebundle : {}, ignoreCSSDeps = userOptions.ignoreCSS || [], packageJson = JSON.parse(node_fs.readFileSync(node_path.resolve(root, 'package.json'), 'utf-8')), excludeDeps = [
|
|
1592
1538
|
...(externals = unpackConfig.externals, existExternals = new Set(), Array.isArray(externals) ? externals.forEach((item)=>{
|
|
@@ -1625,7 +1571,7 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1625
1571
|
version
|
|
1626
1572
|
};
|
|
1627
1573
|
}).filter(Boolean), bundledDeps = await Promise.all(needBundleDeps.map((depInfo)=>(({ name, entry, version })=>new Promise((resolve)=>{
|
|
1628
|
-
let pkgDir = node_path.resolve(root,
|
|
1574
|
+
let pkgDir = node_path.resolve(root, CACHE_PATH, 'umd', name), outDir = node_path.resolve(pkgDir, version), getResult = ()=>({
|
|
1629
1575
|
name,
|
|
1630
1576
|
assets: globSync('**/index.{js,css}', {
|
|
1631
1577
|
cwd: outDir,
|
|
@@ -1745,7 +1691,7 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1745
1691
|
cacheDir = node_path.dirname(failedDepsCachePath), node_fs.existsSync(cacheDir) || node_fs.mkdirSync(cacheDir, {
|
|
1746
1692
|
recursive: !0
|
|
1747
1693
|
}), node_fs.writeFileSync(failedDepsCachePath, JSON.stringify(failedCache, null, 2), 'utf-8'), failedDeps[0] && logger_logger.warn(`something went wrong while optimizing "${colors.bold(failedDeps.join(', '))}"`);
|
|
1748
|
-
let cachePath = node_path.resolve(root,
|
|
1694
|
+
let cachePath = node_path.resolve(root, CACHE_PATH, 'umd'), [{ default: express }, { default: cors }] = await Promise.all([
|
|
1749
1695
|
import("express"),
|
|
1750
1696
|
import("cors")
|
|
1751
1697
|
]), app = express();
|
|
@@ -1833,7 +1779,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1833
1779
|
req.headers.accept?.includes('html') && (req.url = '/index.html'), next();
|
|
1834
1780
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1835
1781
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1836
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.5.
|
|
1782
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.5.4`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ${colors.dim('ms')}\n`), printAddressUrls(port, unpackConfig.server?.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
1837
1783
|
let open = unpackConfig.server?.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1838
1784
|
open && openBrowser(url), setupCliShortcuts({
|
|
1839
1785
|
openPage: async ()=>{
|
|
@@ -1906,7 +1852,8 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1906
1852
|
...mergeConfig(defaultConfig, config),
|
|
1907
1853
|
_context: {
|
|
1908
1854
|
callerName,
|
|
1909
|
-
version: "3.5.
|
|
1855
|
+
version: "3.5.4",
|
|
1856
|
+
cachePath: 'node_modules/.unpack'
|
|
1910
1857
|
}
|
|
1911
1858
|
};
|
|
1912
1859
|
};
|
|
@@ -1914,7 +1861,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1914
1861
|
build: async ({ watch } = {})=>{
|
|
1915
1862
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1916
1863
|
let config = resolveConfig();
|
|
1917
|
-
console.log(colors.brand(`${callerName} v3.5.
|
|
1864
|
+
console.log(colors.brand(`${callerName} v3.5.4`), colors.cyan(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
1918
1865
|
},
|
|
1919
1866
|
dev: async ()=>{
|
|
1920
1867
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
@@ -1939,4 +1886,4 @@ async function createChokidar(pathOrGlobs, root = process.cwd(), options) {
|
|
|
1939
1886
|
var __webpack_exports__CSS_NAMED_EXPORT = !1;
|
|
1940
1887
|
import { fileURLToPath as __webpack_fileURLToPath__, pathToFileURL } from "node:url";
|
|
1941
1888
|
import node_path, { dirname as __webpack_dirname__, join, sep } from "node:path";
|
|
1942
|
-
export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT,
|
|
1889
|
+
export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT, THREAD_OPTIONS, addRestartCleaner, cleanUpBeforeRestart, clearLine, colors, convertBasicAnsiColors, createChokidar, createUnpack, currentDevUnpackConfig, debounce, defineConfig, esVersionToBrowserslist, findExists, getAddressUrls, getCompiledPkgPath, getIpv4Interfaces, getNodeEnv, getPathInJs, getPort, getTime, getUserDepPath, getUserDepVersion, getValueByPath, isBoolean, utils_isCI as isCI, isCSSModules, isDebug, isDev, utils_isDevServer as isDevServer, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isProd, isRegExp, isString, isUndefined, isWatch, isWin, launchEditor, loadConfig, logUpdate, logger_logger as logger, mergeConfig, pathExists, prettyTime, removeDir, resolveConfigPath, rspack, setCurrentDevUnpackConfig, setDevServer, setNodeEnv, setValueByPath, setupCliShortcuts, trackPerformance, __webpack_exports__CSS_NAMED_EXPORT as CSS_NAMED_EXPORT };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as __rspack_external__compiled_launch_editor_index_js_29002383 from "../compiled/launch-editor/index.js";
|
|
2
|
+
import * as __rspack_external__compiled_webpack_merge_index_js_efd91626 from "../compiled/webpack-merge/index.js";
|
|
3
3
|
import node_fs from "node:fs";
|
|
4
4
|
import node_path from "node:path";
|
|
5
5
|
import "node:net";
|
|
@@ -7,10 +7,10 @@ import "node:os";
|
|
|
7
7
|
import "portfinder";
|
|
8
8
|
var __webpack_modules__ = {
|
|
9
9
|
"compiled/launch-editor": function(module) {
|
|
10
|
-
module.exports =
|
|
10
|
+
module.exports = __rspack_external__compiled_launch_editor_index_js_29002383;
|
|
11
11
|
},
|
|
12
12
|
"compiled/webpack-merge": function(module) {
|
|
13
|
-
module.exports =
|
|
13
|
+
module.exports = __rspack_external__compiled_webpack_merge_index_js_efd91626;
|
|
14
14
|
}
|
|
15
15
|
}, __webpack_module_cache__ = {};
|
|
16
16
|
function __webpack_require__(moduleId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AAc3E,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CA4IvB"}
|
|
@@ -13,7 +13,6 @@ export declare const PROD_DEFAULT_FILENAME: {
|
|
|
13
13
|
cssAsync: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const EXPORT_LOCALS_CONVENTION = "camel-case-only";
|
|
16
|
-
export declare const TEMP_DIR = "node_modules/.unpack";
|
|
17
16
|
export declare const NODE_MODULES_REGEX: RegExp;
|
|
18
17
|
export declare const CSS_NAMED_EXPORT = false;
|
|
19
18
|
export declare const THREAD_OPTIONS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,iBAAiB,QAAoB,CAAA;AAClD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,iBAAiB,QAAoB,CAAA;AAClD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD,eAAO,MAAM,kBAAkB,QAA2B,CAAA;AAC1D,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AACrC,eAAO,MAAM,cAAc;;CAE1B,CAAA;AACD,eAAO,MAAM,gBAAgB,YAAY,CAAA;AACzC,eAAO,MAAM,gBAAgB,GAAI;;;;CAA0C,WAkB1E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,wBAAgB,YAAY,CAAC,EAC3B,GAAmB,EACnB,MAAM,EACN,UAAqB,GACtB,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;
|
|
1
|
+
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,wBAAgB,YAAY,CAAC,EAC3B,GAAmB,EACnB,MAAM,EACN,UAAqB,GACtB,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;wBA+C4B;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;;EAiB/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AA8EnD,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,YAAY,CAkSvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,YAAY,EAAE,MAAM,EAAE,CAAA;AAEtB,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,aAAa,CAAA;AAEvD,MAA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H,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,WAAW,CAAC,EAAE;QACZ;;WAEG;QACH,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB;;;WAGG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B;;WAEG;QACH,UAAU,CAAC,EAAE,UAAU,CAAA;KACxB,CAAA;IACD,WAAW,CAAC,EAAE;QACZ;;WAEG;QACH,GAAG,CAAC,EAAE,OAAO,CAAA;KACd,CAAA;IACD;;OAEG;IACH,GAAG,CAAC,EACA,OAAO,GACP;QACE;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACL;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@rsdoctor/rspack-plugin": "1.3.11",
|
|
43
|
-
"@rspack/core": "1.6.
|
|
43
|
+
"@rspack/core": "1.6.5",
|
|
44
44
|
"@rspack/dev-server": "1.1.4",
|
|
45
45
|
"@types/less": "3.0.8",
|
|
46
46
|
"chokidar": "4.0.3",
|
|
@@ -48,13 +48,12 @@
|
|
|
48
48
|
"dotenv-expand": "12.0.3",
|
|
49
49
|
"express": "5.1.0",
|
|
50
50
|
"jiti": "2.6.1",
|
|
51
|
-
"oxc-minify": "0.
|
|
51
|
+
"oxc-minify": "0.99.0",
|
|
52
52
|
"portfinder": "1.0.38",
|
|
53
53
|
"postcss": "8.5.6",
|
|
54
54
|
"thread-loader": "4.0.4",
|
|
55
55
|
"tinyglobby": "0.2.15",
|
|
56
|
-
"ts-checker-rspack-plugin": "1.2.0"
|
|
57
|
-
"typed-css-modules": "0.9.1"
|
|
56
|
+
"ts-checker-rspack-plugin": "1.2.0"
|
|
58
57
|
},
|
|
59
58
|
"scripts": {
|
|
60
59
|
"dev": "rslib build --watch",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Rspack, UnpackConfig } from '../../types';
|
|
2
|
-
type TypedCssModulesPluginOptions = {
|
|
3
|
-
modules?: NonNullable<UnpackConfig['css']>['modules'];
|
|
4
|
-
};
|
|
5
|
-
export declare class TypedCssModulesPlugin {
|
|
6
|
-
private dtsCreator;
|
|
7
|
-
private useIncremental;
|
|
8
|
-
private globPattern;
|
|
9
|
-
userOptions: TypedCssModulesPluginOptions;
|
|
10
|
-
constructor(options: TypedCssModulesPluginOptions);
|
|
11
|
-
apply(compiler: Rspack.Compiler): void;
|
|
12
|
-
private generateCssTypings;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=typedCssModules.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typedCssModules.d.ts","sourceRoot":"","sources":["../../../src/bundler-config/plugins/typedCssModules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAmCrD,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;CACtD,CAAA;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,UAAU,CAAgB;IAClC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,WAAW,CAA6B;IAChD,WAAW,EAAE,4BAA4B,CAAA;gBAE7B,OAAO,EAAE,4BAA4B;IAQjD,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ;YAqBjB,kBAAkB;CAQjC"}
|