apparently, package-overrides should use esm

otherwise they don't get transpiled for some reason
This commit is contained in:
Bruno Windels 2021-10-12 16:33:48 +02:00
parent 7dce579ac3
commit 3b72157e64
2 changed files with 3 additions and 2 deletions

View File

@ -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);}

View File

@ -1 +1,2 @@
module.exports.Buffer = require("buffer"); import Buffer from "buffer";
export {Buffer};