mirror of
				https://github.com/home-assistant/frontend.git
				synced 2025-11-04 00:19:47 +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;
 | 
						|
    },
 | 
						|
  };
 | 
						|
};
 |