Literally just the SharedArrayBuffer
npm install shared-array-bufferLiterally just the SharedArrayBuffer.
Warning this module does not allow postMessage with SharedArrayBuffer as cross origin isolation is still required to do so.
``js
import SharedArrayBuffer from 'shared-array-buffer';
// or
const SharedArrayBuffer = require('shared-array-buffer');
``
That's it, the SharedArrayBuffer constructor will then be usable even out of cross origin isolated content.
See this discussion.