lib/compile.js
function getCompileHash(load, compileOpts) {
  return createHash('md5')
  .update(JSON.stringify({
    source: load.source,
    metadata: load.metadata,
    path: compileOpts.sourceMaps && load.path,

    normalize: compileOpts.normalize,
    anonymous: compileOpts.anonymous,
    systemGlobal: compileOpts.systemGlobal,
    static: compileOpts.static,
    encodeNames: compileOpts.encodeNames,
    sourceMaps: compileOpts.sourceMaps,
    lowResSourceMaps: compileOpts.lowResSourceMaps
  }))
  .digest('hex');
}
function getCompileHash(load, compileOpts) {
  return createHash('md5')
  .update(JSON.stringify({
    source: load.source,
    metadata: load.metadata,
    path: compileOpts.sourceMaps && load.path,

    normalize: compileOpts.normalize,
    anonymous: compileOpts.anonymous,
    systemGlobal: compileOpts.systemGlobal,
    static: compileOpts.static,
    encodeNames: compileOpts.encodeNames,
    sourceMaps: compileOpts.sourceMaps,
    lowResSourceMaps: compileOpts.lowResSourceMaps
  }))
  .digest('hex');
}
function getCompileHash ( load , compileOpts ) { return createHash ( 'md5' ) . update ( JSON . stringify ( { source : load . source , metadata : load . metadata , path : compileOpts . sourceMaps && load . path , normalize : compileOpts . normalize , anonymous : compileOpts . anonymous , systemGlobal : compileOpts . systemGlobal , static : compileOpts . static , encodeNames : compileOpts . encodeNames , sourceMaps : compileOpts . sourceMaps , lowResSourceMaps : compileOpts . lowResSourceMaps } ) ) . digest ( 'hex' ) ; }
create a compile hash based on path + source + metadata + compileOpts one implication here is that plugins shouldn't rely on System.x checks as these will not be cache-invalidated but within the bundle hook is fine
create a compile hash based on path + source + metadata + compileOpts one implication here is that plugins shouldn t rely on System . x checks as these will not be cache - invalidated but within the bundle hook is fine