You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The icon files shipped with the package following #477 have the same structure as the react-icons ones, meaning that each icon is represented through a js file that internally imports (or requires) the function GenIcon exposed by a lib directory (which is also shipped with the icons).
For example:
varGenIcon=require('../lib').GenIconmodule.exports.AiFillAccountBook=functionAiFillAccountBook(props){returnGenIcon({/* icons svg tree */})(props);};
We should consider making icon files auto-conclusive bundling the GenIcon function or directly shipping the result of GenIcon parametrized with the props. This would help with dynamic import since the fetched js code should not need to perform import when executed.
The text was updated successfully, but these errors were encountered:
The icon files shipped with the package following #477 have the same structure as the
react-icons
ones, meaning that each icon is represented through ajs
file that internally imports (or requires) the functionGenIcon
exposed by alib
directory (which is also shipped with the icons).For example:
We should consider making icon files auto-conclusive bundling the
GenIcon
function or directly shipping the result ofGenIcon
parametrized with the props. This would help with dynamic import since the fetchedjs
code should not need to perform import when executed.The text was updated successfully, but these errors were encountered: