@umijs/bundler-esbuild 4.5.3 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,10 +25,8 @@ module.exports = __toCommonJS(watchRebuild_exports);
|
|
|
25
25
|
function failureErrorWithLog(text, errors, warnings) {
|
|
26
26
|
let limit = 5;
|
|
27
27
|
let summary = errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e, i) => {
|
|
28
|
-
if (i === limit)
|
|
29
|
-
|
|
30
|
-
if (!e.location)
|
|
31
|
-
return `
|
|
28
|
+
if (i === limit) return "\n...";
|
|
29
|
+
if (!e.location) return `
|
|
32
30
|
error: ${e.text}`;
|
|
33
31
|
let { file, line, column } = e.location;
|
|
34
32
|
let pluginText = e.pluginName ? `[plugin: ${e.pluginName}] ` : "";
|
|
@@ -24,14 +24,10 @@ __export(sortByAffix_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(sortByAffix_exports);
|
|
25
25
|
function sortByAffix(opts) {
|
|
26
26
|
return opts.arr.sort((a, b) => {
|
|
27
|
-
if (a.endsWith(opts.affix) && b.endsWith(opts.affix))
|
|
28
|
-
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
if (b.endsWith(opts.affix))
|
|
32
|
-
return 1;
|
|
33
|
-
else
|
|
34
|
-
return 0;
|
|
27
|
+
if (a.endsWith(opts.affix) && b.endsWith(opts.affix)) return 0;
|
|
28
|
+
if (a.endsWith(opts.affix)) return -1;
|
|
29
|
+
if (b.endsWith(opts.affix)) return 1;
|
|
30
|
+
else return 0;
|
|
35
31
|
});
|
|
36
32
|
}
|
|
37
33
|
// Annotate the CommonJS export names for ESM import in node:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-esbuild",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "@umijs/bundler-esbuild",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-esbuild#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"postcss": "^8.4.21",
|
|
23
23
|
"postcss-flexbugs-fixes": "5.0.2",
|
|
24
24
|
"postcss-preset-env": "7.5.0",
|
|
25
|
-
"@umijs/utils": "4.
|
|
26
|
-
"@umijs/
|
|
25
|
+
"@umijs/bundler-utils": "4.6.1",
|
|
26
|
+
"@umijs/utils": "4.6.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@alitajs/postcss-plugin-px2rem": "^0.0.1"
|