In a VueJS application with template Webpack , I need to import a series of SVG's according to a user's parameters.
SVG's are fixed files, but are loaded dynamically into the application. If I import all the files at once, the bundle
gets too large (around 13mb). I also could not use dynamic import
because in this case import
would be an expression, something like import(x)
where x is the name of the file to be imported according to user parameters.
What would be the solution to this problem? How can I perform the lazy load of an asset according to user parameters?