Skip to content

Commit

Permalink
fix: analyze and manifest feat don't work (#6252)
Browse files Browse the repository at this point in the history
* fix: analyze feat don't work

* chore: update

* fix: ci
  • Loading branch information
sorrycc authored Mar 11, 2021
1 parent b72ab31 commit 906363c
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"@umijs/bundler-utils": "3.4.0",
"@umijs/deps": "0.2.32",
"@umijs/deps": "0.2.34",
"@umijs/types": "3.4.0",
"@umijs/utils": "3.4.0",
"jest-worker": "26.6.2",
Expand Down
1 change: 1 addition & 0 deletions packages/bundler-webpack/src/getConfig/getConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ test('config.manifest + production', async () => {
return (
plugin instanceof
require('@umijs/deps/compiled/webpack-manifest-plugin')
.WebpackManifestPlugin
);
}).length,
).toEqual(1);
Expand Down
16 changes: 10 additions & 6 deletions packages/bundler-webpack/src/getConfig/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,16 @@ export default async function getConfig(
if (config.manifest && type === BundlerConfigType.csr) {
webpackConfig
.plugin('manifest')
.use(require.resolve('@umijs/deps/compiled/webpack-manifest-plugin'), [
{
fileName: 'asset-manifest.json',
...config.manifest,
},
]);
.use(
require('@umijs/deps/compiled/webpack-manifest-plugin')
.WebpackManifestPlugin,
[
{
fileName: 'asset-manifest.json',
...config.manifest,
},
],
);
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"@umijs/ast": "3.4.0",
"@umijs/babel-preset-umi": "3.4.0",
"@umijs/deps": "0.2.32",
"@umijs/deps": "0.2.34",
"@umijs/utils": "3.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/preset-built-in/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/react-router-config": "5.0.1",
"@umijs/babel-preset-umi": "3.4.0",
"@umijs/bundler-webpack": "3.4.0",
"@umijs/deps": "0.2.32",
"@umijs/deps": "0.2.34",
"@umijs/renderer-mpa": "3.4.0",
"@umijs/renderer-react": "3.4.0",
"@umijs/runtime": "3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"access": "public"
},
"dependencies": {
"@umijs/deps": "0.2.32",
"@umijs/deps": "0.2.34",
"@umijs/utils": "3.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"@umijs/babel-preset-umi": "3.4.0",
"@umijs/core": "3.4.0",
"@umijs/deps": "0.2.32",
"@umijs/deps": "0.2.34",
"@umijs/server": "3.4.0",
"@umijs/utils": "3.4.0",
"webpack-chain": "6.5.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/umi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@umijs/bundler-webpack": "3.4.0",
"@umijs/core": "3.4.0",
"@umijs/deps": "0.2.32",
"@umijs/deps": "0.2.34",
"@umijs/preset-built-in": "3.4.0",
"@umijs/runtime": "3.4.0",
"@umijs/types": "3.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"access": "public"
},
"dependencies": {
"@umijs/deps": "0.2.32"
"@umijs/deps": "0.2.34"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2945,10 +2945,10 @@
dependencies:
"@types/yargs-parser" "*"

"@umijs/deps@0.2.32":
version "0.2.32"
resolved "https://registry.yarnpkg.com/@umijs/deps/-/deps-0.2.32.tgz#6f1cc43d24890d35aadea613dbcdb7217ad71f6e"
integrity sha512-qJFPkJvkYP6DspFV6oYsQAcwRJngs10e6fx/aV9rF1Q5tuzGfvg0FRCIvspJds/vhW/dHeYb0GKU6qLCHNNRCw==
"@umijs/deps@0.2.34":
version "0.2.34"
resolved "https://registry.yarnpkg.com/@umijs/deps/-/deps-0.2.34.tgz#3d748c5818da53f013d16dbb686c1b00e4409a4b"
integrity sha512-6PUTf2IeMh1V1k0aoFOT4Z7gs3vYPOxkDuKsjglT+UrQxa8Wfm613U7LecnkC6nv3wZk23oolGmE6fjMgtYfSw==
dependencies:
chokidar "3.5.1"
clipboardy "2.3.0"
Expand Down

0 comments on commit 906363c

Please sign in to comment.