Imported module's content type is video/mp2t
Here's my test case:
```
<script type="module">
import * as bench from '/bench.js';
import { data } from './data.ts';
bench.start();
// Initialize Map directly with array of entries
const datatMap = new Map(
Object.entries(data)
);
// Test lookup (time a single lookup)
const firstKey = Object.keys(data)[0];
const value = dataMap.get(firstKey);
bench.stop();
</script>
```
When I run this, I see the network call resolves successfully, however, I get the following error in console:
> Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "video/mp2t". Strict MIME type checking is enforced for module scripts per HTML spec.
When I inspect the network tab, I see the `GET http://127.0.0.1:8080/data.ts` response was received with the following header:
```
content-type: video/mp2t
```
关闭于 2025-05-15 1 条评论