fix: no longer use custom element enhancement for strict csp builds, fix #707

This commit is contained in:
Justineo
2023-04-24 12:10:19 +08:00
parent b86280e1f0
commit d082883bc5
4 changed files with 1441 additions and 1354 deletions

View File

@ -41,7 +41,8 @@ import { omitOn, unwrapInjected } from "./utils";
import { register, TAG_NAME, type EChartsElement } from "./wc";
import "./style.css";
const wcRegistered = register();
const __CSP__ = false;
const wcRegistered = __CSP__ ? false : register();
if (Vue2) {
Vue2.config.ignoredElements.push(TAG_NAME);