mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
apparently, package-overrides should use esm
otherwise they don't get transpiled for some reason
This commit is contained in:
parent
7dce579ac3
commit
3b72157e64
@ -1,4 +1,4 @@
|
|||||||
module.exports = class Buffer {
|
export default class Buffer {
|
||||||
static isBuffer(array) {return array instanceof Uint8Array;}
|
static isBuffer(array) {return array instanceof Uint8Array;}
|
||||||
static from(arrayBuffer) {return arrayBuffer;}
|
static from(arrayBuffer) {return arrayBuffer;}
|
||||||
static allocUnsafe(size) {return Buffer.alloc(size);}
|
static allocUnsafe(size) {return Buffer.alloc(size);}
|
||||||
|
@ -1 +1,2 @@
|
|||||||
module.exports.Buffer = require("buffer");
|
import Buffer from "buffer";
|
||||||
|
export {Buffer};
|
||||||
|
Loading…
Reference in New Issue
Block a user