@rsbuild/core 1.1.9 → 1.1.11
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/cors/index.d.ts +1 -0
- package/compiled/cors/index.js +371 -0
- package/compiled/cors/license +22 -0
- package/compiled/cors/package.json +1 -0
- package/compiled/css-loader/index.js +20 -20
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/client/hmr.js +3 -35
- package/dist/client/overlay.js +0 -3
- package/dist/index.cjs +82 -49
- package/dist/index.js +70 -41
- package/dist/transformLoader.mjs +3 -2
- package/dist/transformRawLoader.mjs +3 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/provider/helpers.d.ts +1 -1
- package/dist-types/server/cliShortcuts.d.ts +1 -1
- package/dist-types/server/devMiddleware.d.ts +1 -1
- package/dist-types/types/config.d.ts +17 -4
- package/dist-types/types/context.d.ts +8 -0
- package/dist-types/types/plugin.d.ts +5 -1
- package/dist-types/types/rsbuild.d.ts +11 -4
- package/package.json +5 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = any;
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
46: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
|
+
(function () {
|
|
5
|
+
"use strict";
|
|
6
|
+
var assign = __nccwpck_require__(715);
|
|
7
|
+
var vary = __nccwpck_require__(443);
|
|
8
|
+
var defaults = {
|
|
9
|
+
origin: "*",
|
|
10
|
+
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
|
|
11
|
+
preflightContinue: false,
|
|
12
|
+
optionsSuccessStatus: 204,
|
|
13
|
+
};
|
|
14
|
+
function isString(s) {
|
|
15
|
+
return typeof s === "string" || s instanceof String;
|
|
16
|
+
}
|
|
17
|
+
function isOriginAllowed(origin, allowedOrigin) {
|
|
18
|
+
if (Array.isArray(allowedOrigin)) {
|
|
19
|
+
for (var i = 0; i < allowedOrigin.length; ++i) {
|
|
20
|
+
if (isOriginAllowed(origin, allowedOrigin[i])) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return false;
|
|
25
|
+
} else if (isString(allowedOrigin)) {
|
|
26
|
+
return origin === allowedOrigin;
|
|
27
|
+
} else if (allowedOrigin instanceof RegExp) {
|
|
28
|
+
return allowedOrigin.test(origin);
|
|
29
|
+
} else {
|
|
30
|
+
return !!allowedOrigin;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function configureOrigin(options, req) {
|
|
34
|
+
var requestOrigin = req.headers.origin,
|
|
35
|
+
headers = [],
|
|
36
|
+
isAllowed;
|
|
37
|
+
if (!options.origin || options.origin === "*") {
|
|
38
|
+
headers.push([{ key: "Access-Control-Allow-Origin", value: "*" }]);
|
|
39
|
+
} else if (isString(options.origin)) {
|
|
40
|
+
headers.push([
|
|
41
|
+
{ key: "Access-Control-Allow-Origin", value: options.origin },
|
|
42
|
+
]);
|
|
43
|
+
headers.push([{ key: "Vary", value: "Origin" }]);
|
|
44
|
+
} else {
|
|
45
|
+
isAllowed = isOriginAllowed(requestOrigin, options.origin);
|
|
46
|
+
headers.push([
|
|
47
|
+
{
|
|
48
|
+
key: "Access-Control-Allow-Origin",
|
|
49
|
+
value: isAllowed ? requestOrigin : false,
|
|
50
|
+
},
|
|
51
|
+
]);
|
|
52
|
+
headers.push([{ key: "Vary", value: "Origin" }]);
|
|
53
|
+
}
|
|
54
|
+
return headers;
|
|
55
|
+
}
|
|
56
|
+
function configureMethods(options) {
|
|
57
|
+
var methods = options.methods;
|
|
58
|
+
if (methods.join) {
|
|
59
|
+
methods = options.methods.join(",");
|
|
60
|
+
}
|
|
61
|
+
return { key: "Access-Control-Allow-Methods", value: methods };
|
|
62
|
+
}
|
|
63
|
+
function configureCredentials(options) {
|
|
64
|
+
if (options.credentials === true) {
|
|
65
|
+
return { key: "Access-Control-Allow-Credentials", value: "true" };
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
function configureAllowedHeaders(options, req) {
|
|
70
|
+
var allowedHeaders = options.allowedHeaders || options.headers;
|
|
71
|
+
var headers = [];
|
|
72
|
+
if (!allowedHeaders) {
|
|
73
|
+
allowedHeaders = req.headers["access-control-request-headers"];
|
|
74
|
+
headers.push([
|
|
75
|
+
{ key: "Vary", value: "Access-Control-Request-Headers" },
|
|
76
|
+
]);
|
|
77
|
+
} else if (allowedHeaders.join) {
|
|
78
|
+
allowedHeaders = allowedHeaders.join(",");
|
|
79
|
+
}
|
|
80
|
+
if (allowedHeaders && allowedHeaders.length) {
|
|
81
|
+
headers.push([
|
|
82
|
+
{ key: "Access-Control-Allow-Headers", value: allowedHeaders },
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
return headers;
|
|
86
|
+
}
|
|
87
|
+
function configureExposedHeaders(options) {
|
|
88
|
+
var headers = options.exposedHeaders;
|
|
89
|
+
if (!headers) {
|
|
90
|
+
return null;
|
|
91
|
+
} else if (headers.join) {
|
|
92
|
+
headers = headers.join(",");
|
|
93
|
+
}
|
|
94
|
+
if (headers && headers.length) {
|
|
95
|
+
return { key: "Access-Control-Expose-Headers", value: headers };
|
|
96
|
+
}
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
function configureMaxAge(options) {
|
|
100
|
+
var maxAge =
|
|
101
|
+
(typeof options.maxAge === "number" || options.maxAge) &&
|
|
102
|
+
options.maxAge.toString();
|
|
103
|
+
if (maxAge && maxAge.length) {
|
|
104
|
+
return { key: "Access-Control-Max-Age", value: maxAge };
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
function applyHeaders(headers, res) {
|
|
109
|
+
for (var i = 0, n = headers.length; i < n; i++) {
|
|
110
|
+
var header = headers[i];
|
|
111
|
+
if (header) {
|
|
112
|
+
if (Array.isArray(header)) {
|
|
113
|
+
applyHeaders(header, res);
|
|
114
|
+
} else if (header.key === "Vary" && header.value) {
|
|
115
|
+
vary(res, header.value);
|
|
116
|
+
} else if (header.value) {
|
|
117
|
+
res.setHeader(header.key, header.value);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function cors(options, req, res, next) {
|
|
123
|
+
var headers = [],
|
|
124
|
+
method =
|
|
125
|
+
req.method && req.method.toUpperCase && req.method.toUpperCase();
|
|
126
|
+
if (method === "OPTIONS") {
|
|
127
|
+
headers.push(configureOrigin(options, req));
|
|
128
|
+
headers.push(configureCredentials(options, req));
|
|
129
|
+
headers.push(configureMethods(options, req));
|
|
130
|
+
headers.push(configureAllowedHeaders(options, req));
|
|
131
|
+
headers.push(configureMaxAge(options, req));
|
|
132
|
+
headers.push(configureExposedHeaders(options, req));
|
|
133
|
+
applyHeaders(headers, res);
|
|
134
|
+
if (options.preflightContinue) {
|
|
135
|
+
next();
|
|
136
|
+
} else {
|
|
137
|
+
res.statusCode = options.optionsSuccessStatus;
|
|
138
|
+
res.setHeader("Content-Length", "0");
|
|
139
|
+
res.end();
|
|
140
|
+
}
|
|
141
|
+
} else {
|
|
142
|
+
headers.push(configureOrigin(options, req));
|
|
143
|
+
headers.push(configureCredentials(options, req));
|
|
144
|
+
headers.push(configureExposedHeaders(options, req));
|
|
145
|
+
applyHeaders(headers, res);
|
|
146
|
+
next();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function middlewareWrapper(o) {
|
|
150
|
+
var optionsCallback = null;
|
|
151
|
+
if (typeof o === "function") {
|
|
152
|
+
optionsCallback = o;
|
|
153
|
+
} else {
|
|
154
|
+
optionsCallback = function (req, cb) {
|
|
155
|
+
cb(null, o);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
return function corsMiddleware(req, res, next) {
|
|
159
|
+
optionsCallback(req, function (err, options) {
|
|
160
|
+
if (err) {
|
|
161
|
+
next(err);
|
|
162
|
+
} else {
|
|
163
|
+
var corsOptions = assign({}, defaults, options);
|
|
164
|
+
var originCallback = null;
|
|
165
|
+
if (
|
|
166
|
+
corsOptions.origin &&
|
|
167
|
+
typeof corsOptions.origin === "function"
|
|
168
|
+
) {
|
|
169
|
+
originCallback = corsOptions.origin;
|
|
170
|
+
} else if (corsOptions.origin) {
|
|
171
|
+
originCallback = function (origin, cb) {
|
|
172
|
+
cb(null, corsOptions.origin);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
if (originCallback) {
|
|
176
|
+
originCallback(req.headers.origin, function (err2, origin) {
|
|
177
|
+
if (err2 || !origin) {
|
|
178
|
+
next(err2);
|
|
179
|
+
} else {
|
|
180
|
+
corsOptions.origin = origin;
|
|
181
|
+
cors(corsOptions, req, res, next);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
} else {
|
|
185
|
+
next();
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
module.exports = middlewareWrapper;
|
|
192
|
+
})();
|
|
193
|
+
},
|
|
194
|
+
715: (module) => {
|
|
195
|
+
"use strict";
|
|
196
|
+
/*
|
|
197
|
+
object-assign
|
|
198
|
+
(c) Sindre Sorhus
|
|
199
|
+
@license MIT
|
|
200
|
+
*/ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
201
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
202
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
203
|
+
function toObject(val) {
|
|
204
|
+
if (val === null || val === undefined) {
|
|
205
|
+
throw new TypeError(
|
|
206
|
+
"Object.assign cannot be called with null or undefined",
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
return Object(val);
|
|
210
|
+
}
|
|
211
|
+
function shouldUseNative() {
|
|
212
|
+
try {
|
|
213
|
+
if (!Object.assign) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
var test1 = new String("abc");
|
|
217
|
+
test1[5] = "de";
|
|
218
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
var test2 = {};
|
|
222
|
+
for (var i = 0; i < 10; i++) {
|
|
223
|
+
test2["_" + String.fromCharCode(i)] = i;
|
|
224
|
+
}
|
|
225
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
226
|
+
return test2[n];
|
|
227
|
+
});
|
|
228
|
+
if (order2.join("") !== "0123456789") {
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
var test3 = {};
|
|
232
|
+
"abcdefghijklmnopqrst".split("").forEach(function (letter) {
|
|
233
|
+
test3[letter] = letter;
|
|
234
|
+
});
|
|
235
|
+
if (
|
|
236
|
+
Object.keys(Object.assign({}, test3)).join("") !==
|
|
237
|
+
"abcdefghijklmnopqrst"
|
|
238
|
+
) {
|
|
239
|
+
return false;
|
|
240
|
+
}
|
|
241
|
+
return true;
|
|
242
|
+
} catch (err) {
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
module.exports = shouldUseNative()
|
|
247
|
+
? Object.assign
|
|
248
|
+
: function (target, source) {
|
|
249
|
+
var from;
|
|
250
|
+
var to = toObject(target);
|
|
251
|
+
var symbols;
|
|
252
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
253
|
+
from = Object(arguments[s]);
|
|
254
|
+
for (var key in from) {
|
|
255
|
+
if (hasOwnProperty.call(from, key)) {
|
|
256
|
+
to[key] = from[key];
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
if (getOwnPropertySymbols) {
|
|
260
|
+
symbols = getOwnPropertySymbols(from);
|
|
261
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
262
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
263
|
+
to[symbols[i]] = from[symbols[i]];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return to;
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
443: (module) => {
|
|
272
|
+
"use strict";
|
|
273
|
+
/*!
|
|
274
|
+
* vary
|
|
275
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
276
|
+
* MIT Licensed
|
|
277
|
+
*/ module.exports = vary;
|
|
278
|
+
module.exports.append = append;
|
|
279
|
+
var FIELD_NAME_REGEXP = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
280
|
+
function append(header, field) {
|
|
281
|
+
if (typeof header !== "string") {
|
|
282
|
+
throw new TypeError("header argument is required");
|
|
283
|
+
}
|
|
284
|
+
if (!field) {
|
|
285
|
+
throw new TypeError("field argument is required");
|
|
286
|
+
}
|
|
287
|
+
var fields = !Array.isArray(field) ? parse(String(field)) : field;
|
|
288
|
+
for (var j = 0; j < fields.length; j++) {
|
|
289
|
+
if (!FIELD_NAME_REGEXP.test(fields[j])) {
|
|
290
|
+
throw new TypeError(
|
|
291
|
+
"field argument contains an invalid header name",
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (header === "*") {
|
|
296
|
+
return header;
|
|
297
|
+
}
|
|
298
|
+
var val = header;
|
|
299
|
+
var vals = parse(header.toLowerCase());
|
|
300
|
+
if (fields.indexOf("*") !== -1 || vals.indexOf("*") !== -1) {
|
|
301
|
+
return "*";
|
|
302
|
+
}
|
|
303
|
+
for (var i = 0; i < fields.length; i++) {
|
|
304
|
+
var fld = fields[i].toLowerCase();
|
|
305
|
+
if (vals.indexOf(fld) === -1) {
|
|
306
|
+
vals.push(fld);
|
|
307
|
+
val = val ? val + ", " + fields[i] : fields[i];
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return val;
|
|
311
|
+
}
|
|
312
|
+
function parse(header) {
|
|
313
|
+
var end = 0;
|
|
314
|
+
var list = [];
|
|
315
|
+
var start = 0;
|
|
316
|
+
for (var i = 0, len = header.length; i < len; i++) {
|
|
317
|
+
switch (header.charCodeAt(i)) {
|
|
318
|
+
case 32:
|
|
319
|
+
if (start === end) {
|
|
320
|
+
start = end = i + 1;
|
|
321
|
+
}
|
|
322
|
+
break;
|
|
323
|
+
case 44:
|
|
324
|
+
list.push(header.substring(start, end));
|
|
325
|
+
start = end = i + 1;
|
|
326
|
+
break;
|
|
327
|
+
default:
|
|
328
|
+
end = i + 1;
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
list.push(header.substring(start, end));
|
|
333
|
+
return list;
|
|
334
|
+
}
|
|
335
|
+
function vary(res, field) {
|
|
336
|
+
if (!res || !res.getHeader || !res.setHeader) {
|
|
337
|
+
throw new TypeError("res argument is required");
|
|
338
|
+
}
|
|
339
|
+
var val = res.getHeader("Vary") || "";
|
|
340
|
+
var header = Array.isArray(val) ? val.join(", ") : String(val);
|
|
341
|
+
if ((val = append(header, field))) {
|
|
342
|
+
res.setHeader("Vary", val);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
};
|
|
347
|
+
var __webpack_module_cache__ = {};
|
|
348
|
+
function __nccwpck_require__(moduleId) {
|
|
349
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
350
|
+
if (cachedModule !== undefined) {
|
|
351
|
+
return cachedModule.exports;
|
|
352
|
+
}
|
|
353
|
+
var module = (__webpack_module_cache__[moduleId] = { exports: {} });
|
|
354
|
+
var threw = true;
|
|
355
|
+
try {
|
|
356
|
+
__webpack_modules__[moduleId](
|
|
357
|
+
module,
|
|
358
|
+
module.exports,
|
|
359
|
+
__nccwpck_require__,
|
|
360
|
+
);
|
|
361
|
+
threw = false;
|
|
362
|
+
} finally {
|
|
363
|
+
if (threw) delete __webpack_module_cache__[moduleId];
|
|
364
|
+
}
|
|
365
|
+
return module.exports;
|
|
366
|
+
}
|
|
367
|
+
if (typeof __nccwpck_require__ !== "undefined")
|
|
368
|
+
__nccwpck_require__.ab = __dirname + "/";
|
|
369
|
+
var __webpack_exports__ = __nccwpck_require__(46);
|
|
370
|
+
module.exports = __webpack_exports__;
|
|
371
|
+
})();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2013 Troy Goode <troygoode@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"cors","author":"Troy Goode <troygoode@gmail.com> (https://github.com/troygoode/)","version":"2.8.5","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
2174: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(7268);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(8547).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
7268: (__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__(9961));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(7337));
|
|
16
16
|
var _semver = { satisfies: () => true };
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(1538));
|
|
18
|
+
var _plugins = __nccwpck_require__(5640);
|
|
19
|
+
var _utils = __nccwpck_require__(8547);
|
|
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
|
+
5640: (__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__(4017),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(7012),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(2339));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
7012: (__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__(4508);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(8547);
|
|
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
|
+
4017: (__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__(7555),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(8547);
|
|
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
|
+
2339: (__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__(7555),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(8547);
|
|
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
|
+
8547: (__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;
|
|
@@ -7968,7 +7968,7 @@
|
|
|
7968
7968
|
"use strict";
|
|
7969
7969
|
module.exports = require("util");
|
|
7970
7970
|
},
|
|
7971
|
-
|
|
7971
|
+
1538: (module) => {
|
|
7972
7972
|
"use strict";
|
|
7973
7973
|
module.exports = JSON.parse(
|
|
7974
7974
|
'{"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"}',
|
|
@@ -8003,6 +8003,6 @@
|
|
|
8003
8003
|
}
|
|
8004
8004
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8005
8005
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8006
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8006
|
+
var __webpack_exports__ = __nccwpck_require__(2174);
|
|
8007
8007
|
module.exports = __webpack_exports__;
|
|
8008
8008
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
815: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(573);
|
|
6
6
|
const compilerMap = new WeakMap();
|
|
7
7
|
class CachedChildCompilation {
|
|
8
8
|
constructor(compiler) {
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
}
|
|
305
305
|
module.exports = { CachedChildCompilation };
|
|
306
306
|
},
|
|
307
|
-
|
|
307
|
+
573: (module) => {
|
|
308
308
|
"use strict";
|
|
309
309
|
class HtmlWebpackChildCompiler {
|
|
310
310
|
constructor(templates) {
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
}
|
|
474
474
|
module.exports = { HtmlWebpackChildCompiler };
|
|
475
475
|
},
|
|
476
|
-
|
|
476
|
+
987: (module) => {
|
|
477
477
|
"use strict";
|
|
478
478
|
module.exports = {};
|
|
479
479
|
module.exports.none = (chunks) => chunks;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
};
|
|
493
493
|
module.exports.auto = module.exports.none;
|
|
494
494
|
},
|
|
495
|
-
|
|
495
|
+
866: (module) => {
|
|
496
496
|
"use strict";
|
|
497
497
|
module.exports = function (err) {
|
|
498
498
|
return {
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
},
|
|
516
|
-
|
|
516
|
+
58: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
517
517
|
"use strict";
|
|
518
518
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
|
|
519
519
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
}
|
|
540
540
|
module.exports = { getHtmlRspackPluginHooks };
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
961: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
918: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
611
611
|
"use strict";
|
|
612
612
|
const promisify = __nccwpck_require__(837).promisify;
|
|
613
613
|
const vm = __nccwpck_require__(144);
|
|
614
614
|
const fs = __nccwpck_require__(147);
|
|
615
615
|
const path = __nccwpck_require__(17);
|
|
616
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
616
|
+
const { CachedChildCompilation } = __nccwpck_require__(815);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(961);
|
|
619
|
+
const prettyError = __nccwpck_require__(866);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(987);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(58).getHtmlRspackPluginHooks;
|
|
623
623
|
class HtmlRspackPlugin {
|
|
624
624
|
constructor(userOptions = {}) {
|
|
625
625
|
this.version = HtmlRspackPlugin.version;
|
|
@@ -1578,6 +1578,6 @@
|
|
|
1578
1578
|
}
|
|
1579
1579
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1580
1580
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1581
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1581
|
+
var __webpack_exports__ = __nccwpck_require__(918);
|
|
1582
1582
|
module.exports = __webpack_exports__;
|
|
1583
1583
|
})();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
184: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(526)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
526: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = loader;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
12
12
|
var _package = _interopRequireDefault(__nccwpck_require__(337));
|
|
13
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
14
|
-
var _utils = __nccwpck_require__(
|
|
13
|
+
var _options = _interopRequireDefault(__nccwpck_require__(612));
|
|
14
|
+
var _utils = __nccwpck_require__(922);
|
|
15
15
|
function _interopRequireDefault(obj) {
|
|
16
16
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
17
17
|
}
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
callback(null, result.css, map, { ast });
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
922: (module, exports, __nccwpck_require__) => {
|
|
193
193
|
module = __nccwpck_require__.nmd(module);
|
|
194
194
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
195
195
|
exports.exec = exec;
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
310: (module) => {
|
|
692
692
|
module.exports = require("url");
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
612: (module) => {
|
|
695
695
|
module.exports = JSON.parse(
|
|
696
696
|
'{"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}',
|
|
697
697
|
);
|
|
@@ -736,6 +736,6 @@
|
|
|
736
736
|
})();
|
|
737
737
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
738
738
|
__nccwpck_require__.ab = __dirname + "/";
|
|
739
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
739
|
+
var __webpack_exports__ = __nccwpck_require__(184);
|
|
740
740
|
module.exports = __webpack_exports__;
|
|
741
741
|
})();
|