mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Make stripped Node.js import more resilient
This commit is contained in:
+3
-1
@@ -21,7 +21,9 @@ import {
|
||||
import * as nodeAlias from './node';
|
||||
import { InputDisposedError } from './input';
|
||||
|
||||
const node = nodeAlias; // Aliasing it prevents some bundler warnings
|
||||
const node = typeof nodeAlias !== 'undefined'
|
||||
? nodeAlias // Aliasing it prevents some bundler warnings
|
||||
: undefined!;
|
||||
|
||||
export type ReadResult = {
|
||||
bytes: Uint8Array;
|
||||
|
||||
Reference in New Issue
Block a user