import { ReactSvgIconFC } from '@yzfe/react-svgicon' ; const icons = [ ] ; const req = require . context ( '@icon' , true , /\.svg/ ) ; req . keys ( ) . forEach ( ( key ) => { console . log ( 'key: ' , key , req ( key ) ) ; icons . push ( req ( key ) . default ) ; } ) ; export default icons ;