Skip to content

Commit

Permalink
fix(plugin-legacy): fail to get the fileName (#5250)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonHandsome committed May 15, 2022
1 parent 32c75e2 commit c7fc1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/src/index.ts
Expand Up @@ -591,7 +591,7 @@ async function buildPolyfillChunk(
}

// add the chunk to the bundle
bundle[polyfillChunk.name] = polyfillChunk
bundle[polyfillChunk.fileName] = polyfillChunk
}

const polyfillId = '\0vite/legacy-polyfills'
Expand Down

0 comments on commit c7fc1d4

Please sign in to comment.