mirror of
				https://github.com/home-assistant/frontend.git
				synced 2025-10-30 22:19:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			327 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			327 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = function (opts = {}) {
 | |
|   const dontHash = opts.dontHash || new Set();
 | |
| 
 | |
|   return {
 | |
|     name: "dont-hash",
 | |
|     renderChunk(_code, chunk, _options) {
 | |
|       if (!chunk.isEntry || !dontHash.has(chunk.name)) {
 | |
|         return null;
 | |
|       }
 | |
|       chunk.fileName = `${chunk.name}.js`;
 | |
|       return null;
 | |
|     },
 | |
|   };
 | |
| };
 | 
