Closed matthiasott closed 1 year ago
I think this was fixed via https://github.com/11ty/eleventy-plugin-vite/commit/7cd0709dfaf5b5dda3ccb49146a840669acabcd9? Could be closed.
Yes, thank you @KiwiKilian. This shipped with 2.0.0-canary.2 (stable version shipping today!)
Removing lines 50 and 54 in EleventyVite.js (in https://github.com/11ty/eleventy-plugin-vite/commit/6bae645d9cbb9337fece210b914ca14f88b75f80) leads to Rollup generating empty JS files again (also see https://github.com/11ty/eleventy-plugin-vite/pull/3) when files like
feeds.xml
,robots.txt
, orsitemap.xml
are processed by Eleventy and placed in the Vitepublic
folder in the temp directory, e.g..11ty-vite/public/
.Normally, those files should be ignored by Vite because they're in the
public
folder, yet they are explicitly being added toviteOptions.build.rollupOptions.input
with all other items of theresults
array oneleventy.after
. Adding the items of theresults
array torollupOptions.input
is needed so that all HTML files are added as entry points. So re-adding the filter() makes the most sense IMO.Could create a PR for this – just LMK @zachleat! 🤗