When i use vue-template in v3 chrome extension, 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'".
Because v3 is denied eval completely.
I find maybe is use h function cause it:
h({
components: props.vueTemplateComponents,
setup: () => props.vueTemplateData,
template: <${props.tag}>${outputHtml.value}</${props.tag}>,
})
Is there any way to solve this problem?
Description
When i use vue-template in v3 chrome extension, 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'". Because v3 is denied eval completely. I find maybe is use h function cause it: h({ components: props.vueTemplateComponents, setup: () => props.vueTemplateData, template:
<${props.tag}>${outputHtml.value}</${props.tag}>
, }) Is there any way to solve this problem?Reproduction
no
Used Package Manager
pnpm
System Info