Skip to content

Commit

Permalink
fix: don't force polyfillDynamicImport if renderLegacyChunks is false (
Browse files Browse the repository at this point in the history
  • Loading branch information
DreierF committed Jun 12, 2021
1 parent 9703bcd commit 9f344bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-legacy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function viteLegacyPlugin(options = {}) {
if (!config.build) {
config.build = {}
}
config.build.polyfillDynamicImport = true
if (genLegacy) {
config.build.polyfillDynamicImport = true
}
}
}

Expand Down

0 comments on commit 9f344bf

Please sign in to comment.