I'm looking for a solution to dynamically import modules in JS react components based on parameters from a webpack configuration.
So that THEME_PATH
from
import ./theme/{THEME_NAME}/indes.less
Would be dynamically replaced through a webpack param or CLI parameters on webpack build.
Any suggestions or hints on how to solve this?