I would like to import a module who's file location is dynamic.
For example, I want a library dir to be prepended to the module name:
import foo from 'lib/'+'utils';
This apparently is not allowed, the syntax does not allow a calculated import name.
I have a similar situation with a single html file that imports arbitrary programs gotten from the query string as the variable "main", say. This also seems to fail:
import program from main; // var main = 'square-program';
How do I manage "dynamic" module names?