@unpackjs/core 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/css-loader/index.js +20 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +8 -8
- package/dist/index.cjs +23 -56
- package/dist/index.js +21 -54
- package/dist-types/bundler-config/plugins/oxlint/index.d.ts +0 -3
- package/dist-types/bundler-config/plugins/oxlint/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
5106: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(2608);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(7977).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
2608: (__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__(8977));
|
|
18
|
+
var _plugins = __nccwpck_require__(9919);
|
|
19
|
+
var _utils = __nccwpck_require__(7977);
|
|
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
|
+
9919: (__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__(7996),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(2905),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(6096));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
2905: (__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__(9028);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(7977);
|
|
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
|
+
7996: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
383
383
|
"use strict";
|
|
384
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
385
385
|
exports["default"] = void 0;
|
|
386
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
387
387
|
__nccwpck_require__(2948),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(7977);
|
|
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
|
+
6096: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
695
695
|
"use strict";
|
|
696
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
697
697
|
exports["default"] = void 0;
|
|
698
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
699
699
|
__nccwpck_require__(2948),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(7977);
|
|
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
|
+
7977: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1045
1045
|
"use strict";
|
|
1046
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1047
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -7964,7 +7964,7 @@
|
|
|
7964
7964
|
"use strict";
|
|
7965
7965
|
module.exports = require("util");
|
|
7966
7966
|
},
|
|
7967
|
-
|
|
7967
|
+
8977: (module) => {
|
|
7968
7968
|
"use strict";
|
|
7969
7969
|
module.exports = JSON.parse(
|
|
7970
7970
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
@@ -7999,6 +7999,6 @@
|
|
|
7999
7999
|
}
|
|
8000
8000
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8001
8001
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8002
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8002
|
+
var __webpack_exports__ = __nccwpck_require__(5106);
|
|
8003
8003
|
module.exports = __webpack_exports__;
|
|
8004
8004
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
432: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(430)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
430: (__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__(603));
|
|
13
|
+
var _utils = __nccwpck_require__(887);
|
|
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
|
+
887: (__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
|
+
603: (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__(432);
|
|
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
|
+
507: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(757)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
757: (__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__(128));
|
|
5334
|
+
var _utils = __nccwpck_require__(208);
|
|
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
|
+
208: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6618,7 +6618,7 @@
|
|
|
6618
6618
|
return keywords.has(word);
|
|
6619
6619
|
}
|
|
6620
6620
|
},
|
|
6621
|
-
|
|
6621
|
+
128: (module) => {
|
|
6622
6622
|
"use strict";
|
|
6623
6623
|
module.exports = JSON.parse(
|
|
6624
6624
|
'{"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}',
|
|
@@ -6728,6 +6728,6 @@
|
|
|
6728
6728
|
})();
|
|
6729
6729
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6730
6730
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6731
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6731
|
+
var __webpack_exports__ = __nccwpck_require__(507);
|
|
6732
6732
|
module.exports = __webpack_exports__;
|
|
6733
6733
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
523: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(405);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
405: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4804
4804
|
"use strict";
|
|
4805
4805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4806
4806
|
exports["default"] = void 0;
|
|
4807
4807
|
var _url = _interopRequireDefault(__nccwpck_require__(16));
|
|
4808
4808
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(744));
|
|
4810
|
+
var _utils = __nccwpck_require__(432);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4917,7 +4917,7 @@
|
|
|
4917
4917
|
}
|
|
4918
4918
|
var _default = (exports["default"] = loader);
|
|
4919
4919
|
},
|
|
4920
|
-
|
|
4920
|
+
432: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
"use strict";
|
|
5583
5583
|
module.exports = require("url");
|
|
5584
5584
|
},
|
|
5585
|
-
|
|
5585
|
+
744: (module) => {
|
|
5586
5586
|
"use strict";
|
|
5587
5587
|
module.exports = JSON.parse(
|
|
5588
5588
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5612,6 +5612,6 @@
|
|
|
5612
5612
|
}
|
|
5613
5613
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5614
5614
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5615
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5615
|
+
var __webpack_exports__ = __nccwpck_require__(523);
|
|
5616
5616
|
module.exports = __webpack_exports__;
|
|
5617
5617
|
})();
|
package/dist/index.cjs
CHANGED
|
@@ -731,7 +731,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
731
731
|
apply(compiler) {
|
|
732
732
|
let meta = JSON.stringify({
|
|
733
733
|
name: jsMinify_PLUGIN_NAME,
|
|
734
|
-
version: "3.3.
|
|
734
|
+
version: "3.3.1",
|
|
735
735
|
options: this.minifyOptions
|
|
736
736
|
});
|
|
737
737
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -767,44 +767,14 @@ for(var __webpack_i__ in (()=>{
|
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
let external_node_child_process_namespaceObject = require("node:child_process");
|
|
770
|
-
function oxlint_define_property(obj, key, value) {
|
|
771
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
772
|
-
value: value,
|
|
773
|
-
enumerable: !0,
|
|
774
|
-
configurable: !0,
|
|
775
|
-
writable: !0
|
|
776
|
-
}) : obj[key] = value, obj;
|
|
777
|
-
}
|
|
778
770
|
class OxlintPlugin {
|
|
779
|
-
getGitChangedFiles() {
|
|
780
|
-
return new Promise((resolve)=>{
|
|
781
|
-
var _child_stdout;
|
|
782
|
-
let child = (0, external_node_child_process_namespaceObject.spawn)('git', [
|
|
783
|
-
'status',
|
|
784
|
-
'--porcelain'
|
|
785
|
-
], {
|
|
786
|
-
cwd: process.cwd(),
|
|
787
|
-
stdio: 'pipe'
|
|
788
|
-
}), output = '';
|
|
789
|
-
null == (_child_stdout = child.stdout) || _child_stdout.on('data', (data)=>{
|
|
790
|
-
output += data.toString();
|
|
791
|
-
}), child.on('exit', (code)=>{
|
|
792
|
-
0 === code ? resolve(output.trim().split('\n').filter(Boolean).map((line)=>{
|
|
793
|
-
let idx = line.indexOf(' '), status = line.slice(0, idx), filePath = line.slice(idx + 1).trim();
|
|
794
|
-
return status.includes('D') ? null : ((status.startsWith('R') || status.startsWith('C')) && (filePath = filePath.split(' -> ')[1]), filePath);
|
|
795
|
-
}).filter(Boolean).map((file)=>external_node_path_default().resolve(process.cwd(), file))) : resolve([]);
|
|
796
|
-
}), child.on('error', ()=>{
|
|
797
|
-
resolve([]);
|
|
798
|
-
});
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
771
|
runOxlint(args) {
|
|
802
772
|
var _child_stdout, _child_stderr;
|
|
803
|
-
let
|
|
773
|
+
let child = (0, external_node_child_process_namespaceObject.spawn)('npx', [
|
|
804
774
|
'--yes',
|
|
805
775
|
...args
|
|
806
776
|
], {
|
|
807
|
-
cwd,
|
|
777
|
+
cwd: process.cwd(),
|
|
808
778
|
stdio: 'pipe',
|
|
809
779
|
shell: !0,
|
|
810
780
|
env: {
|
|
@@ -815,34 +785,31 @@ for(var __webpack_i__ in (()=>{
|
|
|
815
785
|
null == (_child_stdout = child.stdout) || _child_stdout.on('data', (data)=>{
|
|
816
786
|
output += data.toString();
|
|
817
787
|
}), child.on('exit', (code)=>{
|
|
818
|
-
output.includes('Found 0 warnings and 0 errors')
|
|
788
|
+
let hasErrors = !output.includes('Found 0 warnings and 0 errors'), hasNoFiles = output.includes('on 0 files');
|
|
789
|
+
(hasErrors || 0 !== code) && !hasNoFiles && process.stdout.write(output);
|
|
819
790
|
}), null == (_child_stderr = child.stderr) || _child_stderr.on('data', (data)=>{
|
|
820
791
|
process.stderr.write(data);
|
|
821
792
|
});
|
|
822
793
|
}
|
|
823
794
|
apply(compiler) {
|
|
824
795
|
compiler.hooks.watchRun.tap('OxlintPlugin', ()=>{
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}, this.debounceTime);
|
|
796
|
+
let configPath = external_node_path_default().resolve(__dirname, '.oxlintrc.json'), changedFiles = compiler.modifiedFiles ? Array.from(compiler.modifiedFiles) : [];
|
|
797
|
+
if (1 === changedFiles.length) {
|
|
798
|
+
let currentFile = changedFiles[0];
|
|
799
|
+
if (external_node_fs_default().existsSync(currentFile) && external_node_fs_default().statSync(currentFile).isFile()) {
|
|
800
|
+
let args = [
|
|
801
|
+
'oxlint',
|
|
802
|
+
'-c',
|
|
803
|
+
configPath,
|
|
804
|
+
currentFile,
|
|
805
|
+
'--fix',
|
|
806
|
+
'--fix-suggestions'
|
|
807
|
+
];
|
|
808
|
+
this.runOxlint(args);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
841
811
|
});
|
|
842
812
|
}
|
|
843
|
-
constructor(){
|
|
844
|
-
oxlint_define_property(this, "timeoutId", null), oxlint_define_property(this, "debounceTime", 200);
|
|
845
|
-
}
|
|
846
813
|
}
|
|
847
814
|
function loadingAnimation_define_property(obj, key, value) {
|
|
848
815
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -1960,7 +1927,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1960
1927
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1961
1928
|
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1962
1929
|
let server = new dev_server_namespaceObject.RspackDevServer(devServerOptions, compiler);
|
|
1963
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.
|
|
1930
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.1`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ms\n`), printAddressUrls(port, null == (_unpackConfig_server2 = unpackConfig.server) ? void 0 : _unpackConfig_server2.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
1964
1931
|
let open = null == (_unpackConfig_server3 = unpackConfig.server) ? void 0 : _unpackConfig_server3.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1965
1932
|
open && openBrowser(url), setupCliShortcuts({
|
|
1966
1933
|
openPage: async ()=>{
|
|
@@ -2034,7 +2001,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2034
2001
|
...mergeConfig(defaultConfig, config),
|
|
2035
2002
|
_context: {
|
|
2036
2003
|
callerName,
|
|
2037
|
-
version: "3.3.
|
|
2004
|
+
version: "3.3.1"
|
|
2038
2005
|
}
|
|
2039
2006
|
};
|
|
2040
2007
|
};
|
|
@@ -2042,7 +2009,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2042
2009
|
build: async ({ watch } = {})=>{
|
|
2043
2010
|
setNodeEnv(watch ? 'development' : 'production');
|
|
2044
2011
|
let config = resolveConfig();
|
|
2045
|
-
console.log(colors.rainbow(`${callerName} v3.3.
|
|
2012
|
+
console.log(colors.rainbow(`${callerName} v3.3.1`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
2046
2013
|
},
|
|
2047
2014
|
dev: async ()=>{
|
|
2048
2015
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
package/dist/index.js
CHANGED
|
@@ -645,7 +645,7 @@ class JsMinifyPlugin {
|
|
|
645
645
|
apply(compiler) {
|
|
646
646
|
let meta = JSON.stringify({
|
|
647
647
|
name: jsMinify_PLUGIN_NAME,
|
|
648
|
-
version: "3.3.
|
|
648
|
+
version: "3.3.1",
|
|
649
649
|
options: this.minifyOptions
|
|
650
650
|
});
|
|
651
651
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -681,37 +681,7 @@ class JsMinifyPlugin {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
var oxlint_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
|
|
684
|
-
function oxlint_define_property(obj, key, value) {
|
|
685
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
686
|
-
value: value,
|
|
687
|
-
enumerable: !0,
|
|
688
|
-
configurable: !0,
|
|
689
|
-
writable: !0
|
|
690
|
-
}) : obj[key] = value, obj;
|
|
691
|
-
}
|
|
692
684
|
class OxlintPlugin {
|
|
693
|
-
getGitChangedFiles() {
|
|
694
|
-
return new Promise((resolve)=>{
|
|
695
|
-
var _child_stdout;
|
|
696
|
-
let child = spawn('git', [
|
|
697
|
-
'status',
|
|
698
|
-
'--porcelain'
|
|
699
|
-
], {
|
|
700
|
-
cwd: process.cwd(),
|
|
701
|
-
stdio: 'pipe'
|
|
702
|
-
}), output = '';
|
|
703
|
-
null == (_child_stdout = child.stdout) || _child_stdout.on('data', (data)=>{
|
|
704
|
-
output += data.toString();
|
|
705
|
-
}), child.on('exit', (code)=>{
|
|
706
|
-
0 === code ? resolve(output.trim().split('\n').filter(Boolean).map((line)=>{
|
|
707
|
-
let idx = line.indexOf(' '), status = line.slice(0, idx), filePath = line.slice(idx + 1).trim();
|
|
708
|
-
return status.includes('D') ? null : ((status.startsWith('R') || status.startsWith('C')) && (filePath = filePath.split(' -> ')[1]), filePath);
|
|
709
|
-
}).filter(Boolean).map((file)=>node_path.resolve(process.cwd(), file))) : resolve([]);
|
|
710
|
-
}), child.on('error', ()=>{
|
|
711
|
-
resolve([]);
|
|
712
|
-
});
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
685
|
runOxlint(args) {
|
|
716
686
|
var _child_stdout, _child_stderr;
|
|
717
687
|
let child = spawn('npx', [
|
|
@@ -729,34 +699,31 @@ class OxlintPlugin {
|
|
|
729
699
|
null == (_child_stdout = child.stdout) || _child_stdout.on('data', (data)=>{
|
|
730
700
|
output += data.toString();
|
|
731
701
|
}), child.on('exit', (code)=>{
|
|
732
|
-
output.includes('Found 0 warnings and 0 errors')
|
|
702
|
+
let hasErrors = !output.includes('Found 0 warnings and 0 errors'), hasNoFiles = output.includes('on 0 files');
|
|
703
|
+
(hasErrors || 0 !== code) && !hasNoFiles && process.stdout.write(output);
|
|
733
704
|
}), null == (_child_stderr = child.stderr) || _child_stderr.on('data', (data)=>{
|
|
734
705
|
process.stderr.write(data);
|
|
735
706
|
});
|
|
736
707
|
}
|
|
737
708
|
apply(compiler) {
|
|
738
709
|
compiler.hooks.watchRun.tap('OxlintPlugin', ()=>{
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}, this.debounceTime);
|
|
710
|
+
let configPath = node_path.resolve(oxlint_dirname, '.oxlintrc.json'), changedFiles = compiler.modifiedFiles ? Array.from(compiler.modifiedFiles) : [];
|
|
711
|
+
if (1 === changedFiles.length) {
|
|
712
|
+
let currentFile = changedFiles[0];
|
|
713
|
+
if (node_fs.existsSync(currentFile) && node_fs.statSync(currentFile).isFile()) {
|
|
714
|
+
let args = [
|
|
715
|
+
'oxlint',
|
|
716
|
+
'-c',
|
|
717
|
+
configPath,
|
|
718
|
+
currentFile,
|
|
719
|
+
'--fix',
|
|
720
|
+
'--fix-suggestions'
|
|
721
|
+
];
|
|
722
|
+
this.runOxlint(args);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
755
725
|
});
|
|
756
726
|
}
|
|
757
|
-
constructor(){
|
|
758
|
-
oxlint_define_property(this, "timeoutId", null), oxlint_define_property(this, "debounceTime", 200);
|
|
759
|
-
}
|
|
760
727
|
}
|
|
761
728
|
function loadingAnimation_define_property(obj, key, value) {
|
|
762
729
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -1864,7 +1831,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1864
1831
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1865
1832
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1866
1833
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1867
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.
|
|
1834
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.1`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ms\n`), printAddressUrls(port, null == (_unpackConfig_server2 = unpackConfig.server) ? void 0 : _unpackConfig_server2.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
1868
1835
|
let open = null == (_unpackConfig_server3 = unpackConfig.server) ? void 0 : _unpackConfig_server3.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1869
1836
|
open && openBrowser(url), setupCliShortcuts({
|
|
1870
1837
|
openPage: async ()=>{
|
|
@@ -1938,7 +1905,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1938
1905
|
...mergeConfig(defaultConfig, config),
|
|
1939
1906
|
_context: {
|
|
1940
1907
|
callerName,
|
|
1941
|
-
version: "3.3.
|
|
1908
|
+
version: "3.3.1"
|
|
1942
1909
|
}
|
|
1943
1910
|
};
|
|
1944
1911
|
};
|
|
@@ -1946,7 +1913,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1946
1913
|
build: async ({ watch } = {})=>{
|
|
1947
1914
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1948
1915
|
let config = resolveConfig();
|
|
1949
|
-
console.log(colors.rainbow(`${callerName} v3.3.
|
|
1916
|
+
console.log(colors.rainbow(`${callerName} v3.3.1`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
1950
1917
|
},
|
|
1951
1918
|
dev: async ()=>{
|
|
1952
1919
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bundler-config/plugins/oxlint/index.ts"],"names":[],"mappings":"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"webpack-merge": "6.0.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rspack/core": "1.5.
|
|
42
|
+
"@rspack/core": "1.5.4",
|
|
43
43
|
"@rspack/dev-server": "1.1.4",
|
|
44
44
|
"@types/less": "3.0.8",
|
|
45
45
|
"chokidar": "4.0.3",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"dotenv-expand": "12.0.3",
|
|
48
48
|
"express": "5.1.0",
|
|
49
49
|
"jiti": "2.5.1",
|
|
50
|
-
"oxc-minify": "0.
|
|
50
|
+
"oxc-minify": "0.89.0",
|
|
51
51
|
"picocolors": "1.1.1",
|
|
52
|
-
"portfinder": "1.0.
|
|
52
|
+
"portfinder": "1.0.38",
|
|
53
53
|
"postcss": "8.5.6",
|
|
54
54
|
"thread-loader": "4.0.4",
|
|
55
55
|
"tinyglobby": "0.2.15",
|