Closed NullVoxPopuli closed 2 months ago
But the case is that Buffer
should not exist in browser (we already do the check before calling Buffer.isBuffer
- are you doing some shimming for your client? I don't mind doing an extra check of the Buffer.isBuffer?()
if that helps
I see this:
which is probably because Webpack is doing something silly -- not sure I can have control over it in this case :thinking: I don't have any explicit configuration that would add this ... a blank Buffer object :thinking:
I don't mind doing an extra check of the Buffer.isBuffer?() if that helps
It would!
Would you like to send a quick PR? Thanks
Validations
Versions
Describe the bug
and the entrypoint is from this path:![image](https://github.com/shikijs/shiki/assets/199018/111fe378-88be-44b7-be46-cf599b985952)
I will be working around this for now by defining
Buffer.isBuffer
on window/globlaThis via this in my index.htmlReproduction
call
await getHighlighterCore({
Contributes