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