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 authored Jun 26, 2021
1 parent aa8ca3f commit d2a51ca
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 d2a51ca

Please sign in to comment.