@unpackjs/core 3.3.3 → 3.3.5
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 +339 -217
- package/compiled/launch-editor/index.js +21 -20
- package/compiled/launch-editor/package.json +1 -1
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +194 -192
- package/compiled/sass-loader/index.js +142 -156
- package/compiled/sass-loader/package.json +1 -1
- package/compiled/semver/index.js +187 -169
- package/compiled/semver/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/compiled/webpack-bundle-analyzer/index.js +2 -2
- package/compiled/webpack-merge/index.js +29 -29
- package/dist/index.cjs +139 -168
- package/dist/index.js +92 -122
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/bundler-config/typeCheck.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
675: function (__unused_webpack_module, exports) {
|
|
4
4
|
(function (global, factory) {
|
|
5
5
|
"use strict";
|
|
6
6
|
true ? factory(exports) : 0;
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
699: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(253);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
253: (__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
|
-
var
|
|
4808
|
-
var
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4807
|
+
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
4808
|
+
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(136));
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(51));
|
|
4810
|
+
var _utils = __nccwpck_require__(584);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4876,48 +4876,45 @@
|
|
|
4876
4876
|
result = await compile(sassOptions);
|
|
4877
4877
|
} catch (error) {
|
|
4878
4878
|
if (error.span && typeof error.span.url !== "undefined") {
|
|
4879
|
-
this.addDependency(
|
|
4879
|
+
this.addDependency(_nodeUrl.default.fileURLToPath(error.span.url));
|
|
4880
4880
|
} else if (typeof error.file !== "undefined") {
|
|
4881
|
-
this.addDependency(
|
|
4881
|
+
this.addDependency(_nodePath.default.normalize(error.file));
|
|
4882
4882
|
}
|
|
4883
4883
|
callback((0, _utils.errorFactory)(error));
|
|
4884
4884
|
return;
|
|
4885
4885
|
}
|
|
4886
|
-
let map =
|
|
4887
|
-
? result.
|
|
4888
|
-
: result.map
|
|
4889
|
-
? JSON.parse(result.map)
|
|
4890
|
-
: null;
|
|
4886
|
+
let map =
|
|
4887
|
+
result.sourceMap || (result.map ? JSON.parse(result.map) : null);
|
|
4891
4888
|
if (map && useSourceMap) {
|
|
4892
4889
|
map = (0, _utils.normalizeSourceMap)(map, this.rootContext);
|
|
4893
4890
|
}
|
|
4894
4891
|
if (typeof result.loadedUrls !== "undefined") {
|
|
4895
|
-
result.loadedUrls
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4892
|
+
for (const includedFile of result.loadedUrls.filter(
|
|
4893
|
+
(loadedUrl) => loadedUrl.protocol === "file:",
|
|
4894
|
+
)) {
|
|
4895
|
+
const normalizedIncludedFile =
|
|
4896
|
+
_nodeUrl.default.fileURLToPath(includedFile);
|
|
4897
|
+
if (_nodePath.default.isAbsolute(normalizedIncludedFile)) {
|
|
4898
|
+
this.addDependency(normalizedIncludedFile);
|
|
4899
|
+
}
|
|
4900
|
+
}
|
|
4904
4901
|
} else if (
|
|
4905
4902
|
typeof result.stats !== "undefined" &&
|
|
4906
4903
|
typeof result.stats.includedFiles !== "undefined"
|
|
4907
4904
|
) {
|
|
4908
|
-
result.stats.includedFiles
|
|
4905
|
+
for (const includedFile of result.stats.includedFiles) {
|
|
4909
4906
|
const normalizedIncludedFile =
|
|
4910
|
-
|
|
4911
|
-
if (
|
|
4907
|
+
_nodePath.default.normalize(includedFile);
|
|
4908
|
+
if (_nodePath.default.isAbsolute(normalizedIncludedFile)) {
|
|
4912
4909
|
this.addDependency(normalizedIncludedFile);
|
|
4913
4910
|
}
|
|
4914
|
-
}
|
|
4911
|
+
}
|
|
4915
4912
|
}
|
|
4916
4913
|
callback(null, result.css.toString(), map);
|
|
4917
4914
|
}
|
|
4918
4915
|
var _default = (exports["default"] = loader);
|
|
4919
4916
|
},
|
|
4920
|
-
|
|
4917
|
+
584: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4918
|
"use strict";
|
|
4922
4919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4920
|
exports.errorFactory = errorFactory;
|
|
@@ -4928,8 +4925,8 @@
|
|
|
4928
4925
|
exports.getWebpackImporter = getWebpackImporter;
|
|
4929
4926
|
exports.getWebpackResolver = getWebpackResolver;
|
|
4930
4927
|
exports.normalizeSourceMap = normalizeSourceMap;
|
|
4931
|
-
var
|
|
4932
|
-
var
|
|
4928
|
+
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
4929
|
+
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(136));
|
|
4933
4930
|
function _interopRequireDefault(e) {
|
|
4934
4931
|
return e && e.__esModule ? e : { default: e };
|
|
4935
4932
|
}
|
|
@@ -4938,14 +4935,14 @@
|
|
|
4938
4935
|
try {
|
|
4939
4936
|
__nccwpck_require__.ab + "index1.js";
|
|
4940
4937
|
sassImplPkg = "sass-embedded";
|
|
4941
|
-
} catch
|
|
4938
|
+
} catch {
|
|
4942
4939
|
try {
|
|
4943
4940
|
require.resolve("sass");
|
|
4944
|
-
} catch
|
|
4941
|
+
} catch {
|
|
4945
4942
|
try {
|
|
4946
4943
|
require.resolve("node-sass");
|
|
4947
4944
|
sassImplPkg = "node-sass";
|
|
4948
|
-
} catch
|
|
4945
|
+
} catch {
|
|
4949
4946
|
sassImplPkg = "sass";
|
|
4950
4947
|
}
|
|
4951
4948
|
}
|
|
@@ -4982,7 +4979,7 @@
|
|
|
4982
4979
|
return loaderContext.mode === "production" || !loaderContext.mode;
|
|
4983
4980
|
}
|
|
4984
4981
|
function proxyCustomImporters(importers, loaderContext) {
|
|
4985
|
-
return [].
|
|
4982
|
+
return [importers].flat().map(
|
|
4986
4983
|
(importer) =>
|
|
4987
4984
|
function proxyImporter(...args) {
|
|
4988
4985
|
const self = { ...this, webpackLoaderContext: loaderContext };
|
|
@@ -5057,7 +5054,7 @@
|
|
|
5057
5054
|
apiType === "modern" || apiType === "modern-compiler";
|
|
5058
5055
|
const { resourcePath } = loaderContext;
|
|
5059
5056
|
if (isModernAPI) {
|
|
5060
|
-
sassOptions.url =
|
|
5057
|
+
sassOptions.url = _nodeUrl.default.pathToFileURL(resourcePath);
|
|
5061
5058
|
if (!sassOptions.style && isProductionLikeMode(loaderContext)) {
|
|
5062
5059
|
sassOptions.style = "compressed";
|
|
5063
5060
|
}
|
|
@@ -5066,7 +5063,7 @@
|
|
|
5066
5063
|
sassOptions.sourceMapIncludeSources = true;
|
|
5067
5064
|
}
|
|
5068
5065
|
if (typeof sassOptions.syntax === "undefined") {
|
|
5069
|
-
const ext =
|
|
5066
|
+
const ext = _nodePath.default.extname(resourcePath);
|
|
5070
5067
|
if (ext && ext.toLowerCase() === ".scss") {
|
|
5071
5068
|
sassOptions.syntax = "scss";
|
|
5072
5069
|
} else if (ext && ext.toLowerCase() === ".sass") {
|
|
@@ -5075,25 +5072,22 @@
|
|
|
5075
5072
|
sassOptions.syntax = "css";
|
|
5076
5073
|
}
|
|
5077
5074
|
}
|
|
5078
|
-
sassOptions.loadPaths = [
|
|
5079
|
-
.
|
|
5080
|
-
(
|
|
5081
|
-
(includePath)
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
)
|
|
5092
|
-
: [],
|
|
5093
|
-
);
|
|
5075
|
+
sassOptions.loadPaths = [
|
|
5076
|
+
...(sassOptions.loadPaths ? [...sassOptions.loadPaths] : []).map(
|
|
5077
|
+
(includePath) =>
|
|
5078
|
+
_nodePath.default.isAbsolute(includePath)
|
|
5079
|
+
? includePath
|
|
5080
|
+
: _nodePath.default.join(process.cwd(), includePath),
|
|
5081
|
+
),
|
|
5082
|
+
...(process.env.SASS_PATH
|
|
5083
|
+
? process.env.SASS_PATH.split(
|
|
5084
|
+
process.platform === "win32" ? ";" : ":",
|
|
5085
|
+
)
|
|
5086
|
+
: []),
|
|
5087
|
+
];
|
|
5094
5088
|
sassOptions.importers = sassOptions.importers
|
|
5095
5089
|
? Array.isArray(sassOptions.importers)
|
|
5096
|
-
? sassOptions.importers
|
|
5090
|
+
? [...sassOptions.importers]
|
|
5097
5091
|
: [sassOptions.importers]
|
|
5098
5092
|
: [];
|
|
5099
5093
|
} else {
|
|
@@ -5103,7 +5097,7 @@
|
|
|
5103
5097
|
}
|
|
5104
5098
|
if (useSourceMap) {
|
|
5105
5099
|
sassOptions.sourceMap = true;
|
|
5106
|
-
sassOptions.outFile =
|
|
5100
|
+
sassOptions.outFile = _nodePath.default.join(
|
|
5107
5101
|
loaderContext.rootContext,
|
|
5108
5102
|
"style.css.map",
|
|
5109
5103
|
);
|
|
@@ -5111,7 +5105,7 @@
|
|
|
5111
5105
|
sassOptions.omitSourceMapUrl = true;
|
|
5112
5106
|
sassOptions.sourceMapEmbed = false;
|
|
5113
5107
|
}
|
|
5114
|
-
const ext =
|
|
5108
|
+
const ext = _nodePath.default.extname(resourcePath);
|
|
5115
5109
|
if (
|
|
5116
5110
|
ext &&
|
|
5117
5111
|
ext.toLowerCase() === ".sass" &&
|
|
@@ -5124,7 +5118,7 @@
|
|
|
5124
5118
|
sassOptions.importer = sassOptions.importer
|
|
5125
5119
|
? proxyCustomImporters(
|
|
5126
5120
|
Array.isArray(sassOptions.importer)
|
|
5127
|
-
? sassOptions.importer
|
|
5121
|
+
? [...sassOptions.importer]
|
|
5128
5122
|
: [sassOptions.importer],
|
|
5129
5123
|
loaderContext,
|
|
5130
5124
|
)
|
|
@@ -5135,25 +5129,22 @@
|
|
|
5135
5129
|
) {
|
|
5136
5130
|
sassOptions.importer = undefined;
|
|
5137
5131
|
}
|
|
5138
|
-
sassOptions.includePaths = [
|
|
5139
|
-
|
|
5140
|
-
.
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
)
|
|
5155
|
-
: [],
|
|
5156
|
-
);
|
|
5132
|
+
sassOptions.includePaths = [
|
|
5133
|
+
process.cwd(),
|
|
5134
|
+
...(sassOptions.includePaths
|
|
5135
|
+
? [...sassOptions.includePaths]
|
|
5136
|
+
: []
|
|
5137
|
+
).map((includePath) =>
|
|
5138
|
+
_nodePath.default.isAbsolute(includePath)
|
|
5139
|
+
? includePath
|
|
5140
|
+
: _nodePath.default.join(process.cwd(), includePath),
|
|
5141
|
+
),
|
|
5142
|
+
...(process.env.SASS_PATH
|
|
5143
|
+
? process.env.SASS_PATH.split(
|
|
5144
|
+
process.platform === "win32" ? ";" : ":",
|
|
5145
|
+
)
|
|
5146
|
+
: []),
|
|
5147
|
+
];
|
|
5157
5148
|
if (typeof sassOptions.charset === "undefined") {
|
|
5158
5149
|
sassOptions.charset = true;
|
|
5159
5150
|
}
|
|
@@ -5184,34 +5175,31 @@
|
|
|
5184
5175
|
return [...new Set([request, url])];
|
|
5185
5176
|
}
|
|
5186
5177
|
}
|
|
5187
|
-
const extension =
|
|
5178
|
+
const extension = _nodePath.default.extname(request).toLowerCase();
|
|
5188
5179
|
if (extension === ".css") {
|
|
5189
5180
|
return fromImport ? [] : [url];
|
|
5190
5181
|
}
|
|
5191
|
-
const dirname =
|
|
5182
|
+
const dirname = _nodePath.default.dirname(request);
|
|
5192
5183
|
const normalizedDirname = dirname === "." ? "" : `${dirname}/`;
|
|
5193
|
-
const basename =
|
|
5194
|
-
const basenameWithoutExtension =
|
|
5184
|
+
const basename = _nodePath.default.basename(request);
|
|
5185
|
+
const basenameWithoutExtension = _nodePath.default.basename(
|
|
5195
5186
|
request,
|
|
5196
5187
|
extension,
|
|
5197
5188
|
);
|
|
5198
5189
|
return [
|
|
5199
|
-
...new Set(
|
|
5200
|
-
[
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
])
|
|
5213
|
-
.concat(forWebpackResolver ? [url] : []),
|
|
5214
|
-
),
|
|
5190
|
+
...new Set([
|
|
5191
|
+
...[
|
|
5192
|
+
fromImport
|
|
5193
|
+
? [
|
|
5194
|
+
`${normalizedDirname}_${basenameWithoutExtension}.import${extension}`,
|
|
5195
|
+
`${normalizedDirname}${basenameWithoutExtension}.import${extension}`,
|
|
5196
|
+
]
|
|
5197
|
+
: [],
|
|
5198
|
+
].flat(),
|
|
5199
|
+
`${normalizedDirname}_${basename}`,
|
|
5200
|
+
`${normalizedDirname}${basename}`,
|
|
5201
|
+
...(forWebpackResolver ? [url] : []),
|
|
5202
|
+
]),
|
|
5215
5203
|
];
|
|
5216
5204
|
}
|
|
5217
5205
|
function promiseResolve(callbackResolve) {
|
|
@@ -5228,16 +5216,16 @@
|
|
|
5228
5216
|
}
|
|
5229
5217
|
async function startResolving(resolutionMap) {
|
|
5230
5218
|
if (resolutionMap.length === 0) {
|
|
5231
|
-
|
|
5219
|
+
throw new Error("Next");
|
|
5232
5220
|
}
|
|
5233
5221
|
const [{ possibleRequests }] = resolutionMap;
|
|
5234
5222
|
if (possibleRequests.length === 0) {
|
|
5235
|
-
|
|
5223
|
+
throw new Error("Next");
|
|
5236
5224
|
}
|
|
5237
5225
|
const [{ resolve, context }] = resolutionMap;
|
|
5238
5226
|
try {
|
|
5239
5227
|
return await resolve(context, possibleRequests[0]);
|
|
5240
|
-
} catch
|
|
5228
|
+
} catch {
|
|
5241
5229
|
const [, ...tailResult] = possibleRequests;
|
|
5242
5230
|
if (tailResult.length === 0) {
|
|
5243
5231
|
const [, ...tailResolutionMap] = resolutionMap;
|
|
@@ -5316,7 +5304,7 @@
|
|
|
5316
5304
|
}),
|
|
5317
5305
|
);
|
|
5318
5306
|
return (context, request, fromImport) => {
|
|
5319
|
-
if (!isModernSass && !
|
|
5307
|
+
if (!isModernSass && !_nodePath.default.isAbsolute(context)) {
|
|
5320
5308
|
return Promise.reject();
|
|
5321
5309
|
}
|
|
5322
5310
|
const originalRequest = request;
|
|
@@ -5324,8 +5312,8 @@
|
|
|
5324
5312
|
originalRequest.slice(0, 5).toLowerCase() === "file:";
|
|
5325
5313
|
if (isFileScheme) {
|
|
5326
5314
|
try {
|
|
5327
|
-
request =
|
|
5328
|
-
} catch
|
|
5315
|
+
request = _nodeUrl.default.fileURLToPath(originalRequest);
|
|
5316
|
+
} catch {
|
|
5329
5317
|
request = request.slice(7);
|
|
5330
5318
|
}
|
|
5331
5319
|
}
|
|
@@ -5343,30 +5331,37 @@
|
|
|
5343
5331
|
fromImport,
|
|
5344
5332
|
);
|
|
5345
5333
|
if (!isModernSass) {
|
|
5346
|
-
resolutionMap =
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5334
|
+
resolutionMap = [
|
|
5335
|
+
...resolutionMap,
|
|
5336
|
+
{
|
|
5337
|
+
resolve: fromImport ? sassImportResolve : sassModuleResolve,
|
|
5338
|
+
context: _nodePath.default.dirname(context),
|
|
5339
|
+
possibleRequests: sassPossibleRequests,
|
|
5340
|
+
},
|
|
5341
|
+
];
|
|
5351
5342
|
}
|
|
5352
|
-
resolutionMap =
|
|
5353
|
-
|
|
5343
|
+
resolutionMap = [
|
|
5344
|
+
...resolutionMap,
|
|
5345
|
+
...includePaths.map((context) => ({
|
|
5354
5346
|
resolve: fromImport ? sassImportResolve : sassModuleResolve,
|
|
5355
5347
|
context,
|
|
5356
5348
|
possibleRequests: sassPossibleRequests,
|
|
5357
5349
|
})),
|
|
5358
|
-
|
|
5350
|
+
];
|
|
5359
5351
|
}
|
|
5360
5352
|
const webpackPossibleRequests = getPossibleRequests(
|
|
5361
5353
|
request,
|
|
5362
5354
|
true,
|
|
5363
5355
|
fromImport,
|
|
5364
5356
|
);
|
|
5365
|
-
resolutionMap =
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5357
|
+
resolutionMap = [
|
|
5358
|
+
...resolutionMap,
|
|
5359
|
+
{
|
|
5360
|
+
resolve: fromImport ? webpackImportResolve : webpackModuleResolve,
|
|
5361
|
+
context: _nodePath.default.dirname(context),
|
|
5362
|
+
possibleRequests: webpackPossibleRequests,
|
|
5363
|
+
},
|
|
5364
|
+
];
|
|
5370
5365
|
return startResolving(resolutionMap);
|
|
5371
5366
|
};
|
|
5372
5367
|
}
|
|
@@ -5385,19 +5380,19 @@
|
|
|
5385
5380
|
async canonicalize(originalUrl, context) {
|
|
5386
5381
|
const { fromImport } = context;
|
|
5387
5382
|
const prev = context.containingUrl
|
|
5388
|
-
?
|
|
5383
|
+
? _nodeUrl.default.fileURLToPath(context.containingUrl.toString())
|
|
5389
5384
|
: loaderContext.resourcePath;
|
|
5390
5385
|
let result;
|
|
5391
5386
|
try {
|
|
5392
5387
|
result = await resolve(prev, originalUrl, fromImport);
|
|
5393
|
-
} catch
|
|
5388
|
+
} catch {
|
|
5394
5389
|
return null;
|
|
5395
5390
|
}
|
|
5396
|
-
loaderContext.addDependency(
|
|
5397
|
-
return
|
|
5391
|
+
loaderContext.addDependency(_nodePath.default.normalize(result));
|
|
5392
|
+
return _nodeUrl.default.pathToFileURL(result);
|
|
5398
5393
|
},
|
|
5399
5394
|
async load(canonicalUrl) {
|
|
5400
|
-
const ext =
|
|
5395
|
+
const ext = _nodePath.default.extname(canonicalUrl.pathname);
|
|
5401
5396
|
let syntax;
|
|
5402
5397
|
if (ext && ext.toLowerCase() === ".scss") {
|
|
5403
5398
|
syntax = "scss";
|
|
@@ -5410,21 +5405,18 @@
|
|
|
5410
5405
|
}
|
|
5411
5406
|
try {
|
|
5412
5407
|
const contents = await new Promise((resolve, reject) => {
|
|
5413
|
-
const canonicalPath =
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
resolve(content);
|
|
5423
|
-
},
|
|
5424
|
-
);
|
|
5408
|
+
const canonicalPath =
|
|
5409
|
+
_nodeUrl.default.fileURLToPath(canonicalUrl);
|
|
5410
|
+
loaderContext.fs.readFile(canonicalPath, (err, content) => {
|
|
5411
|
+
if (err) {
|
|
5412
|
+
reject(err);
|
|
5413
|
+
return;
|
|
5414
|
+
}
|
|
5415
|
+
resolve(content.toString("utf8"));
|
|
5416
|
+
});
|
|
5425
5417
|
});
|
|
5426
5418
|
return { contents, syntax, sourceMapUrl: canonicalUrl };
|
|
5427
|
-
} catch
|
|
5419
|
+
} catch {
|
|
5428
5420
|
return null;
|
|
5429
5421
|
}
|
|
5430
5422
|
},
|
|
@@ -5444,7 +5436,7 @@
|
|
|
5444
5436
|
typeof fromImport === "undefined" ? true : fromImport,
|
|
5445
5437
|
)
|
|
5446
5438
|
.then((result) => {
|
|
5447
|
-
loaderContext.addDependency(
|
|
5439
|
+
loaderContext.addDependency(_nodePath.default.normalize(result));
|
|
5448
5440
|
done({ file: result.replace(MATCH_CSS, "") });
|
|
5449
5441
|
})
|
|
5450
5442
|
.catch(() => {
|
|
@@ -5501,7 +5493,7 @@
|
|
|
5501
5493
|
}
|
|
5502
5494
|
if (nodeSassJobQueue === null) {
|
|
5503
5495
|
const threadPoolSize = Number(process.env.UV_THREADPOOL_SIZE || 4);
|
|
5504
|
-
const async = __nccwpck_require__(
|
|
5496
|
+
const async = __nccwpck_require__(675);
|
|
5505
5497
|
nodeSassJobQueue = async.queue(
|
|
5506
5498
|
implementation.render.bind(implementation),
|
|
5507
5499
|
threadPoolSize - 1,
|
|
@@ -5543,11 +5535,11 @@
|
|
|
5543
5535
|
newMap.sources = newMap.sources.map((source) => {
|
|
5544
5536
|
const sourceType = getURLType(source);
|
|
5545
5537
|
if (sourceType === "absolute" && /^file:/i.test(source)) {
|
|
5546
|
-
return
|
|
5538
|
+
return _nodeUrl.default.fileURLToPath(source);
|
|
5547
5539
|
} else if (sourceType === "path-relative") {
|
|
5548
|
-
return
|
|
5540
|
+
return _nodePath.default.resolve(
|
|
5549
5541
|
rootContext,
|
|
5550
|
-
|
|
5542
|
+
_nodePath.default.normalize(source),
|
|
5551
5543
|
);
|
|
5552
5544
|
}
|
|
5553
5545
|
return source;
|
|
@@ -5555,37 +5547,31 @@
|
|
|
5555
5547
|
return newMap;
|
|
5556
5548
|
}
|
|
5557
5549
|
function errorFactory(error) {
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
message
|
|
5561
|
-
} else {
|
|
5562
|
-
message = (error.message || error.toString()).replace(
|
|
5563
|
-
/^(.+)?Error: /,
|
|
5564
|
-
"",
|
|
5565
|
-
);
|
|
5566
|
-
}
|
|
5550
|
+
const message = error.formatted
|
|
5551
|
+
? error.formatted.replace(/^(.+)?Error: /, "")
|
|
5552
|
+
: (error.message || error.toString()).replace(/^(.+)?Error: /, "");
|
|
5567
5553
|
const obj = new Error(message, { cause: error });
|
|
5568
5554
|
obj.name = error.name;
|
|
5569
5555
|
obj.stack = null;
|
|
5570
5556
|
return obj;
|
|
5571
5557
|
}
|
|
5572
5558
|
},
|
|
5573
|
-
|
|
5559
|
+
760: (module) => {
|
|
5574
5560
|
"use strict";
|
|
5575
|
-
module.exports = require("path");
|
|
5561
|
+
module.exports = require("node:path");
|
|
5576
5562
|
},
|
|
5577
|
-
|
|
5563
|
+
136: (module) => {
|
|
5578
5564
|
"use strict";
|
|
5579
|
-
module.exports = require("
|
|
5565
|
+
module.exports = require("node:url");
|
|
5580
5566
|
},
|
|
5581
|
-
|
|
5567
|
+
881: (module) => {
|
|
5582
5568
|
"use strict";
|
|
5583
|
-
module.exports = require("
|
|
5569
|
+
module.exports = require("sass");
|
|
5584
5570
|
},
|
|
5585
|
-
|
|
5571
|
+
51: (module) => {
|
|
5586
5572
|
"use strict";
|
|
5587
5573
|
module.exports = JSON.parse(
|
|
5588
|
-
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack
|
|
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}',
|
|
5589
5575
|
);
|
|
5590
5576
|
},
|
|
5591
5577
|
};
|
|
@@ -5612,6 +5598,6 @@
|
|
|
5612
5598
|
}
|
|
5613
5599
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5614
5600
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5615
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5601
|
+
var __webpack_exports__ = __nccwpck_require__(699);
|
|
5616
5602
|
module.exports = __webpack_exports__;
|
|
5617
5603
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sass-loader","author":"J. Tangelder","version":"16.0.
|
|
1
|
+
{"name":"sass-loader","author":"J. Tangelder","version":"16.0.6","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|