Skip to content

Commit

Permalink
Don't re-add entry point as a pre-ambled dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 22, 2018
1 parent 71eb95f commit a20c6d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/ConsoleAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ class ConsoleAgent extends Agent {
let rawsource = rawSource.get(path.basename(file));
let jspart = rawsource.split(/\/\*---[\r\n]+[\S\s]*[\r\n]+---\*\//)[1];

sources.push([
path.join(temppath, file),
`${preamble}\n${jspart ? jspart : rawsource}`
]);
if (path.join(temppath, file) !== tempfile) {
sources.push([
path.join(temppath, file),
`${preamble}\n${jspart ? jspart : rawsource}`
]);
}
});
}

Expand Down

0 comments on commit a20c6d7

Please sign in to comment.