mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix webpack polyfills (#9735)
webpack polyfills did not work because useBuiltIns: 'entry' expects a explicit core-js import. Changed it to 'usage' which does not require these explicit imports and polyfills based on browserslist. As a result, the built index.js now went from 128kB to 192kB. Ref: https://babeljs.io/docs/en/babel-preset-env#usebuiltins Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		
				
					committed by
					
						
						Antoine GIRARD
					
				
			
			
				
	
			
			
			
						parent
						
							74e35aae11
						
					
				
				
					commit
					a3977a3e51
				
			@@ -36,7 +36,7 @@ module.exports = {
 | 
				
			|||||||
              [
 | 
					              [
 | 
				
			||||||
                '@babel/preset-env',
 | 
					                '@babel/preset-env',
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                  useBuiltIns: 'entry',
 | 
					                  useBuiltIns: 'usage',
 | 
				
			||||||
                  corejs: 3,
 | 
					                  corejs: 3,
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
              ]
 | 
					              ]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user