fix: support .htm files in addition to .html - #21420
Conversation
|
@sapphi-red when should this PR be marked ready for review? |
|
When the CI passes |
a15fe9f to
3d8089a
Compare
126d832 to
9f54f43
Compare
|
Reset this branch onto latest |
|
@sapphi-red Branch was reset to a single commit on current |
Treat .htm as HTML for dev middleware fallback, HMR, warmup, asset handling, dep scan, and SSR HTML inputs. Complements existing htmlLangRE matching. Fixes vitejs#10997
2d7bac1 to
2fd90e1
Compare
|
Rebased onto latest Prior CI failures on Build&Test node-24 macos/windows looked flaky/unrelated to the
Locally after rebase: unit tests for |
Fixes #10997. Vite now properly handles .htm files. Updated htmlFallback, static, indexHtml, and memoryFiles middlewares to use the existing htmlLangRE regex that matches both .html and .htm extensions.