How does Dynamic Import in webpack works when used with an expression?
问题 How does the bundling happens when you use something like this: const module = import(`folder1/${someExpression}`); I mean, I do understand when you pass a plain string to it, but how does webpack understands all the possible outcomes? Is this a good pattern? Does it bundle all the files from that folder? If so, it bundles them all together and does it recursively? 回答1: So, I bumped into this question that gave me an idea on how it works and what to search for. I am posting here so it can