FranckFreiburger / vue3-sfc-loader

Single File Component loader for Vue2 and Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
MIT License
1.03k stars 116 forks source link

SharedArrayBuffer will require cross-origin isolation as of M91 #53

Closed kempcalalo closed 3 years ago

kempcalalo commented 3 years ago

Describe the bug I am using vue2-sfc-loader but I got this warning on chrome console.

vue2-sfc-loader.js:59 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.

To Reproduce Reference vue2-sfc-loader

Expected behavior

No warning should be displayed.

Versions

Additional context image

horidream commented 3 years ago

For now I use the workaround

const isEnabledSharedArrayBuffer =
  typeof SharedArrayBuffer === "function" &&
  typeof window !== "undefined" &&
  global.crossOriginIsolated === true;
if (!isEnabledSharedArrayBuffer) {
  global.SharedArrayBuffer = ArrayBuffer;
}
FranckFreiburger commented 3 years ago

waiting for this PR : https://github.com/browserify/node-util/pull/59