You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			22 lines
		
	
	
		
			549 B
		
	
	
	
		
			JavaScript
		
	
		
		
			
		
	
	
			22 lines
		
	
	
		
			549 B
		
	
	
	
		
			JavaScript
		
	
| 
											9 months ago
										 | "use strict"; | ||
|  | Object.defineProperty(exports, "__esModule", { | ||
|  |     value: true | ||
|  | }); | ||
|  | Object.defineProperty(exports, "default", { | ||
|  |     enumerable: true, | ||
|  |     get: function() { | ||
|  |         return optimize; | ||
|  |     } | ||
|  | }); | ||
|  | async function optimize(html, config) { | ||
|  |     let AmpOptimizer; | ||
|  |     try { | ||
|  |         AmpOptimizer = require("next/dist/compiled/@ampproject/toolbox-optimizer"); | ||
|  |     } catch (_) { | ||
|  |         return html; | ||
|  |     } | ||
|  |     const optimizer = AmpOptimizer.create(config); | ||
|  |     return optimizer.transformHtml(html, config); | ||
|  | } | ||
|  | 
 | ||
|  | //# sourceMappingURL=optimize-amp.js.map
 |