@umijs/bundler-webpack 4.0.11 → 4.0.12
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/dev.js
CHANGED
|
@@ -141,6 +141,7 @@ async function dev(opts) {
|
|
|
141
141
|
staticPathPrefix: import_mfsu.MF_DEP_PREFIX,
|
|
142
142
|
name: import_constants.MFSU_NAME,
|
|
143
143
|
chainWebpack: (_i = opts.config.mfsu) == null ? void 0 : _i.chainWebpack,
|
|
144
|
+
extraBabelIncludes: opts.config.extraBabelIncludes,
|
|
144
145
|
cache: {
|
|
145
146
|
buildDependencies: (_j = opts.cache) == null ? void 0 : _j.buildDependencies,
|
|
146
147
|
cacheDirectory: (0, import_path.join)(cacheDirectoryPath, "mfsu-deps")
|
|
@@ -30,7 +30,7 @@ var RuntimePublicPathPlugin = class {
|
|
|
30
30
|
if (module2.constructor.name === "PublicPathRuntimeModule") {
|
|
31
31
|
if (module2.getGeneratedCode().includes("webpack:///mini-css-extract-plugin"))
|
|
32
32
|
return;
|
|
33
|
-
module2._cachedGeneratedCode = `__webpack_require__.p = (typeof globalThis !== undefined ? globalThis : window).publicPath || '/';`;
|
|
33
|
+
module2._cachedGeneratedCode = `__webpack_require__.p = (typeof globalThis !== 'undefined' ? globalThis : window).publicPath || '/';`;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
});
|
package/dist/server/server.js
CHANGED
|
@@ -222,8 +222,10 @@ async function createServer(opts) {
|
|
|
222
222
|
const protocol = userConfig.https ? "https:" : "http:";
|
|
223
223
|
const port = opts.port || 8e3;
|
|
224
224
|
server.listen(port, () => {
|
|
225
|
-
const
|
|
226
|
-
|
|
225
|
+
const banner = (0, import_utils.getDevBanner)(protocol, opts.host, port);
|
|
226
|
+
console.log(banner.before);
|
|
227
|
+
import_utils.logger.ready(banner.main);
|
|
228
|
+
console.log(banner.after);
|
|
227
229
|
});
|
|
228
230
|
return server;
|
|
229
231
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -54,14 +54,14 @@ export interface IConfig {
|
|
|
54
54
|
cssLoaderModules?: {
|
|
55
55
|
[key: string]: any;
|
|
56
56
|
};
|
|
57
|
-
cssMinifier?: CSSMinifier
|
|
57
|
+
cssMinifier?: `${CSSMinifier}`;
|
|
58
58
|
cssMinifierOptions?: {
|
|
59
59
|
[key: string]: any;
|
|
60
60
|
};
|
|
61
61
|
define?: {
|
|
62
62
|
[key: string]: any;
|
|
63
63
|
};
|
|
64
|
-
depTranspiler?: Transpiler
|
|
64
|
+
depTranspiler?: `${Transpiler}`;
|
|
65
65
|
devtool?: Config.DevTool;
|
|
66
66
|
deadCode?: DeadCodeParams;
|
|
67
67
|
https?: HttpsServerOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
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",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@svgr/plugin-jsx": "^6.2.1",
|
|
35
35
|
"@svgr/plugin-svgo": "^6.2.0",
|
|
36
36
|
"@types/hapi__joi": "17.1.8",
|
|
37
|
-
"@umijs/babel-preset-umi": "4.0.
|
|
38
|
-
"@umijs/bundler-utils": "4.0.
|
|
37
|
+
"@umijs/babel-preset-umi": "4.0.12",
|
|
38
|
+
"@umijs/bundler-utils": "4.0.12",
|
|
39
39
|
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
|
|
40
|
-
"@umijs/mfsu": "4.0.
|
|
41
|
-
"@umijs/utils": "4.0.
|
|
40
|
+
"@umijs/mfsu": "4.0.12",
|
|
41
|
+
"@umijs/utils": "4.0.12",
|
|
42
42
|
"cors": "^2.8.5",
|
|
43
43
|
"css-loader": "6.7.1",
|
|
44
44
|
"es5-imcompatible-versions": "^0.1.73",
|