@umijs/bundler-webpack 4.0.0-canary.20220427.1 → 4.0.0-canary.20220428.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.
- package/dist/config/config.js +2 -2
- package/dist/server/https.d.ts +1 -2
- package/dist/server/https.js +3 -2
- package/dist/server/ws.d.ts +3 -1
- package/package.json +8 -6
package/dist/config/config.js
CHANGED
|
@@ -35,7 +35,6 @@ const javaScriptRules_1 = require("./javaScriptRules");
|
|
|
35
35
|
const manifestPlugin_1 = require("./manifestPlugin");
|
|
36
36
|
const miniCSSExtractPlugin_1 = require("./miniCSSExtractPlugin");
|
|
37
37
|
const nodePolyfill_1 = require("./nodePolyfill");
|
|
38
|
-
const nodePrefixPlugin_1 = require("./nodePrefixPlugin");
|
|
39
38
|
const progressPlugin_1 = require("./progressPlugin");
|
|
40
39
|
const speedMeasureWebpackPlugin_1 = require("./speedMeasureWebpackPlugin");
|
|
41
40
|
const svgRules_1 = require("./svgRules");
|
|
@@ -156,7 +155,8 @@ function getConfig(opts) {
|
|
|
156
155
|
// handle HarmonyLinkingError
|
|
157
156
|
yield (0, harmonyLinkingErrorPlugin_1.addHarmonyLinkingErrorPlugin)(applyOpts);
|
|
158
157
|
// remove node: prefix
|
|
159
|
-
|
|
158
|
+
// disable for performance
|
|
159
|
+
// await addNodePrefixPlugin(applyOpts);
|
|
160
160
|
// runtimePublicPath
|
|
161
161
|
if (userConfig.runtimePublicPath) {
|
|
162
162
|
config.plugin('runtimePublicPath').use(RuntimePublicPathPlugin_1.RuntimePublicPathPlugin);
|
package/dist/server/https.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { RequestListener } from 'http';
|
|
3
|
-
import https from 'https';
|
|
4
3
|
import { HttpsParams } from '../types';
|
|
5
|
-
export declare function createHttpsServer(app: RequestListener, httpsConfig: HttpsParams): Promise<https.Server>;
|
|
4
|
+
export declare function createHttpsServer(app: RequestListener, httpsConfig: HttpsParams): Promise<import("https").Server>;
|
package/dist/server/https.js
CHANGED
|
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.createHttpsServer = void 0;
|
|
16
16
|
const utils_1 = require("@umijs/utils");
|
|
17
17
|
const fs_1 = require("fs");
|
|
18
|
-
const https_1 = __importDefault(require("https"));
|
|
19
18
|
const path_1 = require("path");
|
|
19
|
+
const spdy_1 = __importDefault(require("spdy"));
|
|
20
20
|
const defaultHttpsHosts = ['localhost', '127.0.0.1'];
|
|
21
21
|
function createHttpsServer(app, httpsConfig) {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,10 +64,11 @@ function createHttpsServer(app, httpsConfig) {
|
|
|
64
64
|
]);
|
|
65
65
|
}
|
|
66
66
|
// Create server
|
|
67
|
-
|
|
67
|
+
const http2Service = spdy_1.default.createServer({
|
|
68
68
|
key: (0, fs_1.readFileSync)(key, 'utf-8'),
|
|
69
69
|
cert: (0, fs_1.readFileSync)(cert, 'utf-8'),
|
|
70
70
|
}, app);
|
|
71
|
+
return http2Service;
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
exports.createHttpsServer = createHttpsServer;
|
package/dist/server/ws.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Server as HttpServer } from 'http';
|
|
3
|
+
import { Http2Server } from 'http2';
|
|
3
4
|
import { Server as HttpsServer } from 'https';
|
|
5
|
+
import { Server } from 'spdy';
|
|
4
6
|
import WebSocket from '../../compiled/ws';
|
|
5
|
-
export declare function createWebSocketServer(server: HttpServer | HttpsServer): {
|
|
7
|
+
export declare function createWebSocketServer(server: HttpServer | HttpsServer | Http2Server | Server): {
|
|
6
8
|
send(message: string): void;
|
|
7
9
|
wss: WebSocket.Server;
|
|
8
10
|
close(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20220428.1",
|
|
4
4
|
"description": "@umijs/bundler-webpack",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/bundler-webpack#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -35,20 +35,22 @@
|
|
|
35
35
|
"@svgr/plugin-jsx": "^6.2.1",
|
|
36
36
|
"@svgr/plugin-svgo": "^6.2.0",
|
|
37
37
|
"@types/hapi__joi": "17.1.8",
|
|
38
|
-
"@umijs/babel-preset-umi": "4.0.0-canary.
|
|
39
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
40
|
-
"@umijs/mfsu": "4.0.0-canary.
|
|
41
|
-
"@umijs/utils": "4.0.0-canary.
|
|
38
|
+
"@umijs/babel-preset-umi": "4.0.0-canary.20220428.1",
|
|
39
|
+
"@umijs/bundler-utils": "4.0.0-canary.20220428.1",
|
|
40
|
+
"@umijs/mfsu": "4.0.0-canary.20220428.1",
|
|
41
|
+
"@umijs/utils": "4.0.0-canary.20220428.1",
|
|
42
42
|
"css-loader": "6.7.1",
|
|
43
43
|
"es5-imcompatible-versions": "^0.1.73",
|
|
44
44
|
"jest-worker": "27.5.1",
|
|
45
45
|
"node-libs-browser": "2.2.1",
|
|
46
46
|
"postcss": "^8.4.12",
|
|
47
47
|
"postcss-preset-env": "7.4.3",
|
|
48
|
-
"react-error-overlay": "6.0.9"
|
|
48
|
+
"react-error-overlay": "6.0.9",
|
|
49
|
+
"spdy": "^4.0.2"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@swc/core": "1.2.165",
|
|
53
|
+
"@types/spdy": "^3.4.5",
|
|
52
54
|
"@types/webpack-sources": "3.2.0",
|
|
53
55
|
"@types/ws": "8.5.3",
|
|
54
56
|
"autoprefixer": "10.4.4",
|