Skip to content

Commit

Permalink
example/support importing m4a
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-leezard committed Nov 7, 2023
1 parent d1a2122 commit 26b378a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/src/types/audio.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.m4a" {
const src: string
export default src
}
1 change: 1 addition & 0 deletions example/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
assetsInclude: ["**/*.m4a"],
})

0 comments on commit 26b378a

Please sign in to comment.