apparently, package-overrides should use esm
otherwise they don't get transpiled for some reason
This commit is contained in:
parent
7dce579ac3
commit
3b72157e64
2 changed files with 3 additions and 2 deletions
|
@ -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};
|
||||||
|
|
Reference in a new issue