Skip to content

Commit

Permalink
refactor: use > determine emit file name
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Mar 20, 2023
1 parent 14dcbd7 commit a5154cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/FileEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export class FileEmitter {
if (
!fileName ||
fileName.length > newFileName.length ||
(fileName.length === newFileName.length && fileName.localeCompare(newFileName) > 0)
(fileName.length === newFileName.length && fileName > newFileName)
) {
if (fileName) {
delete bundle[fileName];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function asyncify(callback) {
}
module.exports = {
description: 'deduplicates asset that have the same source',
solo: true,
options: {
input: ['main.js'],
plugins: {
Expand Down

0 comments on commit a5154cb

Please sign in to comment.