@umijs/bundler-webpack 4.0.67 → 4.0.68
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/dist/build.d.ts +1 -0
- package/dist/build.js +2 -1
- package/dist/dev.d.ts +1 -0
- package/dist/dev.js +2 -1
- package/dist/schema.js +1 -7
- package/dist/server/ws.d.ts +1 -1
- package/package.json +5 -5
package/dist/build.d.ts
CHANGED
package/dist/build.js
CHANGED
|
@@ -67,7 +67,8 @@ async function build(opts) {
|
|
|
67
67
|
...opts.cache,
|
|
68
68
|
cacheDirectory: (0, import_path.join)(cacheDirectoryPath, "bundler-webpack")
|
|
69
69
|
} : void 0,
|
|
70
|
-
pkg: opts.pkg
|
|
70
|
+
pkg: opts.pkg,
|
|
71
|
+
disableCopy: opts.disableCopy
|
|
71
72
|
});
|
|
72
73
|
let isFirstCompile = true;
|
|
73
74
|
return new Promise((resolve2, reject) => {
|
package/dist/dev.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ declare type IOpts = {
|
|
|
29
29
|
srcCodeCache?: any;
|
|
30
30
|
startBuildWorker?: (deps: any[]) => Worker;
|
|
31
31
|
onBeforeMiddleware?: Function;
|
|
32
|
+
disableCopy?: boolean;
|
|
32
33
|
} & Pick<IConfigOpts, 'cache' | 'pkg'>;
|
|
33
34
|
export declare function ensureSerializableValue(obj: any): any;
|
|
34
35
|
export declare function dev(opts: IOpts): Promise<void>;
|
package/dist/dev.js
CHANGED
|
@@ -149,7 +149,8 @@ async function setup(opts) {
|
|
|
149
149
|
opts.mfsuStrategy === "eager" ? "bundler-webpack-eager" : "bundler-webpack"
|
|
150
150
|
)
|
|
151
151
|
} : void 0,
|
|
152
|
-
pkg: opts.pkg
|
|
152
|
+
pkg: opts.pkg,
|
|
153
|
+
disableCopy: opts.disableCopy
|
|
153
154
|
});
|
|
154
155
|
const depConfig = await configModule.getConfig({
|
|
155
156
|
cwd: opts.cwd,
|
package/dist/schema.js
CHANGED
|
@@ -50,12 +50,6 @@ var devTool = [
|
|
|
50
50
|
"nosources-cheap-source-map",
|
|
51
51
|
"nosources-cheap-module-source-map"
|
|
52
52
|
];
|
|
53
|
-
var DevToolValues = [
|
|
54
|
-
...devTool,
|
|
55
|
-
...devTool.map((item) => `#${item}`),
|
|
56
|
-
...devTool.map((item) => `@${item}`),
|
|
57
|
-
...devTool.map((item) => `#@${item}`)
|
|
58
|
-
];
|
|
59
53
|
function getSchemas() {
|
|
60
54
|
return {
|
|
61
55
|
alias: ({ zod }) => zod.record(zod.string(), zod.any()),
|
|
@@ -97,7 +91,7 @@ function getSchemas() {
|
|
|
97
91
|
import_types.Transpiler.swc,
|
|
98
92
|
import_types.Transpiler.none
|
|
99
93
|
]),
|
|
100
|
-
devtool: ({ zod }) => zod.union([zod.enum(
|
|
94
|
+
devtool: ({ zod }) => zod.union([zod.enum(devTool), zod.boolean()]),
|
|
101
95
|
esm: ({ zod }) => zod.object({}),
|
|
102
96
|
externals: ({ zod }) => zod.union([
|
|
103
97
|
zod.record(zod.string(), zod.any()),
|
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<WebSocket.WebSocket>;
|
|
12
12
|
close(): void;
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.68",
|
|
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/bundler-utils": "4.0.
|
|
42
|
-
"@umijs/
|
|
43
|
-
"@umijs/
|
|
44
|
-
"@umijs/
|
|
41
|
+
"@umijs/bundler-utils": "4.0.68",
|
|
42
|
+
"@umijs/utils": "4.0.68",
|
|
43
|
+
"@umijs/mfsu": "4.0.68",
|
|
44
|
+
"@umijs/babel-preset-umi": "4.0.68"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@swc/core": "1.3.24",
|