lib/polymerize.js
function extractImports($) {
  var imports = [];
  $('link[rel=import][href]').each(function() {
    var el   = $(this);
    var href = el.attr('href');
    if(ABS.test(href)) return;
    imports.push(/^\./.test(href) ? href : './' + href);
    el.remove();
  })
  return imports;
}
function extractImports($) {
  var imports = [];
  $('link[rel=import][href]').each(function() {
    var el   = $(this);
    var href = el.attr('href');
    if(ABS.test(href)) return;
    imports.push(/^\./.test(href) ? href : './' + href);
    el.remove();
  })
  return imports;
}
function extractImports ( $ ) { var imports = [ ] ; $ ( 'link[rel=import][href]' ) . each ( function ( ) { var el = $ ( this ) ; var href = el . attr ( 'href' ) ; if ( ABS . test ( href ) ) return ; imports . push ( / ^\. / . test ( href ) ? href : './' + href ) ; el . remove ( ) ; } ) return imports ; }
Extract relative path to other web-component sources

@param {Object} $
Whacko document

@return {Array}
Extract relative path to other web - component sources