Skip to content
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

Test netlify server function #8

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"type": "module",
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.7.0",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev -o",
Expand All @@ -21,7 +21,7 @@
"eslint": "^9.8.0",
"happy-dom": "^14.12.3",
"nuxt": "^3.12.4",
"nuxt-echarts": "^0.2.1",
"nuxt-echarts": "0.2.1",
"playwright-core": "^1.46.0",
"prettier": "^3.3.3",
"rollup-plugin-regexp": "^5.0.1",
Expand All @@ -39,6 +39,9 @@
"allowedVersions": {
"@typescript-eslint/utils>eslint": "^9.0.0"
}
},
"patchedDependencies": {
"nuxt-echarts": "patches/nuxt-echarts.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/nuxt-echarts.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/runtime/utils/wc.js b/dist/runtime/utils/wc.js
index 91b8b2e7e40cda93e3c75450128a71cd4e783009..d6330a6db557b0e3c83823e802227291ac70fb56 100644
--- a/dist/runtime/utils/wc.js
+++ b/dist/runtime/utils/wc.js
@@ -1,7 +1,7 @@
let registered = null;
export const TAG_NAME = "x-vue-echarts";
if (import.meta.server) {
- global.HTMLElement = Object;
+ globalThis.HTMLElement = Object;
}
export class EChartsElement extends HTMLElement {
__dispose = null;
51 changes: 32 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.