code: function allImportPaths(contractSource) {
    const noCommentSource = strip.js(String(contractSource));
    const rawImportStatements = execall(/^(\s*)((import)(.*?))("|')(.*?)("|')((;)|((.*?)(;)))$/gm, noCommentSource);
    const importPaths = rawImportStatements
      .map(v => String(execall(/("|')(.*?)("|')/g, v.match)[0].match)
          .replace(/'/g, '')
          .replace(/"/g, '')
          .replace(/^\//, '')
          .replace('./', '')
          .trim());
  
    return importPaths.filter(path => (path !== 'wafr/Test.sol'));
  }
docs: get all import paths from contract source