Skip to content

Commit

Permalink
Update packages/plugin-legacy/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <chrissi92@hotmail.de>
  • Loading branch information
avocadowastaken and Shinigami92 authored Jul 11, 2021
1 parent 6811d1a commit 606866a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function viteLegacyPlugin(options = {}) {

return (chunkInfo) => {
let fileName =
typeof fileNames == 'function' ? fileNames(chunkInfo) : fileNames
typeof fileNames === 'function' ? fileNames(chunkInfo) : fileNames

if (fileName.includes('[name]')) {
// [name]-[hash].[format] -> [name]-legacy-[hash].[format]
Expand Down

0 comments on commit 606866a

Please sign in to comment.