@umijs/bundler-webpack 4.0.63 → 4.0.64
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.
|
@@ -57,6 +57,7 @@ var EsbuildMinifyFix = class {
|
|
|
57
57
|
});
|
|
58
58
|
const assetsForMinify = await Promise.all(
|
|
59
59
|
Object.keys(assets).filter((name) => {
|
|
60
|
+
var _a;
|
|
60
61
|
if (!matchObject(name)) {
|
|
61
62
|
return false;
|
|
62
63
|
}
|
|
@@ -70,6 +71,9 @@ var EsbuildMinifyFix = class {
|
|
|
70
71
|
if (name.endsWith(".worker.js")) {
|
|
71
72
|
return false;
|
|
72
73
|
}
|
|
74
|
+
if ((_a = info == null ? void 0 : info.related) == null ? void 0 : _a.sourceMap) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
73
77
|
return true;
|
|
74
78
|
}).map(async (name) => {
|
|
75
79
|
const { info, source } = compilation.getAsset(name);
|
package/dist/server/ws.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ import { Server as HttpsServer } from 'https';
|
|
|
8
8
|
import WebSocket from '../../compiled/ws';
|
|
9
9
|
export declare function createWebSocketServer(server: HttpServer | HttpsServer | Http2Server | Server): {
|
|
10
10
|
send(message: string): void;
|
|
11
|
-
wss: WebSocket.Server
|
|
11
|
+
wss: WebSocket.Server;
|
|
12
12
|
close(): void;
|
|
13
13
|
};
|
package/dist/utils/depMatch.js
CHANGED
|
@@ -26,6 +26,7 @@ __export(depMatch_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(depMatch_exports);
|
|
27
27
|
var import_utils = require("@umijs/utils");
|
|
28
28
|
var import_path = require("path");
|
|
29
|
+
var import_pkgUpContainsName = require("./pkgUpContainsName");
|
|
29
30
|
var cache = /* @__PURE__ */ new Map();
|
|
30
31
|
function cleanCache() {
|
|
31
32
|
cache.clear();
|
|
@@ -35,7 +36,7 @@ function isMatch(opts) {
|
|
|
35
36
|
if (cache.has(dir)) {
|
|
36
37
|
return !!cache.get(dir);
|
|
37
38
|
} else {
|
|
38
|
-
const pkgPath =
|
|
39
|
+
const pkgPath = (0, import_pkgUpContainsName.pkgUpContainsName)(opts.path);
|
|
39
40
|
let ret;
|
|
40
41
|
if (!pkgPath) {
|
|
41
42
|
ret = false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pkgUpContainsName(file: string): string | null;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/utils/pkgUpContainsName.ts
|
|
30
|
+
var pkgUpContainsName_exports = {};
|
|
31
|
+
__export(pkgUpContainsName_exports, {
|
|
32
|
+
pkgUpContainsName: () => pkgUpContainsName
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pkgUpContainsName_exports);
|
|
35
|
+
var import_utils = require("@umijs/utils");
|
|
36
|
+
var import_path = __toESM(require("path"));
|
|
37
|
+
function pkgUpContainsName(file) {
|
|
38
|
+
let pkgPath = import_utils.pkgUp.pkgUpSync({ cwd: file });
|
|
39
|
+
if (!pkgPath)
|
|
40
|
+
return null;
|
|
41
|
+
const { name } = require(pkgPath);
|
|
42
|
+
if (!name) {
|
|
43
|
+
return pkgUpContainsName(import_path.default.resolve(pkgPath, "../.."));
|
|
44
|
+
}
|
|
45
|
+
return pkgPath;
|
|
46
|
+
}
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
pkgUpContainsName
|
|
50
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.64",
|
|
4
4
|
"description": "@umijs/bundler-webpack",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-webpack#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"postcss-preset-env": "7.5.0",
|
|
39
39
|
"react-error-overlay": "6.0.9",
|
|
40
40
|
"react-refresh": "0.14.0",
|
|
41
|
-
"@umijs/babel-preset-umi": "4.0.
|
|
42
|
-
"@umijs/
|
|
43
|
-
"@umijs/
|
|
44
|
-
"@umijs/utils": "4.0.
|
|
41
|
+
"@umijs/babel-preset-umi": "4.0.64",
|
|
42
|
+
"@umijs/mfsu": "4.0.64",
|
|
43
|
+
"@umijs/bundler-utils": "4.0.64",
|
|
44
|
+
"@umijs/utils": "4.0.64"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@swc/core": "1.3.24",
|