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
I found that in the context of Chrome extensions, the CSP is much stricter and does not allow and cannot be further relaxed
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'".
at bakeCollection (bake-collection.ts:116:34)
Therefore this package cannot be used as a dependency if you want to develop Chrome Extensions, it looks like Google Devs are afraid of it. Furthermore, I encountered this error because tseep is used as a sub dependency.
The text was updated successfully, but these errors were encountered:
Change is pretty simple (fallback may take more bundle size):
// fromimport{EventEmitter}from"tseep";// toimport{EventEmitter}from"tseep/lib/ee-safe";import{EventEmitter}from"tseep/lib/fallback";// auto switch if eval is restricted
I found that in the context of Chrome extensions, the CSP is much stricter and does not allow and cannot be further relaxed
Therefore this package cannot be used as a dependency if you want to develop Chrome Extensions, it looks like Google Devs are afraid of it. Furthermore, I encountered this error because
tseep
is used as a sub dependency.The text was updated successfully, but these errors were encountered: