@umijs/bundler-webpack 4.0.0-canary.20231109.1 → 4.0.0-canary.20231115.2
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/ssrPlugin.js +1 -3
- package/package.json +5 -5
package/dist/config/ssrPlugin.js
CHANGED
|
@@ -32,7 +32,6 @@ var SSRPlugin = class {
|
|
|
32
32
|
constructor(opts) {
|
|
33
33
|
this.opts = opts;
|
|
34
34
|
this.manifest = /* @__PURE__ */ new Map();
|
|
35
|
-
this.isGenManifest = false;
|
|
36
35
|
}
|
|
37
36
|
apply(compiler) {
|
|
38
37
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
|
|
@@ -74,12 +73,11 @@ var SSRPlugin = class {
|
|
|
74
73
|
null,
|
|
75
74
|
2
|
|
76
75
|
);
|
|
77
|
-
if (
|
|
76
|
+
if (process.env.NODE_ENV === "production" || this.opts.userConfig.writeToDisk) {
|
|
78
77
|
compilation.emitAsset(
|
|
79
78
|
"build-manifest.json",
|
|
80
79
|
new import_webpack.sources.RawSource(assetsSource, false)
|
|
81
80
|
);
|
|
82
|
-
this.isGenManifest = true;
|
|
83
81
|
} else {
|
|
84
82
|
const outputPath = compiler.options.output.path;
|
|
85
83
|
import_utils.fsExtra.mkdirpSync(outputPath);
|
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.20231115.2",
|
|
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/
|
|
42
|
-
"@umijs/utils": "4.0.0-canary.
|
|
43
|
-
"@umijs/
|
|
44
|
-
"@umijs/
|
|
41
|
+
"@umijs/babel-preset-umi": "4.0.0-canary.20231115.2",
|
|
42
|
+
"@umijs/bundler-utils": "4.0.0-canary.20231115.2",
|
|
43
|
+
"@umijs/mfsu": "4.0.0-canary.20231115.2",
|
|
44
|
+
"@umijs/utils": "4.0.0-canary.20231115.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@swc/core": "1.3.67",
|