@unpackjs/core 3.4.1 → 3.5.0
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 +60 -85
- package/dist/index.js +60 -85
- package/dist/typedCssModulesLoader.mjs +41 -21
- package/dist-types/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/colors.d.ts +7 -1
- package/dist-types/colors.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +0 -5
- package/dist-types/types/config.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/.oxlintrc.json +0 -29
- package/dist-types/bundler-config/plugins/oxlint/index.d.ts +0 -7
- package/dist-types/bundler-config/plugins/oxlint/index.d.ts.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
2278: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(4860);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(6549).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
4860: (__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__(2926));
|
|
18
|
+
var _plugins = __nccwpck_require__(6643);
|
|
19
|
+
var _utils = __nccwpck_require__(6549);
|
|
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
|
+
6643: (__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__(9960),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(8973),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(8063));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
8973: (__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__(6549);
|
|
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
|
+
9960: (__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__(6549);
|
|
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
|
+
8063: (__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__(6549);
|
|
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
|
+
6549: (__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
|
+
2926: (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__(2278);
|
|
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
|
+
514: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(48)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
48: (__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__(370));
|
|
13
|
+
var _utils = __nccwpck_require__(33);
|
|
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
|
+
33: (__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
|
+
370: (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__(514);
|
|
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
|
+
8549: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(7215)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
7215: (__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__(8379));
|
|
5334
|
+
var _utils = __nccwpck_require__(8922);
|
|
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
|
+
8922: (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
|
+
8379: (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__(8549);
|
|
6734
6734
|
module.exports = __webpack_exports__;
|
|
6735
6735
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
986: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(784);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
784: (__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__(198));
|
|
4810
|
+
var _utils = __nccwpck_require__(745);
|
|
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
|
+
745: (__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
|
+
198: (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__(986);
|
|
5602
5602
|
module.exports = __webpack_exports__;
|
|
5603
5603
|
})();
|
package/dist/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
77
77
|
getIpv4Interfaces: ()=>getIpv4Interfaces,
|
|
78
78
|
getNodeEnv: ()=>getNodeEnv,
|
|
79
79
|
getPort: ()=>getPort,
|
|
80
|
-
isCI: ()=>
|
|
80
|
+
isCI: ()=>utils_isCI,
|
|
81
81
|
logger: ()=>logger_logger,
|
|
82
82
|
addRestartCleaner: ()=>addRestartCleaner,
|
|
83
83
|
colors: ()=>colors,
|
|
@@ -107,41 +107,61 @@ for(var __webpack_i__ in (()=>{
|
|
|
107
107
|
getUserDepPath: ()=>getUserDepPath,
|
|
108
108
|
isString: ()=>isString
|
|
109
109
|
});
|
|
110
|
-
let core_namespaceObject = require("@rspack/core"),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
110
|
+
let core_namespaceObject = require("@rspack/core"), isCI = !!process.env.CI, isTTY = !!process.stdout?.isTTY, noColor = !!process.env.NO_COLOR, forceColor = !!process.env.FORCE_COLOR, disableColor = !1;
|
|
111
|
+
disableColor = !!noColor || !forceColor && (isCI || !isTTY);
|
|
112
|
+
let ANSI_SGR_RE = /\x1b\[[0-9;]*m/g, ANSI_OPEN_RE = /\x1b\[([0-9;]+)m/g, COLOR_HEX = {
|
|
113
|
+
brand: '#B39AFF',
|
|
114
|
+
red: '#F38BA8',
|
|
115
|
+
green: '#A6E3A1',
|
|
116
|
+
yellow: '#F9E2AF',
|
|
117
|
+
blue: '#89B4FA',
|
|
118
|
+
magenta: '#EE90DB',
|
|
119
|
+
cyan: '#89DCEB',
|
|
120
|
+
gray: '#6C7086'
|
|
121
|
+
}, COLOR_HEX_TO_OPEN = Object.fromEntries(Object.values(COLOR_HEX).map((hex)=>[
|
|
122
|
+
hex,
|
|
123
|
+
((hex)=>{
|
|
124
|
+
let r, g, b, value = (hex || '').trim().replace(/^#/, '');
|
|
125
|
+
if (/^[0-9a-fA-F]{3}$/.test(value)) r = Number.parseInt(value[0] + value[0], 16), g = Number.parseInt(value[1] + value[1], 16), b = Number.parseInt(value[2] + value[2], 16);
|
|
126
|
+
else {
|
|
127
|
+
if (!/^[0-9a-fA-F]{6}$/.test(value)) return '';
|
|
128
|
+
r = Number.parseInt(value.slice(0, 2), 16), g = Number.parseInt(value.slice(2, 4), 16), b = Number.parseInt(value.slice(4, 6), 16);
|
|
129
|
+
}
|
|
130
|
+
return `\x1b[38;2;${r};${g};${b}m`;
|
|
131
|
+
})(hex)
|
|
132
|
+
])), hexColor = (hex)=>{
|
|
119
133
|
if (disableColor) return (input)=>String(input);
|
|
120
|
-
let open =
|
|
134
|
+
let open = COLOR_HEX_TO_OPEN[hex];
|
|
121
135
|
return open ? (input)=>`${open}${input}\x1b[39m` : (input)=>String(input);
|
|
122
|
-
}, ansi = (open, close)=>(input)=>disableColor ? String(input) : `${open}${input}${close}`,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
code,
|
|
132
|
-
hexToAnsiOpen(hex)
|
|
133
|
-
])), colors = {
|
|
134
|
-
brand: hexColor(COLOR_HEX_brand),
|
|
135
|
-
red: hexColor(COLOR_HEX_red),
|
|
136
|
-
green: hexColor(COLOR_HEX_green),
|
|
137
|
-
yellow: hexColor(COLOR_HEX_yellow),
|
|
138
|
-
blue: hexColor(COLOR_HEX_blue),
|
|
139
|
-
magenta: hexColor(COLOR_HEX_magenta),
|
|
140
|
-
cyan: hexColor(COLOR_HEX_cyan),
|
|
141
|
-
gray: hexColor(COLOR_HEX_gray),
|
|
136
|
+
}, ansi = (open, close)=>(input)=>disableColor ? String(input) : `${open}${input}${close}`, colors = {
|
|
137
|
+
brand: hexColor(COLOR_HEX.brand),
|
|
138
|
+
red: hexColor(COLOR_HEX.red),
|
|
139
|
+
green: hexColor(COLOR_HEX.green),
|
|
140
|
+
yellow: hexColor(COLOR_HEX.yellow),
|
|
141
|
+
blue: hexColor(COLOR_HEX.blue),
|
|
142
|
+
magenta: hexColor(COLOR_HEX.magenta),
|
|
143
|
+
cyan: hexColor(COLOR_HEX.cyan),
|
|
144
|
+
gray: hexColor(COLOR_HEX.gray),
|
|
142
145
|
bold: ansi('\x1b[1m', '\x1b[22m'),
|
|
143
146
|
dim: ansi('\x1b[2m', '\x1b[22m')
|
|
144
|
-
}
|
|
147
|
+
}, CODE_TO_OPEN = Object.fromEntries(Object.entries({
|
|
148
|
+
31: COLOR_HEX.red,
|
|
149
|
+
32: COLOR_HEX.green,
|
|
150
|
+
33: COLOR_HEX.yellow,
|
|
151
|
+
34: COLOR_HEX.blue,
|
|
152
|
+
35: COLOR_HEX.magenta,
|
|
153
|
+
36: COLOR_HEX.cyan,
|
|
154
|
+
90: COLOR_HEX.gray,
|
|
155
|
+
91: COLOR_HEX.red,
|
|
156
|
+
92: COLOR_HEX.green,
|
|
157
|
+
93: COLOR_HEX.yellow,
|
|
158
|
+
94: COLOR_HEX.blue,
|
|
159
|
+
95: COLOR_HEX.magenta,
|
|
160
|
+
96: COLOR_HEX.cyan
|
|
161
|
+
}).map(([code, hex])=>[
|
|
162
|
+
code,
|
|
163
|
+
COLOR_HEX_TO_OPEN[hex]
|
|
164
|
+
]));
|
|
145
165
|
function convertBasicAnsiColors(input) {
|
|
146
166
|
let text = String(input ?? '');
|
|
147
167
|
return text ? disableColor ? text.replace(ANSI_SGR_RE, '') : text.replace(ANSI_OPEN_RE, (substring, params)=>{
|
|
@@ -308,7 +328,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
308
328
|
process.stdout.isTTY && (process.stdout.clearLine(0), process.stdout.cursorTo(0));
|
|
309
329
|
}, logUpdate = (output)=>{
|
|
310
330
|
clearLine(), process.stdout.write(output);
|
|
311
|
-
}, isDebug = ()=>'unpack' === process.env.DEBUG,
|
|
331
|
+
}, isDebug = ()=>'unpack' === process.env.DEBUG, utils_isCI = ()=>!!process.env.CI;
|
|
312
332
|
function isNodeVersionAtLeast(major, minor) {
|
|
313
333
|
let [currMajor, currMinor] = process.versions.node.split('.').map(Number);
|
|
314
334
|
return currMajor > major || currMajor === major && currMinor >= minor;
|
|
@@ -761,7 +781,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
761
781
|
apply(compiler) {
|
|
762
782
|
let meta = JSON.stringify({
|
|
763
783
|
name: jsMinify_PLUGIN_NAME,
|
|
764
|
-
version: "3.
|
|
784
|
+
version: "3.5.0",
|
|
765
785
|
options: this.minifyOptions
|
|
766
786
|
});
|
|
767
787
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -796,50 +816,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
796
816
|
this.customMinify = implementation?.minify, this.minifyOptions = minifyOptions;
|
|
797
817
|
}
|
|
798
818
|
}
|
|
799
|
-
let external_node_child_process_namespaceObject = require("node:child_process");
|
|
800
|
-
class OxlintPlugin {
|
|
801
|
-
runOxlint(args) {
|
|
802
|
-
let child = (0, external_node_child_process_namespaceObject.spawn)('npx', [
|
|
803
|
-
'--yes',
|
|
804
|
-
...args
|
|
805
|
-
], {
|
|
806
|
-
cwd: process.cwd(),
|
|
807
|
-
stdio: 'pipe',
|
|
808
|
-
shell: !0,
|
|
809
|
-
env: {
|
|
810
|
-
...process.env,
|
|
811
|
-
FORCE_COLOR: '1'
|
|
812
|
-
}
|
|
813
|
-
}), output = '';
|
|
814
|
-
child.stdout?.on('data', (data)=>{
|
|
815
|
-
output += data.toString();
|
|
816
|
-
}), child.on('exit', (code)=>{
|
|
817
|
-
let hasErrors = !output.includes('Found 0 warnings and 0 errors'), hasNoFiles = output.includes('on 0 files');
|
|
818
|
-
(hasErrors || 0 !== code) && !hasNoFiles && process.stdout.write(output);
|
|
819
|
-
}), child.stderr?.on('data', (data)=>{
|
|
820
|
-
process.stderr.write(data);
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
apply(compiler) {
|
|
824
|
-
compiler.hooks.watchRun.tap('OxlintPlugin', ()=>{
|
|
825
|
-
let configPath = external_node_path_default().resolve(__dirname, '.oxlintrc.json'), changedFiles = compiler.modifiedFiles ? Array.from(compiler.modifiedFiles) : [];
|
|
826
|
-
if (1 === changedFiles.length) {
|
|
827
|
-
let currentFile = changedFiles[0];
|
|
828
|
-
if (external_node_fs_default().existsSync(currentFile) && external_node_fs_default().statSync(currentFile).isFile()) {
|
|
829
|
-
let args = [
|
|
830
|
-
'oxlint',
|
|
831
|
-
'-c',
|
|
832
|
-
configPath,
|
|
833
|
-
currentFile,
|
|
834
|
-
'--fix',
|
|
835
|
-
'--fix-suggestions'
|
|
836
|
-
];
|
|
837
|
-
this.runOxlint(args);
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
819
|
function loadingAnimation_define_property(obj, key, value) {
|
|
844
820
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
845
821
|
value: value,
|
|
@@ -988,7 +964,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
988
964
|
}).time / 1000, sameCount = 0;
|
|
989
965
|
async function compileDone(compiler, stats) {
|
|
990
966
|
let root = compiler.options.context;
|
|
991
|
-
if (!stats.hasErrors()) if (isProd())
|
|
967
|
+
if (!stats.hasErrors()) if (isProd()) utils_isCI() || await printFileSize({
|
|
992
968
|
root,
|
|
993
969
|
stats
|
|
994
970
|
}), logger_logger.ready(colors.green(`built in ${prettyTime(getCompileTime(stats))}`));
|
|
@@ -1216,8 +1192,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1216
1192
|
unpackConfig.build?.copy && new core_namespaceObject.rspack.CopyRspackPlugin({
|
|
1217
1193
|
patterns: unpackConfig.build.copy
|
|
1218
1194
|
}),
|
|
1219
|
-
new ProgressPlugin()
|
|
1220
|
-
unpackConfig.lint && new OxlintPlugin()
|
|
1195
|
+
new ProgressPlugin()
|
|
1221
1196
|
].filter(Boolean),
|
|
1222
1197
|
externals: unpackConfig.externals,
|
|
1223
1198
|
resolve: {
|
|
@@ -1626,7 +1601,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1626
1601
|
};
|
|
1627
1602
|
isWatch() ? compiler.watch({}, handler) : compiler.run(handler);
|
|
1628
1603
|
}
|
|
1629
|
-
let dev_server_namespaceObject = require("@rspack/dev-server");
|
|
1604
|
+
let dev_server_namespaceObject = require("@rspack/dev-server"), external_node_child_process_namespaceObject = require("node:child_process");
|
|
1630
1605
|
async function openBrowser(url) {
|
|
1631
1606
|
if ('darwin' === process.platform) try {
|
|
1632
1607
|
let ps = await execAsync('ps cax'), openedBrowser = [
|
|
@@ -1946,7 +1921,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1946
1921
|
req.headers.accept?.includes('html') && (req.url = '/index.html'), next();
|
|
1947
1922
|
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1948
1923
|
let server = new dev_server_namespaceObject.RspackDevServer(devServerOptions, compiler);
|
|
1949
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1924
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.5.0`)} ${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())));
|
|
1950
1925
|
let open = unpackConfig.server?.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1951
1926
|
open && openBrowser(url), setupCliShortcuts({
|
|
1952
1927
|
openPage: async ()=>{
|
|
@@ -2019,7 +1994,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2019
1994
|
...mergeConfig(defaultConfig, config),
|
|
2020
1995
|
_context: {
|
|
2021
1996
|
callerName,
|
|
2022
|
-
version: "3.
|
|
1997
|
+
version: "3.5.0"
|
|
2023
1998
|
}
|
|
2024
1999
|
};
|
|
2025
2000
|
};
|
|
@@ -2027,7 +2002,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2027
2002
|
build: async ({ watch } = {})=>{
|
|
2028
2003
|
setNodeEnv(watch ? 'development' : 'production');
|
|
2029
2004
|
let config = resolveConfig();
|
|
2030
|
-
console.log(colors.brand(`${callerName} v3.
|
|
2005
|
+
console.log(colors.brand(`${callerName} v3.5.0`), colors.cyan(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
2031
2006
|
},
|
|
2032
2007
|
dev: async ()=>{
|
|
2033
2008
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
package/dist/index.js
CHANGED
|
@@ -13,10 +13,10 @@ import { expand } from "dotenv-expand";
|
|
|
13
13
|
import node_assert from "node:assert";
|
|
14
14
|
import { glob, globSync } from "tinyglobby";
|
|
15
15
|
import typed_css_modules from "typed-css-modules";
|
|
16
|
-
import { exec, spawn } from "node:child_process";
|
|
17
16
|
import { promisify } from "node:util";
|
|
18
17
|
import node_zlib from "node:zlib";
|
|
19
18
|
import { RspackDevServer } from "@rspack/dev-server";
|
|
19
|
+
import { exec, spawn } from "node:child_process";
|
|
20
20
|
import chokidar from "chokidar";
|
|
21
21
|
var LogColor, __webpack_modules__ = {
|
|
22
22
|
"compiled/launch-editor": function(module) {
|
|
@@ -34,41 +34,61 @@ function __webpack_require__(moduleId) {
|
|
|
34
34
|
};
|
|
35
35
|
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
36
36
|
}
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
let isCI = !!process.env.CI, isTTY = !!process.stdout?.isTTY, noColor = !!process.env.NO_COLOR, forceColor = !!process.env.FORCE_COLOR, disableColor = !1;
|
|
38
|
+
disableColor = !!noColor || !forceColor && (isCI || !isTTY);
|
|
39
|
+
let ANSI_SGR_RE = /\x1b\[[0-9;]*m/g, ANSI_OPEN_RE = /\x1b\[([0-9;]+)m/g, COLOR_HEX = {
|
|
40
|
+
brand: '#B39AFF',
|
|
41
|
+
red: '#F38BA8',
|
|
42
|
+
green: '#A6E3A1',
|
|
43
|
+
yellow: '#F9E2AF',
|
|
44
|
+
blue: '#89B4FA',
|
|
45
|
+
magenta: '#EE90DB',
|
|
46
|
+
cyan: '#89DCEB',
|
|
47
|
+
gray: '#6C7086'
|
|
48
|
+
}, COLOR_HEX_TO_OPEN = Object.fromEntries(Object.values(COLOR_HEX).map((hex)=>[
|
|
49
|
+
hex,
|
|
50
|
+
((hex)=>{
|
|
51
|
+
let r, g, b, value = (hex || '').trim().replace(/^#/, '');
|
|
52
|
+
if (/^[0-9a-fA-F]{3}$/.test(value)) r = Number.parseInt(value[0] + value[0], 16), g = Number.parseInt(value[1] + value[1], 16), b = Number.parseInt(value[2] + value[2], 16);
|
|
53
|
+
else {
|
|
54
|
+
if (!/^[0-9a-fA-F]{6}$/.test(value)) return '';
|
|
55
|
+
r = Number.parseInt(value.slice(0, 2), 16), g = Number.parseInt(value.slice(2, 4), 16), b = Number.parseInt(value.slice(4, 6), 16);
|
|
56
|
+
}
|
|
57
|
+
return `\x1b[38;2;${r};${g};${b}m`;
|
|
58
|
+
})(hex)
|
|
59
|
+
])), hexColor = (hex)=>{
|
|
46
60
|
if (disableColor) return (input)=>String(input);
|
|
47
|
-
let open =
|
|
61
|
+
let open = COLOR_HEX_TO_OPEN[hex];
|
|
48
62
|
return open ? (input)=>`${open}${input}\x1b[39m` : (input)=>String(input);
|
|
49
|
-
}, ansi = (open, close)=>(input)=>disableColor ? String(input) : `${open}${input}${close}`,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
code,
|
|
59
|
-
hexToAnsiOpen(hex)
|
|
60
|
-
])), colors = {
|
|
61
|
-
brand: hexColor('#b39aff'),
|
|
62
|
-
red: hexColor(COLOR_HEX_red),
|
|
63
|
-
green: hexColor(COLOR_HEX_green),
|
|
64
|
-
yellow: hexColor(COLOR_HEX_yellow),
|
|
65
|
-
blue: hexColor(COLOR_HEX_blue),
|
|
66
|
-
magenta: hexColor(COLOR_HEX_magenta),
|
|
67
|
-
cyan: hexColor(COLOR_HEX_cyan),
|
|
68
|
-
gray: hexColor(COLOR_HEX_gray),
|
|
63
|
+
}, ansi = (open, close)=>(input)=>disableColor ? String(input) : `${open}${input}${close}`, colors = {
|
|
64
|
+
brand: hexColor(COLOR_HEX.brand),
|
|
65
|
+
red: hexColor(COLOR_HEX.red),
|
|
66
|
+
green: hexColor(COLOR_HEX.green),
|
|
67
|
+
yellow: hexColor(COLOR_HEX.yellow),
|
|
68
|
+
blue: hexColor(COLOR_HEX.blue),
|
|
69
|
+
magenta: hexColor(COLOR_HEX.magenta),
|
|
70
|
+
cyan: hexColor(COLOR_HEX.cyan),
|
|
71
|
+
gray: hexColor(COLOR_HEX.gray),
|
|
69
72
|
bold: ansi('\x1b[1m', '\x1b[22m'),
|
|
70
73
|
dim: ansi('\x1b[2m', '\x1b[22m')
|
|
71
|
-
}
|
|
74
|
+
}, CODE_TO_OPEN = Object.fromEntries(Object.entries({
|
|
75
|
+
31: COLOR_HEX.red,
|
|
76
|
+
32: COLOR_HEX.green,
|
|
77
|
+
33: COLOR_HEX.yellow,
|
|
78
|
+
34: COLOR_HEX.blue,
|
|
79
|
+
35: COLOR_HEX.magenta,
|
|
80
|
+
36: COLOR_HEX.cyan,
|
|
81
|
+
90: COLOR_HEX.gray,
|
|
82
|
+
91: COLOR_HEX.red,
|
|
83
|
+
92: COLOR_HEX.green,
|
|
84
|
+
93: COLOR_HEX.yellow,
|
|
85
|
+
94: COLOR_HEX.blue,
|
|
86
|
+
95: COLOR_HEX.magenta,
|
|
87
|
+
96: COLOR_HEX.cyan
|
|
88
|
+
}).map(([code, hex])=>[
|
|
89
|
+
code,
|
|
90
|
+
COLOR_HEX_TO_OPEN[hex]
|
|
91
|
+
]));
|
|
72
92
|
function convertBasicAnsiColors(input) {
|
|
73
93
|
let text = String(input ?? '');
|
|
74
94
|
return text ? disableColor ? text.replace(ANSI_SGR_RE, '') : text.replace(ANSI_OPEN_RE, (substring, params)=>{
|
|
@@ -224,7 +244,7 @@ let debounce = (fn, delay)=>{
|
|
|
224
244
|
process.stdout.isTTY && (process.stdout.clearLine(0), process.stdout.cursorTo(0));
|
|
225
245
|
}, logUpdate = (output)=>{
|
|
226
246
|
clearLine(), process.stdout.write(output);
|
|
227
|
-
}, isDebug = ()=>'unpack' === process.env.DEBUG,
|
|
247
|
+
}, isDebug = ()=>'unpack' === process.env.DEBUG, utils_isCI = ()=>!!process.env.CI;
|
|
228
248
|
function isNodeVersionAtLeast(major, minor) {
|
|
229
249
|
let [currMajor, currMinor] = process.versions.node.split('.').map(Number);
|
|
230
250
|
return currMajor > major || currMajor === major && currMinor >= minor;
|
|
@@ -675,7 +695,7 @@ class JsMinifyPlugin {
|
|
|
675
695
|
apply(compiler) {
|
|
676
696
|
let meta = JSON.stringify({
|
|
677
697
|
name: jsMinify_PLUGIN_NAME,
|
|
678
|
-
version: "3.
|
|
698
|
+
version: "3.5.0",
|
|
679
699
|
options: this.minifyOptions
|
|
680
700
|
});
|
|
681
701
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -710,50 +730,6 @@ class JsMinifyPlugin {
|
|
|
710
730
|
this.customMinify = implementation?.minify, this.minifyOptions = minifyOptions;
|
|
711
731
|
}
|
|
712
732
|
}
|
|
713
|
-
var oxlint_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
|
|
714
|
-
class OxlintPlugin {
|
|
715
|
-
runOxlint(args) {
|
|
716
|
-
let child = spawn('npx', [
|
|
717
|
-
'--yes',
|
|
718
|
-
...args
|
|
719
|
-
], {
|
|
720
|
-
cwd: process.cwd(),
|
|
721
|
-
stdio: 'pipe',
|
|
722
|
-
shell: !0,
|
|
723
|
-
env: {
|
|
724
|
-
...process.env,
|
|
725
|
-
FORCE_COLOR: '1'
|
|
726
|
-
}
|
|
727
|
-
}), output = '';
|
|
728
|
-
child.stdout?.on('data', (data)=>{
|
|
729
|
-
output += data.toString();
|
|
730
|
-
}), child.on('exit', (code)=>{
|
|
731
|
-
let hasErrors = !output.includes('Found 0 warnings and 0 errors'), hasNoFiles = output.includes('on 0 files');
|
|
732
|
-
(hasErrors || 0 !== code) && !hasNoFiles && process.stdout.write(output);
|
|
733
|
-
}), child.stderr?.on('data', (data)=>{
|
|
734
|
-
process.stderr.write(data);
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
apply(compiler) {
|
|
738
|
-
compiler.hooks.watchRun.tap('OxlintPlugin', ()=>{
|
|
739
|
-
let configPath = node_path.resolve(oxlint_dirname, '.oxlintrc.json'), changedFiles = compiler.modifiedFiles ? Array.from(compiler.modifiedFiles) : [];
|
|
740
|
-
if (1 === changedFiles.length) {
|
|
741
|
-
let currentFile = changedFiles[0];
|
|
742
|
-
if (node_fs.existsSync(currentFile) && node_fs.statSync(currentFile).isFile()) {
|
|
743
|
-
let args = [
|
|
744
|
-
'oxlint',
|
|
745
|
-
'-c',
|
|
746
|
-
configPath,
|
|
747
|
-
currentFile,
|
|
748
|
-
'--fix',
|
|
749
|
-
'--fix-suggestions'
|
|
750
|
-
];
|
|
751
|
-
this.runOxlint(args);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
733
|
function loadingAnimation_define_property(obj, key, value) {
|
|
758
734
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
759
735
|
value: value,
|
|
@@ -899,7 +875,7 @@ let getCompileTime = (stats)=>stats.toJson({
|
|
|
899
875
|
}).time / 1000, sameCount = 0;
|
|
900
876
|
async function compileDone(compiler, stats) {
|
|
901
877
|
let root = compiler.options.context;
|
|
902
|
-
if (!stats.hasErrors()) if (isProd())
|
|
878
|
+
if (!stats.hasErrors()) if (isProd()) utils_isCI() || await printFileSize({
|
|
903
879
|
root,
|
|
904
880
|
stats
|
|
905
881
|
}), logger_logger.ready(colors.green(`built in ${prettyTime(getCompileTime(stats))}`));
|
|
@@ -1126,8 +1102,7 @@ async function getBundlerConfig(originalUnpackConfig) {
|
|
|
1126
1102
|
unpackConfig.build?.copy && new rspack.CopyRspackPlugin({
|
|
1127
1103
|
patterns: unpackConfig.build.copy
|
|
1128
1104
|
}),
|
|
1129
|
-
new ProgressPlugin()
|
|
1130
|
-
unpackConfig.lint && new OxlintPlugin()
|
|
1105
|
+
new ProgressPlugin()
|
|
1131
1106
|
].filter(Boolean),
|
|
1132
1107
|
externals: unpackConfig.externals,
|
|
1133
1108
|
resolve: {
|
|
@@ -1854,7 +1829,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1854
1829
|
req.headers.accept?.includes('html') && (req.url = '/index.html'), next();
|
|
1855
1830
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1856
1831
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1857
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1832
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.5.0`)} ${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())));
|
|
1858
1833
|
let open = unpackConfig.server?.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1859
1834
|
open && openBrowser(url), setupCliShortcuts({
|
|
1860
1835
|
openPage: async ()=>{
|
|
@@ -1927,7 +1902,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1927
1902
|
...mergeConfig(defaultConfig, config),
|
|
1928
1903
|
_context: {
|
|
1929
1904
|
callerName,
|
|
1930
|
-
version: "3.
|
|
1905
|
+
version: "3.5.0"
|
|
1931
1906
|
}
|
|
1932
1907
|
};
|
|
1933
1908
|
};
|
|
@@ -1935,7 +1910,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1935
1910
|
build: async ({ watch } = {})=>{
|
|
1936
1911
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1937
1912
|
let config = resolveConfig();
|
|
1938
|
-
console.log(colors.brand(`${callerName} v3.
|
|
1913
|
+
console.log(colors.brand(`${callerName} v3.5.0`), colors.cyan(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
1939
1914
|
},
|
|
1940
1915
|
dev: async ()=>{
|
|
1941
1916
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
@@ -1960,4 +1935,4 @@ async function createChokidar(pathOrGlobs, root = process.cwd(), options) {
|
|
|
1960
1935
|
var __webpack_exports__CSS_NAMED_EXPORT = !1;
|
|
1961
1936
|
import { fileURLToPath as __webpack_fileURLToPath__, pathToFileURL } from "node:url";
|
|
1962
1937
|
import node_path, { dirname as __webpack_dirname__, join, sep } from "node:path";
|
|
1963
|
-
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, TEMP_DIR, 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, 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 };
|
|
1938
|
+
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, TEMP_DIR, 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 };
|
|
@@ -21,31 +21,51 @@ function __webpack_require__(moduleId) {
|
|
|
21
21
|
};
|
|
22
22
|
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
23
23
|
}
|
|
24
|
-
let CSS_MODULES_REGEX = /\.module\.\w+$/i, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
let CSS_MODULES_REGEX = /\.module\.\w+$/i, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, isCI = !!process.env.CI, isTTY = !!process.stdout?.isTTY, noColor = !!process.env.NO_COLOR, forceColor = !!process.env.FORCE_COLOR, disableColor = !1;
|
|
25
|
+
disableColor = !!noColor || !forceColor && (isCI || !isTTY);
|
|
26
|
+
let COLOR_HEX = {
|
|
27
|
+
brand: '#B39AFF',
|
|
28
|
+
red: '#F38BA8',
|
|
29
|
+
green: '#A6E3A1',
|
|
30
|
+
yellow: '#F9E2AF',
|
|
31
|
+
blue: '#89B4FA',
|
|
32
|
+
magenta: '#EE90DB',
|
|
33
|
+
cyan: '#89DCEB',
|
|
34
|
+
gray: '#6C7086'
|
|
35
|
+
}, COLOR_HEX_TO_OPEN = Object.fromEntries(Object.values(COLOR_HEX).map((hex)=>[
|
|
36
|
+
hex,
|
|
37
|
+
((hex)=>{
|
|
38
|
+
let r, g, b, value = (hex || '').trim().replace(/^#/, '');
|
|
39
|
+
if (/^[0-9a-fA-F]{3}$/.test(value)) r = Number.parseInt(value[0] + value[0], 16), g = Number.parseInt(value[1] + value[1], 16), b = Number.parseInt(value[2] + value[2], 16);
|
|
40
|
+
else {
|
|
41
|
+
if (!/^[0-9a-fA-F]{6}$/.test(value)) return '';
|
|
42
|
+
r = Number.parseInt(value.slice(0, 2), 16), g = Number.parseInt(value.slice(2, 4), 16), b = Number.parseInt(value.slice(4, 6), 16);
|
|
43
|
+
}
|
|
44
|
+
return `\x1b[38;2;${r};${g};${b}m`;
|
|
45
|
+
})(hex)
|
|
46
|
+
])), hexColor = (hex)=>{
|
|
33
47
|
if (disableColor) return (input)=>String(input);
|
|
34
|
-
let open =
|
|
48
|
+
let open = COLOR_HEX_TO_OPEN[hex];
|
|
35
49
|
return open ? (input)=>`${open}${input}\x1b[39m` : (input)=>String(input);
|
|
36
|
-
}, ansi = (open, close)=>(input)=>disableColor ? String(input) : `${open}${input}${close}
|
|
37
|
-
Object.fromEntries(Object.entries({
|
|
38
|
-
31:
|
|
39
|
-
32:
|
|
40
|
-
33:
|
|
41
|
-
34:
|
|
42
|
-
35:
|
|
43
|
-
36:
|
|
44
|
-
90:
|
|
50
|
+
}, ansi = (open, close)=>(input)=>disableColor ? String(input) : `${open}${input}${close}`;
|
|
51
|
+
hexColor(COLOR_HEX.brand), hexColor(COLOR_HEX.red), hexColor(COLOR_HEX.green), hexColor(COLOR_HEX.yellow), hexColor(COLOR_HEX.blue), hexColor(COLOR_HEX.magenta), hexColor(COLOR_HEX.cyan), hexColor(COLOR_HEX.gray), ansi('\x1b[1m', '\x1b[22m'), ansi('\x1b[2m', '\x1b[22m'), Object.fromEntries(Object.entries({
|
|
52
|
+
31: COLOR_HEX.red,
|
|
53
|
+
32: COLOR_HEX.green,
|
|
54
|
+
33: COLOR_HEX.yellow,
|
|
55
|
+
34: COLOR_HEX.blue,
|
|
56
|
+
35: COLOR_HEX.magenta,
|
|
57
|
+
36: COLOR_HEX.cyan,
|
|
58
|
+
90: COLOR_HEX.gray,
|
|
59
|
+
91: COLOR_HEX.red,
|
|
60
|
+
92: COLOR_HEX.green,
|
|
61
|
+
93: COLOR_HEX.yellow,
|
|
62
|
+
94: COLOR_HEX.blue,
|
|
63
|
+
95: COLOR_HEX.magenta,
|
|
64
|
+
96: COLOR_HEX.cyan
|
|
45
65
|
}).map(([code, hex])=>[
|
|
46
66
|
code,
|
|
47
|
-
|
|
48
|
-
]))
|
|
67
|
+
COLOR_HEX_TO_OPEN[hex]
|
|
68
|
+
]));
|
|
49
69
|
let { merge } = __webpack_require__("compiled/webpack-merge");
|
|
50
70
|
__webpack_require__("compiled/launch-editor");
|
|
51
71
|
let enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
|
|
@@ -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;AAgB3E,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,
|
|
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;AAgB3E,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CA6IvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAsBnE,wBAAsB,gBAAgB,CACpC,oBAAoB,EAAE,YAAY,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAyM/B"}
|
package/dist-types/colors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Input = string | number;
|
|
2
2
|
type Formatter = (input: Input) => string;
|
|
3
|
-
type Colors = {
|
|
3
|
+
export type Colors = {
|
|
4
4
|
red: Formatter;
|
|
5
5
|
green: Formatter;
|
|
6
6
|
yellow: Formatter;
|
|
@@ -25,6 +25,12 @@ export declare const colors: Colors;
|
|
|
25
25
|
* - 35 magenta
|
|
26
26
|
* - 36 cyan
|
|
27
27
|
* - 90 gray
|
|
28
|
+
* - 91 bright-red
|
|
29
|
+
* - 92 bright-green
|
|
30
|
+
* - 93 bright-yellow
|
|
31
|
+
* - 94 bright-blue
|
|
32
|
+
* - 95 bright-magenta
|
|
33
|
+
* - 96 bright-cyan
|
|
28
34
|
*/
|
|
29
35
|
export declare function convertBasicAnsiColors(input: string): string;
|
|
30
36
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAC5B,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAA;AACzC,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAC5B,KAAK,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAA;AACzC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,EAAE,SAAS,CAAA;IACd,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,SAAS,CAAA;IAClB,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,SAAS,CAAA;IACf,GAAG,EAAE,SAAS,CAAA;CACf,CAAA;AA6ED,eAAO,MAAM,MAAM,EAAE,MAWpB,CAAA;AAuBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAoB5D"}
|
|
@@ -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,YAA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AC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,CAAA;QACpE;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC3C;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,WAAW,CAAC,EAAE;QACZ;;;WAGG;QACH,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB;;;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.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"launch-editor": "2.12.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@rspack/core": "1.6.
|
|
43
|
+
"@rspack/core": "1.6.3",
|
|
44
44
|
"@rspack/dev-server": "1.1.4",
|
|
45
45
|
"@types/less": "3.0.8",
|
|
46
46
|
"chokidar": "4.0.3",
|
|
@@ -48,7 +48,7 @@
|
|
|
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.97.0",
|
|
52
52
|
"portfinder": "1.0.38",
|
|
53
53
|
"postcss": "8.5.6",
|
|
54
54
|
"thread-loader": "4.0.4",
|
package/dist/.oxlintrc.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"plugins": ["typescript", "unicorn", "react", "oxc", "react-perf", "jsdoc"],
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"node": true
|
|
6
|
-
},
|
|
7
|
-
"globals": {},
|
|
8
|
-
"settings": {},
|
|
9
|
-
"rules": {
|
|
10
|
-
"prefer-object-spread": "error",
|
|
11
|
-
"yoda": "error",
|
|
12
|
-
"no-duplicate-imports": "error",
|
|
13
|
-
"no-undef": "error",
|
|
14
|
-
"react/jsx-boolean-value": "error",
|
|
15
|
-
"react/rules-of-hooks": "error",
|
|
16
|
-
"react/exhaustive-deps": "off",
|
|
17
|
-
"react/self-closing-comp": [
|
|
18
|
-
"error",
|
|
19
|
-
{
|
|
20
|
-
"html": false
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"unicorn/prefer-node-protocol": "error",
|
|
24
|
-
"unicorn/prefer-array-some": "error",
|
|
25
|
-
"unicorn/prefer-string-slice": "error",
|
|
26
|
-
"unicorn/no-console-spaces": "error",
|
|
27
|
-
"typescript/no-import-type-side-effects": "error"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/oxlint/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,cAAM,YAAY;IAChB,OAAO,CAAC,SAAS;IA8BjB,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI;CAoBvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|