[doc & comment conflict] document and comments about build.target
are a little confused
#19034
Closed
7 tasks done
Labels
documentation
Improvements or additions to documentation
p1-chore
Doesn't change code behavior (priority)
Describe the bug
about
build.target
The document shows
https://vite.dev/guide/build.html#browser-compatibility
But the code comment shows
except for dynamic import
vite/packages/vite/src/node/build.ts
Lines 81 to 83 in ac32968
A few days ago, we found dynamic-imports compatibility error, so I tried to found more info about the difference bwtween
build.target
and@vitejs/plugin-legacy
, and then found there are some conflict description.The comment was added since 4 years ago, maybe it is outdated?
Reproduction
document & code comment
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: