fix: remove require cache (#3288)
This commit is contained in:
		
							parent
							
								
									32dd64190b
								
							
						
					
					
						commit
						467f3b6b79
					
				@ -125,6 +125,7 @@ export class PluginManager {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static clearCache(packageName: string) {
 | 
					  static clearCache(packageName: string) {
 | 
				
			||||||
 | 
					    return;
 | 
				
			||||||
    const packageNamePath = packageName.replace('/', sep);
 | 
					    const packageNamePath = packageName.replace('/', sep);
 | 
				
			||||||
    Object.keys(require.cache).forEach((key) => {
 | 
					    Object.keys(require.cache).forEach((key) => {
 | 
				
			||||||
      if (key.includes(packageNamePath)) {
 | 
					      if (key.includes(packageNamePath)) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user