I need to import a JavaScript module from an in memory variable.
I know that this can be done using SystemJS and Webpack.
But nowhere can I find a good working example nor documentation for the same. The documentations mostly talks of dynamic import of .js files.
Basically I need to import the module like below
let moduleData = export function doSomething(string) { return string + '-done'; };
//Need code to import that moduleData into memory
If anyone can point to documentation that will be great