Maybe file-type should mention the runtime require full icu-data
wenerme opened this issue · 0 comments
wenerme commented
file-type depends on token-types, which needs new TextDecoder('latin1'), this require full-icu data to work nodejs/node#28190
Without full-icu data
new TextDecoder('latin1')this will failed with
The "windows-1252" encoding is not supported
for alpine linux, this require
apk del icu-data-en || true
# + 11.53 MB / 29.38 MB
apk add icu-data-full