You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the browser build of rollup, when I call this.emitFile from a plugin for an asset with a Uint8Array as the source, I get a crash: "Buffer is not defined".
In the browser build of rollup, when I call this.emitFile from a plugin for an asset with a Uint8Array as the source, I get a crash: "Buffer is not defined".
Below is a link to the line that assumes Buffer is defined globally. Buffer is not available in the browser.
https://github.com/rollup/rollup/blob/master/src/utils/FileEmitter.ts#L113
Here is the specification in the types that Uint8Array should be allowed:
https://github.com/rollup/rollup/blob/master/src/rollup/types.d.ts#L130
The text was updated successfully, but these errors were encountered: