split-require icon indicating copy to clipboard operation
split-require copied to clipboard

dynamic dynamic imports

Open goto-bus-stop opened this issue 8 years ago • 2 comments

this works:

import('./a')

but what do we do with

var a = './a' + Math.random()
import(a)

goto-bus-stop avatar Oct 04 '17 19:10 goto-bus-stop

it would be neat to have a module that could statically evaluate complex expressions and return a range of possible values. prepack kinda does this and a lot more, i think, with its AbstractValue concept, so that might be a decent place to look

goto-bus-stop avatar Nov 18 '17 12:11 goto-bus-stop

@goto-bus-stop, any updates on this? Would be awesome 😄

kodedninja avatar Feb 27 '19 07:02 kodedninja