add hw2
This commit is contained in:
		
							
								
								
									
										11
									
								
								node_modules/@iconify/utils/lib/loader/warn.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								node_modules/@iconify/utils/lib/loader/warn.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| import { yellow } from "kolorist"; | ||||
|  | ||||
| const warned = /* @__PURE__ */ new Set(); | ||||
| function warnOnce(msg) { | ||||
| 	if (!warned.has(msg)) { | ||||
| 		warned.add(msg); | ||||
| 		console.warn(yellow(`[@iconify-loader] ${msg}`)); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| export { warnOnce }; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik