Skip to content

Commit

Permalink
Add type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Feb 4, 2019
1 parent 6476d36 commit c0f26cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/index.ts
Expand Up @@ -353,7 +353,7 @@ function getSortingFileType(file: OutputAsset | OutputChunk): SortingFileType {

function createOutput(outputBundle: Record<string, OutputChunk | OutputAsset>): RollupOutput {
return {
output: Object.keys(outputBundle)
output: <[OutputChunk, ...(OutputChunk | OutputAsset)[]]>Object.keys(outputBundle)
.map(fileName => outputBundle[fileName])
.sort((outputFileA, outputFileB) => {
const fileTypeA = getSortingFileType(outputFileA);
Expand Down

0 comments on commit c0f26cd

Please sign in to comment.