Closed shaunxu closed 8 years ago
This can't be done since in CommonJS require('module')
can't accept a variant as a parameter. In more details, CommonJS needs string literals as argument to the require()
method, so that it can statically analyze the source and generate bundle with all the required modules.
What module type are you targeting?
Yes I was using 'common'.
I this case (as said before) this can't be done since it is a limitation of
Thodoris Greasidis Computer, Networking & Communications Engineer
This works.
But if I put my module path into a variant it doesn't work.
Seems that this plugin only transform
System.import
when the argument is literal. But I think in most cases, we use module loader when the module name was defined in a config file, or loop files in a folder.