fix: remove require cache (#3288)

This commit is contained in:
chenos 2023-12-29 17:34:12 +08:00 committed by GitHub
parent 32dd64190b
commit 467f3b6b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,7 @@ export class PluginManager {
}
static clearCache(packageName: string) {
return;
const packageNamePath = packageName.replace('/', sep);
Object.keys(require.cache).forEach((key) => {
if (key.includes(packageNamePath)) {