Skip to content

Commit 7aeb536

Browse files
committed
fix: correct mime-type for bundle javascript
1 parent 00c0505 commit 7aeb536

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

builder_client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ export function client_builder(
463463

464464
// Bundle assets - serve from memory
465465
for (const [assetPath, contents] of bundle_assets) {
466-
const mimeType = contentType(assetPath);
466+
const parsed_path = Path.parse(assetPath);
467+
const mimeType = contentType(parsed_path.ext);
467468
// Create a new Uint8Array to ensure proper BodyInit compatibility
468469
const assetBytes = new Uint8Array(contents);
469470
const assetHandler: Router.Handler = Effect.gets(() =>

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@baetheus/pick",
3-
"version": "0.7.0",
3+
"version": "0.8.0",
44
"compilerOptions": {
55
"jsx": "react-jsx",
66
"jsxImportSource": "preact"

0 commit comments

Comments
 (0)