Fix globals not being treeshakable by some bundlers (fixes #172)

This commit is contained in:
Vanilagy
2025-11-12 13:11:18 +01:00
parent 12216ae29e
commit 3cb6ed82ce
12 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -135,8 +135,8 @@ export class IsobmffBoxWriter {
}
}
const bytes = new Uint8Array(8);
const view = new DataView(bytes.buffer);
const bytes = /* #__PURE__ */ new Uint8Array(8);
const view = /* #__PURE__ */ new DataView(bytes.buffer);
const u8 = (value: number) => {
return [(value % 0x100 + 0x100) % 0x100];
@@ -243,7 +243,7 @@ const rotationMatrix = (rotationInDegrees: number): TransformationMatrix => {
0, 0, 1,
];
};
const IDENTITY_MATRIX = rotationMatrix(0);
const IDENTITY_MATRIX = /* #__PURE__ */ rotationMatrix(0);
const matrixToBytes = (matrix: TransformationMatrix) => {
return [