Snowpack should tolerate UTF-8 BOM in index.html #1961
fuzzykiller
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Yes! someone else just reported this, I'll put in a quick fix to trim this |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If
index.html
starts with a UTF-8 BOM, the logic to decide whether it’s a full HTML page fails:https://github.com/snowpackjs/snowpack/blob/968b01cdf93998d1ea354fd79ab4c82a01f0eed4/snowpack/src/build/build-import-proxy.ts#L92
This code should instead work even if the file starts with a byte-order mark.
Beta Was this translation helpful? Give feedback.
All reactions