Is it possible that there is a bug with Vite.js or is this behavior normal? I noticed that when using date-fns
in Vite.js, it's making 400 requests. It seems like just one function call is resulting in 400 ajax requests being triggered by date-fns.
As a result, the page load time increases to 2 - 4 seconds after each reload. Am I overlooking something obvious here?
<script>
import { formatWithOptions } from 'date-fns/fp'
export default {
setup() {
const dateToString = formatWithOptions({ locale: 'en' }, 'yyyy-mm-dd')
}
}
</script>
Screenshot: https://i.sstatic.net/ye2Jm.jpg