Skip to content

Commit

Permalink
fix ongenerate signature regression
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 6, 2018
1 parent 12a6ae0 commit 2b0b6c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rollup/index.ts
Expand Up @@ -280,7 +280,11 @@ export default function rollup(
graph.plugins
.filter(plugin => plugin.ongenerate)
.map(plugin =>
plugin.ongenerate.call(graph.pluginContext, outputOptions, outputChunk)
plugin.ongenerate.call(
graph.pluginContext,
Object.assign({ bundle: outputChunk }, outputOptions),
outputChunk
)
)
);
})
Expand Down

0 comments on commit 2b0b6c9

Please sign in to comment.