convertContent(content, filepath) {
    const regexp = /^import version from (?<source>.*);?$/gm;
    return content.replace(regexp, (originalString, match) => {
      const source = _.chain(match)
        .replace('"', '')
        .replace("'", '')
        .thru(this.toAbsolute)
        .value();
      console.info({ originalString, match, source });
      return 'nop';
    });
  }
/**
   * Convert content to use links instead of relative
   * @param {string} content Initial file content
   * @param filepath
   * @returns {string} Converted file content
   */
Convert content to use links instead of relative
@param {string} content Initial file content
@param filepath
@returns {string} Converted file content
Convert content to use links instead of relative @param { string } content Initial file content @param filepath @returns { string } Converted file content
convertContent(content, filepath) {
    const regexp = /^import version from (?<source>.*);?$/gm;
    return content.replace(regexp, (originalString, match) => {
      const source = _.chain(match)
        .replace('"', '')
        .replace("'", '')
        .thru(this.toAbsolute)
        .value();
      console.info({ originalString, match, source });
      return 'nop';
    });
  }
convertContent ( content , filepath ) { const regexp = / ^import version from (?<source>.*);?$ / gm ; return content . replace ( regexp , ( originalString , match ) => { const source = _ . chain ( match ) . replace ( '"' , '' ) . replace ( "'" , '' ) . thru ( this . toAbsolute ) . value ( ) ; console . info ( { originalString , match , source } ) ; return 'nop' ; } ) ; }
Convert content to use links instead of relative
 @param {string} content Initial file content
 @param filepath
 @returns {string} Converted file content
Convert content to use links instead of relative @param { string } content Initial file content @param filepath @returns { string } Converted file content