@rsbuild/core 0.7.0 → 0.7.2
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 +65 -45
- package/compiled/css-loader/package.json +1 -1
- package/compiled/postcss-loader/index.js +57 -50
- package/dist/client/hmr.js +2 -2
- package/dist/index.cjs +172 -84
- package/dist/index.js +152 -63
- package/dist-types/helpers.d.ts +1 -0
- package/dist-types/plugins/lazyCompilation.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 6329:
|
|
5
5
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
const loader = __nccwpck_require__(
|
|
10
|
+
const loader = __nccwpck_require__(98);
|
|
11
11
|
module.exports = loader.default;
|
|
12
|
-
module.exports.defaultGetLocalIdent = __nccwpck_require__(
|
|
12
|
+
module.exports.defaultGetLocalIdent = __nccwpck_require__(6894).defaultGetLocalIdent;
|
|
13
13
|
|
|
14
14
|
/***/ }),
|
|
15
15
|
|
|
16
|
-
/***/
|
|
16
|
+
/***/ 98:
|
|
17
17
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
18
18
|
|
|
19
19
|
"use strict";
|
|
@@ -26,9 +26,9 @@ exports["default"] = loader;
|
|
|
26
26
|
var _postcss = _interopRequireDefault(__nccwpck_require__(977));
|
|
27
27
|
var _package = _interopRequireDefault(__nccwpck_require__(5446));
|
|
28
28
|
var _semver = __nccwpck_require__(1280);
|
|
29
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
30
|
-
var _plugins = __nccwpck_require__(
|
|
31
|
-
var _utils = __nccwpck_require__(
|
|
29
|
+
var _options = _interopRequireDefault(__nccwpck_require__(5021));
|
|
30
|
+
var _plugins = __nccwpck_require__(5796);
|
|
31
|
+
var _utils = __nccwpck_require__(6894);
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
/*
|
|
34
34
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
@@ -167,20 +167,7 @@ async function loader(content, map, meta) {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
if (
|
|
172
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
173
|
-
this._compilation &&
|
|
174
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
175
|
-
this._compilation.options &&
|
|
176
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
177
|
-
this._compilation.options.output &&
|
|
178
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
179
|
-
this._compilation.options.output.environment &&
|
|
180
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
181
|
-
this._compilation.options.output.environment.templateLiteral) {
|
|
182
|
-
isTemplateLiteralSupported = true;
|
|
183
|
-
}
|
|
170
|
+
const isTemplateLiteralSupported = (0, _utils.supportTemplateLiteral)(this);
|
|
184
171
|
const importCode = (0, _utils.getImportCode)(imports, options);
|
|
185
172
|
let moduleCode;
|
|
186
173
|
try {
|
|
@@ -211,7 +198,7 @@ async function loader(content, map, meta) {
|
|
|
211
198
|
|
|
212
199
|
/***/ }),
|
|
213
200
|
|
|
214
|
-
/***/
|
|
201
|
+
/***/ 5796:
|
|
215
202
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
216
203
|
|
|
217
204
|
"use strict";
|
|
@@ -238,14 +225,14 @@ Object.defineProperty(exports, "urlParser", ({
|
|
|
238
225
|
return _postcssUrlParser.default;
|
|
239
226
|
}
|
|
240
227
|
}));
|
|
241
|
-
var _postcssImportParser = _interopRequireDefault(__nccwpck_require__(
|
|
242
|
-
var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(
|
|
243
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
228
|
+
var _postcssImportParser = _interopRequireDefault(__nccwpck_require__(9124));
|
|
229
|
+
var _postcssIcssParser = _interopRequireDefault(__nccwpck_require__(3410));
|
|
230
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(1170));
|
|
244
231
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
245
232
|
|
|
246
233
|
/***/ }),
|
|
247
234
|
|
|
248
|
-
/***/
|
|
235
|
+
/***/ 3410:
|
|
249
236
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
250
237
|
|
|
251
238
|
"use strict";
|
|
@@ -256,7 +243,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
256
243
|
}));
|
|
257
244
|
exports["default"] = void 0;
|
|
258
245
|
var _icssUtils = __nccwpck_require__(3275);
|
|
259
|
-
var _utils = __nccwpck_require__(
|
|
246
|
+
var _utils = __nccwpck_require__(6894);
|
|
260
247
|
const plugin = (options = {}) => {
|
|
261
248
|
return {
|
|
262
249
|
postcssPlugin: "postcss-icss-parser",
|
|
@@ -365,7 +352,7 @@ var _default = exports["default"] = plugin;
|
|
|
365
352
|
|
|
366
353
|
/***/ }),
|
|
367
354
|
|
|
368
|
-
/***/
|
|
355
|
+
/***/ 9124:
|
|
369
356
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
370
357
|
|
|
371
358
|
"use strict";
|
|
@@ -376,27 +363,34 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
376
363
|
}));
|
|
377
364
|
exports["default"] = void 0;
|
|
378
365
|
var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(1036));
|
|
379
|
-
var _utils = __nccwpck_require__(
|
|
366
|
+
var _utils = __nccwpck_require__(6894);
|
|
380
367
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
381
|
-
function
|
|
382
|
-
// Convert only top-level @import
|
|
383
|
-
if (atRule.parent.type !== "root") {
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
368
|
+
function isIgnoredAfterName(atRule) {
|
|
386
369
|
if (atRule.raws && atRule.raws.afterName && atRule.raws.afterName.trim().length > 0) {
|
|
387
370
|
const lastCommentIndex = atRule.raws.afterName.lastIndexOf("/*");
|
|
388
371
|
const matched = atRule.raws.afterName.slice(lastCommentIndex).match(_utils.WEBPACK_IGNORE_COMMENT_REGEXP);
|
|
389
372
|
if (matched && matched[2] === "true") {
|
|
390
|
-
return;
|
|
373
|
+
return true;
|
|
391
374
|
}
|
|
392
375
|
}
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
function isIgnoredPrevNode(atRule) {
|
|
393
379
|
const prevNode = atRule.prev();
|
|
394
380
|
if (prevNode && prevNode.type === "comment") {
|
|
395
381
|
const matched = prevNode.text.match(_utils.WEBPACK_IGNORE_COMMENT_REGEXP);
|
|
396
382
|
if (matched && matched[2] === "true") {
|
|
397
|
-
return;
|
|
383
|
+
return true;
|
|
398
384
|
}
|
|
399
385
|
}
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
function parseNode(atRule, key, options) {
|
|
389
|
+
// Convert only top-level @import
|
|
390
|
+
if (atRule.parent.type !== "root") {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
const isIgnored = isIgnoredAfterName(atRule) || isIgnoredPrevNode(atRule);
|
|
400
394
|
|
|
401
395
|
// Nodes do not exists - `@import url('http://') :root {}`
|
|
402
396
|
if (atRule.nodes) {
|
|
@@ -432,10 +426,14 @@ function parseNode(atRule, key, options) {
|
|
|
432
426
|
url = isStringValue ? paramsNodes[0].nodes[0].value : _postcssValueParser.default.stringify(paramsNodes[0].nodes);
|
|
433
427
|
}
|
|
434
428
|
url = (0, _utils.normalizeUrl)(url, isStringValue);
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
429
|
+
let requestable = false;
|
|
430
|
+
let needResolve = false;
|
|
431
|
+
if (!isIgnored) {
|
|
432
|
+
({
|
|
433
|
+
requestable,
|
|
434
|
+
needResolve
|
|
435
|
+
} = (0, _utils.isURLRequestable)(url, options));
|
|
436
|
+
}
|
|
439
437
|
let prefix;
|
|
440
438
|
if (requestable && needResolve) {
|
|
441
439
|
const queryParts = url.split("!");
|
|
@@ -654,7 +652,7 @@ var _default = exports["default"] = plugin;
|
|
|
654
652
|
|
|
655
653
|
/***/ }),
|
|
656
654
|
|
|
657
|
-
/***/
|
|
655
|
+
/***/ 1170:
|
|
658
656
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
659
657
|
|
|
660
658
|
"use strict";
|
|
@@ -665,7 +663,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
665
663
|
}));
|
|
666
664
|
exports["default"] = void 0;
|
|
667
665
|
var _postcssValueParser = _interopRequireDefault(__nccwpck_require__(1036));
|
|
668
|
-
var _utils = __nccwpck_require__(
|
|
666
|
+
var _utils = __nccwpck_require__(6894);
|
|
669
667
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
670
668
|
const isUrlFunc = /url/i;
|
|
671
669
|
const isImageSetFunc = /^(?:-webkit-)?image-set$/i;
|
|
@@ -1017,7 +1015,7 @@ var _default = exports["default"] = plugin;
|
|
|
1017
1015
|
|
|
1018
1016
|
/***/ }),
|
|
1019
1017
|
|
|
1020
|
-
/***/
|
|
1018
|
+
/***/ 6894:
|
|
1021
1019
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1022
1020
|
|
|
1023
1021
|
"use strict";
|
|
@@ -1050,6 +1048,7 @@ exports.shouldUseModulesPlugins = shouldUseModulesPlugins;
|
|
|
1050
1048
|
exports.shouldUseURLPlugin = shouldUseURLPlugin;
|
|
1051
1049
|
exports.sort = sort;
|
|
1052
1050
|
exports.stringifyRequest = stringifyRequest;
|
|
1051
|
+
exports.supportTemplateLiteral = supportTemplateLiteral;
|
|
1053
1052
|
exports.syntaxErrorFactory = syntaxErrorFactory;
|
|
1054
1053
|
exports.warningFactory = warningFactory;
|
|
1055
1054
|
var _url = __nccwpck_require__(7310);
|
|
@@ -2057,6 +2056,27 @@ function syntaxErrorFactory(error) {
|
|
|
2057
2056
|
obj.stack = null;
|
|
2058
2057
|
return obj;
|
|
2059
2058
|
}
|
|
2059
|
+
function supportTemplateLiteral(loaderContext) {
|
|
2060
|
+
if (loaderContext.environment && loaderContext.environment.templateLiteral) {
|
|
2061
|
+
return true;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
// TODO remove in the next major release
|
|
2065
|
+
if (
|
|
2066
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
2067
|
+
loaderContext._compilation &&
|
|
2068
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
2069
|
+
loaderContext._compilation.options &&
|
|
2070
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
2071
|
+
loaderContext._compilation.options.output &&
|
|
2072
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
2073
|
+
loaderContext._compilation.options.output.environment &&
|
|
2074
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
2075
|
+
loaderContext._compilation.options.output.environment.templateLiteral) {
|
|
2076
|
+
return true;
|
|
2077
|
+
}
|
|
2078
|
+
return false;
|
|
2079
|
+
}
|
|
2060
2080
|
|
|
2061
2081
|
/***/ }),
|
|
2062
2082
|
|
|
@@ -7298,7 +7318,7 @@ module.exports = require("util");
|
|
|
7298
7318
|
|
|
7299
7319
|
/***/ }),
|
|
7300
7320
|
|
|
7301
|
-
/***/
|
|
7321
|
+
/***/ 5021:
|
|
7302
7322
|
/***/ ((module) => {
|
|
7303
7323
|
|
|
7304
7324
|
"use strict";
|
|
@@ -7356,7 +7376,7 @@ module.exports = JSON.parse('{"name":"postcss","version":"8.4.38","description":
|
|
|
7356
7376
|
/******/ // startup
|
|
7357
7377
|
/******/ // Load entry module and return exports
|
|
7358
7378
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
7359
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
|
7379
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(6329);
|
|
7360
7380
|
/******/ module.exports = __webpack_exports__;
|
|
7361
7381
|
/******/
|
|
7362
7382
|
/******/ })()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"css-loader","author":"Tobias Koppers @sokra","version":"7.1.
|
|
1
|
+
{"name":"css-loader","author":"Tobias Koppers @sokra","version":"7.1.2","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -7637,18 +7637,18 @@ module.exports = parseJson;
|
|
|
7637
7637
|
|
|
7638
7638
|
/***/ }),
|
|
7639
7639
|
|
|
7640
|
-
/***/
|
|
7640
|
+
/***/ 701:
|
|
7641
7641
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
7642
7642
|
|
|
7643
|
-
let
|
|
7644
|
-
|
|
7643
|
+
let argv = process.argv || [],
|
|
7644
|
+
env = process.env
|
|
7645
7645
|
let isColorSupported =
|
|
7646
|
-
!("NO_COLOR" in
|
|
7647
|
-
("FORCE_COLOR" in
|
|
7648
|
-
|
|
7646
|
+
!("NO_COLOR" in env || argv.includes("--no-color")) &&
|
|
7647
|
+
("FORCE_COLOR" in env ||
|
|
7648
|
+
argv.includes("--color") ||
|
|
7649
7649
|
process.platform === "win32" ||
|
|
7650
|
-
(
|
|
7651
|
-
"CI" in
|
|
7650
|
+
(require != null && (__nccwpck_require__(6224).isatty)(1) && env.TERM !== "dumb") ||
|
|
7651
|
+
"CI" in env)
|
|
7652
7652
|
|
|
7653
7653
|
let formatter =
|
|
7654
7654
|
(open, close, replace = open) =>
|
|
@@ -7661,40 +7661,47 @@ let formatter =
|
|
|
7661
7661
|
}
|
|
7662
7662
|
|
|
7663
7663
|
let replaceClose = (string, close, replace, index) => {
|
|
7664
|
-
let
|
|
7665
|
-
let
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7664
|
+
let result = ""
|
|
7665
|
+
let cursor = 0
|
|
7666
|
+
do {
|
|
7667
|
+
result += string.substring(cursor, index) + replace
|
|
7668
|
+
cursor = index + close.length
|
|
7669
|
+
index = string.indexOf(close, cursor)
|
|
7670
|
+
} while (~index)
|
|
7671
|
+
return result + string.substring(cursor)
|
|
7672
|
+
}
|
|
7673
|
+
|
|
7674
|
+
let createColors = (enabled = isColorSupported) => {
|
|
7675
|
+
let init = enabled ? formatter : () => String
|
|
7676
|
+
return {
|
|
7677
|
+
isColorSupported: enabled,
|
|
7678
|
+
reset: init("\x1b[0m", "\x1b[0m"),
|
|
7679
|
+
bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
|
|
7680
|
+
dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
|
|
7681
|
+
italic: init("\x1b[3m", "\x1b[23m"),
|
|
7682
|
+
underline: init("\x1b[4m", "\x1b[24m"),
|
|
7683
|
+
inverse: init("\x1b[7m", "\x1b[27m"),
|
|
7684
|
+
hidden: init("\x1b[8m", "\x1b[28m"),
|
|
7685
|
+
strikethrough: init("\x1b[9m", "\x1b[29m"),
|
|
7686
|
+
black: init("\x1b[30m", "\x1b[39m"),
|
|
7687
|
+
red: init("\x1b[31m", "\x1b[39m"),
|
|
7688
|
+
green: init("\x1b[32m", "\x1b[39m"),
|
|
7689
|
+
yellow: init("\x1b[33m", "\x1b[39m"),
|
|
7690
|
+
blue: init("\x1b[34m", "\x1b[39m"),
|
|
7691
|
+
magenta: init("\x1b[35m", "\x1b[39m"),
|
|
7692
|
+
cyan: init("\x1b[36m", "\x1b[39m"),
|
|
7693
|
+
white: init("\x1b[37m", "\x1b[39m"),
|
|
7694
|
+
gray: init("\x1b[90m", "\x1b[39m"),
|
|
7695
|
+
bgBlack: init("\x1b[40m", "\x1b[49m"),
|
|
7696
|
+
bgRed: init("\x1b[41m", "\x1b[49m"),
|
|
7697
|
+
bgGreen: init("\x1b[42m", "\x1b[49m"),
|
|
7698
|
+
bgYellow: init("\x1b[43m", "\x1b[49m"),
|
|
7699
|
+
bgBlue: init("\x1b[44m", "\x1b[49m"),
|
|
7700
|
+
bgMagenta: init("\x1b[45m", "\x1b[49m"),
|
|
7701
|
+
bgCyan: init("\x1b[46m", "\x1b[49m"),
|
|
7702
|
+
bgWhite: init("\x1b[47m", "\x1b[49m"),
|
|
7703
|
+
}
|
|
7704
|
+
}
|
|
7698
7705
|
|
|
7699
7706
|
module.exports = createColors()
|
|
7700
7707
|
module.exports.createColors = createColors
|
|
@@ -8678,7 +8685,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
8678
8685
|
exports.codeFrameColumns = codeFrameColumns;
|
|
8679
8686
|
exports["default"] = _default;
|
|
8680
8687
|
var _highlight = __nccwpck_require__(8635);
|
|
8681
|
-
var _picocolors = _interopRequireWildcard(__nccwpck_require__(
|
|
8688
|
+
var _picocolors = _interopRequireWildcard(__nccwpck_require__(701), true);
|
|
8682
8689
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
8683
8690
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
8684
8691
|
const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
@@ -8830,7 +8837,7 @@ function _default(rawLines, lineNumber, colNumber, opts = {}) {
|
|
|
8830
8837
|
|
|
8831
8838
|
/***/ }),
|
|
8832
8839
|
|
|
8833
|
-
/***/
|
|
8840
|
+
/***/ 7235:
|
|
8834
8841
|
/***/ ((__unused_webpack_module, exports) => {
|
|
8835
8842
|
|
|
8836
8843
|
"use strict";
|
|
@@ -8908,7 +8915,7 @@ function isIdentifierName(name) {
|
|
|
8908
8915
|
|
|
8909
8916
|
/***/ }),
|
|
8910
8917
|
|
|
8911
|
-
/***/
|
|
8918
|
+
/***/ 9130:
|
|
8912
8919
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8913
8920
|
|
|
8914
8921
|
"use strict";
|
|
@@ -8965,15 +8972,15 @@ Object.defineProperty(exports, "isStrictReservedWord", ({
|
|
|
8965
8972
|
return _keyword.isStrictReservedWord;
|
|
8966
8973
|
}
|
|
8967
8974
|
}));
|
|
8968
|
-
var _identifier = __nccwpck_require__(
|
|
8969
|
-
var _keyword = __nccwpck_require__(
|
|
8975
|
+
var _identifier = __nccwpck_require__(7235);
|
|
8976
|
+
var _keyword = __nccwpck_require__(8101);
|
|
8970
8977
|
|
|
8971
8978
|
//# sourceMappingURL=index.js.map
|
|
8972
8979
|
|
|
8973
8980
|
|
|
8974
8981
|
/***/ }),
|
|
8975
8982
|
|
|
8976
|
-
/***/
|
|
8983
|
+
/***/ 8101:
|
|
8977
8984
|
/***/ ((__unused_webpack_module, exports) => {
|
|
8978
8985
|
|
|
8979
8986
|
"use strict";
|
|
@@ -9028,8 +9035,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
9028
9035
|
exports["default"] = highlight;
|
|
9029
9036
|
exports.shouldHighlight = shouldHighlight;
|
|
9030
9037
|
var _jsTokens = __nccwpck_require__(1192);
|
|
9031
|
-
var _helperValidatorIdentifier = __nccwpck_require__(
|
|
9032
|
-
var _picocolors = _interopRequireWildcard(__nccwpck_require__(
|
|
9038
|
+
var _helperValidatorIdentifier = __nccwpck_require__(9130);
|
|
9039
|
+
var _picocolors = _interopRequireWildcard(__nccwpck_require__(701), true);
|
|
9033
9040
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9034
9041
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9035
9042
|
const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
package/dist/client/hmr.js
CHANGED
|
@@ -11,8 +11,8 @@ function resolveFileName(stats) {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
return `File: ${stats.moduleName}
|
|
15
|
-
|
|
14
|
+
return stats.moduleName ? `File: ${stats.moduleName}
|
|
15
|
+
` : "";
|
|
16
16
|
}
|
|
17
17
|
function hintUnknownFiles(message) {
|
|
18
18
|
const hint = "You may need an appropriate loader to handle this file type.";
|