Skip to content

Commit

Permalink
feat(remix-dev): add .wasm as a supported file type (#3299)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwis authored and kentcdodds committed Dec 15, 2022
1 parent 721de41 commit 48a3516
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- awthwathje
- axel-habermaier
- BasixKOR
- benwis
- BenMcH
- bgschiller
- binajmen
Expand Down
1 change: 1 addition & 0 deletions packages/remix-dev/compiler/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const loaders: { [ext: string]: esbuild.Loader } = {
".ts": "ts",
".tsx": "tsx",
".ttf": "file",
".wasm": "file",
".wav": "file",
".webm": "file",
".webmanifest": "file",
Expand Down
4 changes: 4 additions & 0 deletions packages/remix-dev/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ declare module "*.ttf" {
let asset: string;
export default asset;
}
declare module "*.wasm" {
let asset: string;
export default asset;
}
declare module "*.wav" {
let asset: string;
export default asset;
Expand Down

0 comments on commit 48a3516

Please sign in to comment.