@unpackjs/core 3.2.5 → 3.2.7
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 +22 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +90 -79
- package/compiled/postcss-loader/package.json +1 -1
- package/compiled/sass-loader/index.js +9 -9
- package/dist/index.cjs +79 -53
- package/dist/index.js +100 -83
- package/dist-types/bundler-config/index.d.ts +1 -1
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/jsMinify.d.ts +1 -1
- package/dist-types/bundler-config/plugins/jsMinify.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/run/dev.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +4 -1
- package/dist-types/types/config.d.ts.map +1 -1
- package/dist-types/types/oxc.d.ts +2 -2
- package/dist-types/types/oxc.d.ts.map +1 -1
- package/package.json +6 -6
- package/compiled/sass-loader/sass.node.js +0 -12
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
9448: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(5846);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(4887).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
5846: (__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__(7371));
|
|
18
|
+
var _plugins = __nccwpck_require__(7613);
|
|
19
|
+
var _utils = __nccwpck_require__(4887);
|
|
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
|
+
7613: (__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,20 +265,22 @@
|
|
|
265
265
|
},
|
|
266
266
|
});
|
|
267
267
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
268
|
+
__nccwpck_require__(7006),
|
|
269
269
|
);
|
|
270
|
-
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
|
|
270
|
+
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
+
__nccwpck_require__(9503),
|
|
272
|
+
);
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(7114));
|
|
272
274
|
function _interopRequireDefault(obj) {
|
|
273
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
274
276
|
}
|
|
275
277
|
},
|
|
276
|
-
|
|
278
|
+
9503: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
277
279
|
"use strict";
|
|
278
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
279
281
|
exports["default"] = void 0;
|
|
280
282
|
var _icssUtils = __nccwpck_require__(9028);
|
|
281
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(4887);
|
|
282
284
|
const plugin = (options = {}) => ({
|
|
283
285
|
postcssPlugin: "postcss-icss-parser",
|
|
284
286
|
async OnceExit(root) {
|
|
@@ -377,14 +379,14 @@
|
|
|
377
379
|
plugin.postcss = true;
|
|
378
380
|
var _default = (exports["default"] = plugin);
|
|
379
381
|
},
|
|
380
|
-
|
|
382
|
+
7006: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
381
383
|
"use strict";
|
|
382
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
383
385
|
exports["default"] = void 0;
|
|
384
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
385
387
|
__nccwpck_require__(2948),
|
|
386
388
|
);
|
|
387
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(4887);
|
|
388
390
|
function _interopRequireDefault(obj) {
|
|
389
391
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
390
392
|
}
|
|
@@ -689,14 +691,14 @@
|
|
|
689
691
|
plugin.postcss = true;
|
|
690
692
|
var _default = (exports["default"] = plugin);
|
|
691
693
|
},
|
|
692
|
-
|
|
694
|
+
7114: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
693
695
|
"use strict";
|
|
694
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
695
697
|
exports["default"] = void 0;
|
|
696
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
697
699
|
__nccwpck_require__(2948),
|
|
698
700
|
);
|
|
699
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(4887);
|
|
700
702
|
function _interopRequireDefault(obj) {
|
|
701
703
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
702
704
|
}
|
|
@@ -1039,7 +1041,7 @@
|
|
|
1039
1041
|
plugin.postcss = true;
|
|
1040
1042
|
var _default = (exports["default"] = plugin);
|
|
1041
1043
|
},
|
|
1042
|
-
|
|
1044
|
+
4887: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1043
1045
|
"use strict";
|
|
1044
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1045
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -7962,7 +7964,7 @@
|
|
|
7962
7964
|
"use strict";
|
|
7963
7965
|
module.exports = require("util");
|
|
7964
7966
|
},
|
|
7965
|
-
|
|
7967
|
+
7371: (module) => {
|
|
7966
7968
|
"use strict";
|
|
7967
7969
|
module.exports = JSON.parse(
|
|
7968
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"}',
|
|
@@ -7997,6 +7999,6 @@
|
|
|
7997
7999
|
}
|
|
7998
8000
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
7999
8001
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8000
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8002
|
+
var __webpack_exports__ = __nccwpck_require__(9448);
|
|
8001
8003
|
module.exports = __webpack_exports__;
|
|
8002
8004
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
974: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(492)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
492: (__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__(565));
|
|
13
|
+
var _utils = __nccwpck_require__(581);
|
|
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
|
+
581: (__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
|
+
565: (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__(974);
|
|
344
344
|
module.exports = __webpack_exports__;
|
|
345
345
|
})();
|
|
@@ -5319,21 +5319,21 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
6285: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(1767)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
1767: (__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
|
-
var
|
|
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__(
|
|
5335
|
-
function _interopRequireDefault(
|
|
5336
|
-
return
|
|
5333
|
+
var _options = _interopRequireDefault(__nccwpck_require__(1606));
|
|
5334
|
+
var _utils = __nccwpck_require__(3090);
|
|
5335
|
+
function _interopRequireDefault(e) {
|
|
5336
|
+
return e && e.__esModule ? e : { default: e };
|
|
5337
5337
|
}
|
|
5338
5338
|
let hasExplicitDependencyOnPostCSS = false;
|
|
5339
5339
|
async function loader(content, sourceMap, meta) {
|
|
@@ -5432,15 +5432,15 @@
|
|
|
5432
5432
|
let bufferOfPackageJSON;
|
|
5433
5433
|
try {
|
|
5434
5434
|
bufferOfPackageJSON = this.fs.readFileSync(
|
|
5435
|
-
|
|
5435
|
+
_nodePath.default.resolve(packageJSONDir, "package.json"),
|
|
5436
5436
|
"utf8",
|
|
5437
5437
|
);
|
|
5438
|
-
} catch
|
|
5438
|
+
} catch {}
|
|
5439
5439
|
if (bufferOfPackageJSON) {
|
|
5440
5440
|
let pkg;
|
|
5441
5441
|
try {
|
|
5442
5442
|
pkg = JSON.parse(bufferOfPackageJSON);
|
|
5443
|
-
} catch
|
|
5443
|
+
} catch {}
|
|
5444
5444
|
if (pkg) {
|
|
5445
5445
|
const { dependencies = {}, devDependencies = {} } = pkg;
|
|
5446
5446
|
if (!dependencies.postcss && !devDependencies.postcss) {
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
callback(null, result.css, map, { ast });
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
3090: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5522,12 +5522,12 @@
|
|
|
5522
5522
|
exports.normalizeSourceMapAfterPostcss = normalizeSourceMapAfterPostcss;
|
|
5523
5523
|
exports.reportError = reportError;
|
|
5524
5524
|
exports.warningFactory = warningFactory;
|
|
5525
|
-
var
|
|
5526
|
-
var
|
|
5527
|
-
var
|
|
5525
|
+
var _nodeModule = _interopRequireDefault(__nccwpck_require__(8995));
|
|
5526
|
+
var _nodePath = _interopRequireDefault(__nccwpck_require__(6760));
|
|
5527
|
+
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(3136));
|
|
5528
5528
|
var _cosmiconfig = __nccwpck_require__(6678);
|
|
5529
|
-
function _interopRequireDefault(
|
|
5530
|
-
return
|
|
5529
|
+
function _interopRequireDefault(e) {
|
|
5530
|
+
return e && e.__esModule ? e : { default: e };
|
|
5531
5531
|
}
|
|
5532
5532
|
const parentModule = module;
|
|
5533
5533
|
const stat = (inputFileSystem, filePath) =>
|
|
@@ -5541,8 +5541,8 @@
|
|
|
5541
5541
|
});
|
|
5542
5542
|
function exec(code, loaderContext) {
|
|
5543
5543
|
const { resource, context } = loaderContext;
|
|
5544
|
-
const module = new
|
|
5545
|
-
module.paths =
|
|
5544
|
+
const module = new _nodeModule.default(resource, parentModule);
|
|
5545
|
+
module.paths = _nodeModule.default._nodeModulePaths(context);
|
|
5546
5546
|
module.filename = resource;
|
|
5547
5547
|
module._compile(code, resource);
|
|
5548
5548
|
return module.exports;
|
|
@@ -5551,12 +5551,12 @@
|
|
|
5551
5551
|
async function loadConfig(loaderContext, config, postcssOptions) {
|
|
5552
5552
|
const searchPath =
|
|
5553
5553
|
typeof config === "string"
|
|
5554
|
-
?
|
|
5555
|
-
:
|
|
5554
|
+
? _nodePath.default.resolve(config)
|
|
5555
|
+
: _nodePath.default.dirname(loaderContext.resourcePath);
|
|
5556
5556
|
let stats;
|
|
5557
5557
|
try {
|
|
5558
5558
|
stats = await stat(loaderContext.fs, searchPath);
|
|
5559
|
-
} catch
|
|
5559
|
+
} catch {
|
|
5560
5560
|
throw new Error(`No PostCSS config found in: ${searchPath}`);
|
|
5561
5561
|
}
|
|
5562
5562
|
const moduleName = "postcss";
|
|
@@ -5598,15 +5598,15 @@
|
|
|
5598
5598
|
let importESM;
|
|
5599
5599
|
try {
|
|
5600
5600
|
importESM = new Function("id", "return import(id);");
|
|
5601
|
-
} catch
|
|
5601
|
+
} catch {
|
|
5602
5602
|
importESM = null;
|
|
5603
5603
|
}
|
|
5604
5604
|
if (
|
|
5605
5605
|
error.code === "ERR_REQUIRE_ESM" &&
|
|
5606
|
-
|
|
5606
|
+
_nodeUrl.default.pathToFileURL &&
|
|
5607
5607
|
importESM
|
|
5608
5608
|
) {
|
|
5609
|
-
const urlForConfig =
|
|
5609
|
+
const urlForConfig = _nodeUrl.default.pathToFileURL(args[0]);
|
|
5610
5610
|
result = await importESM(urlForConfig);
|
|
5611
5611
|
} else {
|
|
5612
5612
|
throw error;
|
|
@@ -5623,11 +5623,11 @@
|
|
|
5623
5623
|
let importESM;
|
|
5624
5624
|
try {
|
|
5625
5625
|
importESM = new Function("id", "return import(id);");
|
|
5626
|
-
} catch
|
|
5626
|
+
} catch {
|
|
5627
5627
|
importESM = null;
|
|
5628
5628
|
}
|
|
5629
|
-
if (
|
|
5630
|
-
const urlForConfig =
|
|
5629
|
+
if (_nodeUrl.default.pathToFileURL && importESM) {
|
|
5630
|
+
const urlForConfig = _nodeUrl.default.pathToFileURL(args[0]);
|
|
5631
5631
|
result = await importESM(urlForConfig);
|
|
5632
5632
|
} else {
|
|
5633
5633
|
throw new Error("ESM is not supported");
|
|
@@ -5640,8 +5640,9 @@
|
|
|
5640
5640
|
};
|
|
5641
5641
|
if (!tsLoader) {
|
|
5642
5642
|
const opts = { interopDefault: true };
|
|
5643
|
-
const
|
|
5644
|
-
|
|
5643
|
+
const { createJiti } = __nccwpck_require__(549);
|
|
5644
|
+
const jiti = createJiti(__filename, opts);
|
|
5645
|
+
tsLoader = (filepath) => jiti.import(filepath, { default: true });
|
|
5645
5646
|
}
|
|
5646
5647
|
loaders[".cts"] = tsLoader;
|
|
5647
5648
|
loaders[".mts"] = tsLoader;
|
|
@@ -5651,16 +5652,9 @@
|
|
|
5651
5652
|
searchPlaces,
|
|
5652
5653
|
loaders,
|
|
5653
5654
|
});
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
result = await explorer.load(searchPath);
|
|
5658
|
-
} else {
|
|
5659
|
-
result = await explorer.search(searchPath);
|
|
5660
|
-
}
|
|
5661
|
-
} catch (error) {
|
|
5662
|
-
throw error;
|
|
5663
|
-
}
|
|
5655
|
+
const result = await (stats.isFile()
|
|
5656
|
+
? explorer.load(searchPath)
|
|
5657
|
+
: explorer.search(searchPath));
|
|
5664
5658
|
if (!result) {
|
|
5665
5659
|
return {};
|
|
5666
5660
|
}
|
|
@@ -5746,18 +5740,18 @@
|
|
|
5746
5740
|
try {
|
|
5747
5741
|
exports = require(module);
|
|
5748
5742
|
return exports;
|
|
5749
|
-
} catch (
|
|
5743
|
+
} catch (err) {
|
|
5750
5744
|
let importESM;
|
|
5751
5745
|
try {
|
|
5752
5746
|
importESM = new Function("id", "return import(id);");
|
|
5753
|
-
} catch
|
|
5747
|
+
} catch {
|
|
5754
5748
|
importESM = null;
|
|
5755
5749
|
}
|
|
5756
|
-
if (
|
|
5750
|
+
if (err.code === "ERR_REQUIRE_ESM" && importESM) {
|
|
5757
5751
|
exports = await importESM(module);
|
|
5758
5752
|
return exports.default;
|
|
5759
5753
|
}
|
|
5760
|
-
throw
|
|
5754
|
+
throw err;
|
|
5761
5755
|
}
|
|
5762
5756
|
}
|
|
5763
5757
|
async function getPostcssOptions(
|
|
@@ -5787,28 +5781,28 @@
|
|
|
5787
5781
|
} catch (error) {
|
|
5788
5782
|
loaderContext.emitError(error);
|
|
5789
5783
|
}
|
|
5790
|
-
const processOptionsFromConfig = { ...loadedConfig.config }
|
|
5784
|
+
const processOptionsFromConfig = { ...loadedConfig.config };
|
|
5791
5785
|
if (processOptionsFromConfig.from) {
|
|
5792
|
-
processOptionsFromConfig.from =
|
|
5793
|
-
|
|
5786
|
+
processOptionsFromConfig.from = _nodePath.default.resolve(
|
|
5787
|
+
_nodePath.default.dirname(loadedConfig.filepath),
|
|
5794
5788
|
processOptionsFromConfig.from,
|
|
5795
5789
|
);
|
|
5796
5790
|
}
|
|
5797
5791
|
if (processOptionsFromConfig.to) {
|
|
5798
|
-
processOptionsFromConfig.to =
|
|
5799
|
-
|
|
5792
|
+
processOptionsFromConfig.to = _nodePath.default.resolve(
|
|
5793
|
+
_nodePath.default.dirname(loadedConfig.filepath),
|
|
5800
5794
|
processOptionsFromConfig.to,
|
|
5801
5795
|
);
|
|
5802
5796
|
}
|
|
5803
5797
|
const processOptionsFromOptions = { ...normalizedPostcssOptions };
|
|
5804
5798
|
if (processOptionsFromOptions.from) {
|
|
5805
|
-
processOptionsFromOptions.from =
|
|
5799
|
+
processOptionsFromOptions.from = _nodePath.default.resolve(
|
|
5806
5800
|
loaderContext.rootContext,
|
|
5807
5801
|
processOptionsFromOptions.from,
|
|
5808
5802
|
);
|
|
5809
5803
|
}
|
|
5810
5804
|
if (processOptionsFromOptions.to) {
|
|
5811
|
-
processOptionsFromOptions.to =
|
|
5805
|
+
processOptionsFromOptions.to = _nodePath.default.resolve(
|
|
5812
5806
|
loaderContext.rootContext,
|
|
5813
5807
|
processOptionsFromOptions.to,
|
|
5814
5808
|
);
|
|
@@ -5902,12 +5896,15 @@
|
|
|
5902
5896
|
) {
|
|
5903
5897
|
const absoluteSource =
|
|
5904
5898
|
sourceType === "path-relative" && sourceRoot
|
|
5905
|
-
?
|
|
5899
|
+
? _nodePath.default.resolve(
|
|
5906
5900
|
sourceRoot,
|
|
5907
|
-
|
|
5901
|
+
_nodePath.default.normalize(source),
|
|
5908
5902
|
)
|
|
5909
|
-
:
|
|
5910
|
-
return
|
|
5903
|
+
: _nodePath.default.normalize(source);
|
|
5904
|
+
return _nodePath.default.relative(
|
|
5905
|
+
resourceContext,
|
|
5906
|
+
absoluteSource,
|
|
5907
|
+
);
|
|
5911
5908
|
}
|
|
5912
5909
|
return source;
|
|
5913
5910
|
});
|
|
@@ -5924,7 +5921,7 @@
|
|
|
5924
5921
|
}
|
|
5925
5922
|
const sourceType = getURLType(source);
|
|
5926
5923
|
if (sourceType === "path-relative") {
|
|
5927
|
-
return
|
|
5924
|
+
return _nodePath.default.resolve(resourceContext, source);
|
|
5928
5925
|
}
|
|
5929
5926
|
return source;
|
|
5930
5927
|
});
|
|
@@ -5934,11 +5931,13 @@
|
|
|
5934
5931
|
let dir = cwd;
|
|
5935
5932
|
for (;;) {
|
|
5936
5933
|
try {
|
|
5937
|
-
if (
|
|
5934
|
+
if (
|
|
5935
|
+
statSync(_nodePath.default.join(dir, "package.json")).isFile()
|
|
5936
|
+
) {
|
|
5938
5937
|
break;
|
|
5939
5938
|
}
|
|
5940
|
-
} catch
|
|
5941
|
-
const parent =
|
|
5939
|
+
} catch {}
|
|
5940
|
+
const parent = _nodePath.default.dirname(dir);
|
|
5942
5941
|
if (dir === parent) {
|
|
5943
5942
|
dir = null;
|
|
5944
5943
|
break;
|
|
@@ -5955,6 +5954,24 @@
|
|
|
5955
5954
|
}
|
|
5956
5955
|
return resolvedImplementation;
|
|
5957
5956
|
}
|
|
5957
|
+
function syntaxErrorFactory(error) {
|
|
5958
|
+
let message = "\nSyntaxError\n\n";
|
|
5959
|
+
if (typeof error.line !== "undefined") {
|
|
5960
|
+
message += `(${error.line}:${error.column}) `;
|
|
5961
|
+
}
|
|
5962
|
+
if (typeof error.plugin !== "undefined") {
|
|
5963
|
+
message += `from "${error.plugin}" plugin: `;
|
|
5964
|
+
}
|
|
5965
|
+
message += error.file ? `${error.file} ` : "<css input> ";
|
|
5966
|
+
message += `${error.reason}`;
|
|
5967
|
+
const code = error.showSourceCode();
|
|
5968
|
+
if (code) {
|
|
5969
|
+
message += `\n\n${code}\n`;
|
|
5970
|
+
}
|
|
5971
|
+
const obj = new Error(message, { cause: error });
|
|
5972
|
+
obj.stack = null;
|
|
5973
|
+
return obj;
|
|
5974
|
+
}
|
|
5958
5975
|
function reportError(loaderContext, callback, error) {
|
|
5959
5976
|
if (error.file) {
|
|
5960
5977
|
loaderContext.addDependency(error.file);
|
|
@@ -5981,24 +5998,6 @@
|
|
|
5981
5998
|
obj.stack = null;
|
|
5982
5999
|
return obj;
|
|
5983
6000
|
}
|
|
5984
|
-
function syntaxErrorFactory(error) {
|
|
5985
|
-
let message = "\nSyntaxError\n\n";
|
|
5986
|
-
if (typeof error.line !== "undefined") {
|
|
5987
|
-
message += `(${error.line}:${error.column}) `;
|
|
5988
|
-
}
|
|
5989
|
-
if (typeof error.plugin !== "undefined") {
|
|
5990
|
-
message += `from "${error.plugin}" plugin: `;
|
|
5991
|
-
}
|
|
5992
|
-
message += error.file ? `${error.file} ` : "<css input> ";
|
|
5993
|
-
message += `${error.reason}`;
|
|
5994
|
-
const code = error.showSourceCode();
|
|
5995
|
-
if (code) {
|
|
5996
|
-
message += `\n\n${code}\n`;
|
|
5997
|
-
}
|
|
5998
|
-
const obj = new Error(message, { cause: error });
|
|
5999
|
-
obj.stack = null;
|
|
6000
|
-
return obj;
|
|
6001
|
-
}
|
|
6002
6001
|
},
|
|
6003
6002
|
566: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6004
6003
|
"use strict";
|
|
@@ -6080,6 +6079,18 @@
|
|
|
6080
6079
|
"use strict";
|
|
6081
6080
|
module.exports = require("module");
|
|
6082
6081
|
},
|
|
6082
|
+
8995: (module) => {
|
|
6083
|
+
"use strict";
|
|
6084
|
+
module.exports = require("node:module");
|
|
6085
|
+
},
|
|
6086
|
+
6760: (module) => {
|
|
6087
|
+
"use strict";
|
|
6088
|
+
module.exports = require("node:path");
|
|
6089
|
+
},
|
|
6090
|
+
3136: (module) => {
|
|
6091
|
+
"use strict";
|
|
6092
|
+
module.exports = require("node:url");
|
|
6093
|
+
},
|
|
6083
6094
|
857: (module) => {
|
|
6084
6095
|
"use strict";
|
|
6085
6096
|
module.exports = require("os");
|
|
@@ -6607,7 +6618,7 @@
|
|
|
6607
6618
|
return keywords.has(word);
|
|
6608
6619
|
}
|
|
6609
6620
|
},
|
|
6610
|
-
|
|
6621
|
+
1606: (module) => {
|
|
6611
6622
|
"use strict";
|
|
6612
6623
|
module.exports = JSON.parse(
|
|
6613
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}',
|
|
@@ -6717,6 +6728,6 @@
|
|
|
6717
6728
|
})();
|
|
6718
6729
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6719
6730
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6720
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6731
|
+
var __webpack_exports__ = __nccwpck_require__(6285);
|
|
6721
6732
|
module.exports = __webpack_exports__;
|
|
6722
6733
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"postcss-loader","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"8.
|
|
1
|
+
{"name":"postcss-loader","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"8.2.0","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
805: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(519);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
519: (__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__(134));
|
|
4810
|
+
var _utils = __nccwpck_require__(842);
|
|
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
|
+
842: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -4940,7 +4940,7 @@
|
|
|
4940
4940
|
sassImplPkg = "sass-embedded";
|
|
4941
4941
|
} catch (ignoreError) {
|
|
4942
4942
|
try {
|
|
4943
|
-
|
|
4943
|
+
require.resolve("sass");
|
|
4944
4944
|
} catch (_ignoreError) {
|
|
4945
4945
|
try {
|
|
4946
4946
|
require.resolve("node-sass");
|
|
@@ -5582,7 +5582,7 @@
|
|
|
5582
5582
|
"use strict";
|
|
5583
5583
|
module.exports = require("url");
|
|
5584
5584
|
},
|
|
5585
|
-
|
|
5585
|
+
134: (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__(805);
|
|
5616
5616
|
module.exports = __webpack_exports__;
|
|
5617
5617
|
})();
|