Skip to content

Commit

Permalink
chore: fixing sort in rollup config (vitejs#3528)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abderrahmenla authored May 24, 2021
1 parent 1538e8f commit 496e26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function licensePlugin() {
)
const licenses = new Set()
const dependencyLicenseTexts = dependencies
.sort(({ name: nameA }, { name: nameB }) => (nameA > nameB ? 1 : -1))
.sort(({ name: nameA }, { name: nameB }) => (nameA > nameB) ? 1 : ((nameB > nameA) ? -1 : 0))
.map(
({
name,
Expand Down

0 comments on commit 496e26e

Please sign in to comment.