Skip to content

Commit

Permalink
prettier --write '**/*.{js,css,md,json}'
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Oct 20, 2021
1 parent 03de7ab commit 24bbe52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/assetgraph-rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ module.exports = async function bundleRollup(
relation.to.isLoaded
)) {
const entryPointAsset = htmlScript.to;
const incomingRelations = incomingRelationsByEntryPointAsset.get(
entryPointAsset
);
const incomingRelations =
incomingRelationsByEntryPointAsset.get(entryPointAsset);
if (incomingRelations) {
incomingRelations.push(htmlScript);
} else {
Expand Down
3 changes: 1 addition & 2 deletions test/assetgraph-rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ describe('assetgraph-rollup', function () {
const htmlAsset = assetGraph.addAsset({
type: 'Html',
url: 'https://example.com/index.html',
text:
'<!DOCTYPE html><script type="module" src="entrypoint.js"></script>',
text: '<!DOCTYPE html><script type="module" src="entrypoint.js"></script>',
});

await assetgraphRollup(assetGraph, htmlAsset);
Expand Down

0 comments on commit 24bbe52

Please sign in to comment.