Skip to content

Commit

Permalink
chore(uni-builder): use rspack-manifest-plugin stable version (#5705)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Apr 30, 2024
1 parent ac974d7 commit 3114955
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-jobs-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/uni-builder': patch
---

chore(uni-builder): use rspack-manifest-plugin stable version
2 changes: 1 addition & 1 deletion packages/cli/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"postcss-nesting": "12.0.1",
"postcss-page-break": "3.0.4",
"react-refresh": "^0.14.0",
"rspack-manifest-plugin": "5.0.0-alpha0",
"rspack-manifest-plugin": "5.0.0",
"terser-webpack-plugin": "5.3.10",
"ts-loader": "9.4.4",
"webpack": "^5.91.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/uni-builder/src/shared/plugins/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const pluginManifest = (): RsbuildPlugin => ({

setup(api) {
api.modifyBundlerChain(async (chain, { target, CHAIN_ID }) => {
const { WebpackManifestPlugin } = await import('rspack-manifest-plugin');
const { RspackManifestPlugin } = await import('rspack-manifest-plugin');
const publicPath = chain.output.get('publicPath');

chain.plugin(CHAIN_ID.PLUGIN.MANIFEST).use(WebpackManifestPlugin, [
chain.plugin(CHAIN_ID.PLUGIN.MANIFEST).use(RspackManifestPlugin, [
{
fileName:
target === 'web'
Expand Down
14 changes: 8 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3114955

Please sign in to comment.