We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cedc28d commit 5fe0550Copy full SHA for 5fe0550
packages/vite/src/node/plugins/dynamicImportPolyfill.ts
@@ -31,7 +31,7 @@ export function dynamicImportPolyfillPlugin(config: ResolvedConfig): Plugin {
31
},
32
load(id) {
33
if (id === polyfillId) {
34
- if (!enabled) {
+ if (!enabled && config.command === 'build') {
35
config.logger.warnOnce(
36
`\n'vite/dynamic-import-polyfill' is no longer needed if you target modern browsers`
37
)
0 commit comments