Skip to content

Commit

Permalink
fix: greatly improve plugin perfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jul 10, 2023
1 parent 12277b0 commit 1bde13b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rollup-vsix-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@ export default function plugin ({
return files[getVsixPath(path)]!
})).filter(resource => getVsixPath(resource.path) in files)

const vsixFile: Record<string, Buffer> = Object.keys(files).reduce((acc, usedFile) => {
return ({
...acc,
[usedFile]: files[getVsixPath(usedFile)]!
})
}, {} as Record<string, Buffer>)
const vsixFile = Object.fromEntries(Object.entries(files).map(([key, value]) => [getVsixPath(key), value]))
vsixFiles[id] = vsixFile

const syncPaths = extensionResources.filter(resource => resource.sync).map(r => r.path)
Expand Down

0 comments on commit 1bde13b

Please sign in to comment.