Skip to content

Commit

Permalink
fix: only apply dynamic import polyfill during build
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed May 17, 2021
1 parent 9b1a312 commit 6b9c782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-legacy/index.js
Expand Up @@ -71,6 +71,7 @@ function viteLegacyPlugin(options = {}) {
const legacyConfigPlugin = {
name: 'legacy-config',

apply: 'build',
config(config) {
if (!config.build) {
config.build = {}
Expand Down

0 comments on commit 6b9c782

Please sign in to comment.