New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
babel-plugin-istanbul not following CSP directive, Refused to evaluate a string as JavaScript because 'unsafe-eval' #281
Comments
i'm also having trouble getting this working with my setup.
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
|
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: