ffmpeg: allow import in nodejs (#577)
* Add empty node module * Switch to empty.mts
This commit is contained in:
7
packages/ffmpeg/src/empty.mts
Normal file
7
packages/ffmpeg/src/empty.mts
Normal file
@@ -0,0 +1,7 @@
|
||||
// File to be imported in node enviroments
|
||||
|
||||
export class FFmpeg {
|
||||
constructor() {
|
||||
throw new Error("ffmpeg.wasm does not support nodejs");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user