fix: async chunks has been cached incorrectly (#5801)

This commit is contained in:
gchust 2024-12-05 20:30:30 +08:00 committed by GitHub
parent 7181861692
commit 201b3c43d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ import {
getExcludePackages,
getIncludePackages,
getPackagesFromFiles,
getSourcePackages
getSourcePackages,
} from './utils/buildPluginUtils';
import { getDepPkgPath, getDepsConfig } from './utils/getDepsConfig';
import { RsdoctorRspackPlugin } from '@rsdoctor/rspack-plugin';
@ -338,6 +338,7 @@ export async function buildPluginClient(cwd: string, userConfig: UserConfig, sou
output: {
path: outDir,
filename: outputFileName,
chunkFilename: '[chunkhash].js',
publicPath: `/static/plugins/${packageJson.name}/dist/client/`,
clean: true,
library: {