Open mkilpatrick opened 2 months ago
So an extension (.
) isn't necessary for its determination?
As you can see in readme the first example is json
without dot and the result is application/json
.
application/json
is the best mimetype for sourcemap files.
application/octet-stream
might work well with browser devtools, however this mimetype is a signal to browsers to initiate a download. This may cause problems for tools like performance analysis tooling or JS exception tracking that attempt to make sense of the source maps.
For some reason
lookup("map")
returns 'application/json' instead of false. Shouldn't it return false since there is no extension?