Skip to content

fix: Wasm module should be vendored as .wasm file#93

Merged
dsherret merged 2 commits intodenoland:mainfrom
dsherret:fix_wasm_module_local_ext
Nov 26, 2025
Merged

fix: Wasm module should be vendored as .wasm file#93
dsherret merged 2 commits intodenoland:mainfrom
dsherret:fix_wasm_module_local_ext

Conversation

@dsherret
Copy link
Member


fn get_extension(url: &Url, content_type: Option<&str>) -> &'static str {
MediaType::from_specifier_and_content_type(url, content_type)
.as_ts_extension()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caused because .wasm was getting converted to .d.mts for typescript here:

https://github.com/denoland/deno_media_type/blob/abf2b6808bdff4cd6f01ec2acf51955956956792/src/lib.rs#L60

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret merged commit 21f44e0 into denoland:main Nov 26, 2025
5 checks passed
@dsherret dsherret deleted the fix_wasm_module_local_ext branch November 26, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants