Skip to content

Commit

Permalink
style(plugin-legacy): prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jiadesen committed Nov 23, 2023
1 parent 8ee38dd commit 4ab2036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
// custom-[hash].[format] -> custom-[hash]-legacy.[format]
// custom.[hash].[format] -> custom.[hash]-legacy.[format]
// [hash].min.[format] -> [hash]-legacy.min.[format]
return fileName.replace(/(\.min\.|\.)[^.]*$/, "-legacy$&")
return fileName.replace(/(\.min\.|\.)[^.]*$/, '-legacy$&')
}
}

Expand Down

0 comments on commit 4ab2036

Please sign in to comment.