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 am getting the error Uncaught 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'" while adding babel-plugin-istanbul to a chrome extension which uses manifest v3 which doesn't allow eval function.
But, the package adds var global = new Function("return this")() to the background.js file. Is there any way to solve this?
The text was updated successfully, but these errors were encountered:
setting these options fixes the CSP error, but causes another babel plugin (vanilla-extract) to fail with this error: ReferenceError: window is not defined.
babel-plugin-istanbul seems to be adding instrumentation to my vanilla extract css.ts files. when i exclude these files in the istanbul options, it avoids most of the files, but not all for some reason. this is my setup:
I am getting the error
Uncaught 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'"
while addingbabel-plugin-istanbul
to a chrome extension which uses manifest v3 which doesn't alloweval
function.But, the package adds
var global = new Function("return this")()
to thebackground.js
file. Is there any way to solve this?The text was updated successfully, but these errors were encountered: