From 8bd891478a66bbd6cd66d34b0ca3d672ac56751e Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 11 May 2021 15:14:09 +0800 Subject: [PATCH] chore(workflows): e2e.yml --- .github/workflows/e2e.yml | 2 +- packages/vite-plugin-uni/lib/ssr/define.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c5fb85db7c..c322a28429 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -59,7 +59,7 @@ jobs: - name: Cypress run uses: cypress-io/github-action@v2 with: - install: false + install: true start: npm run dev:ssr working-directory: ./packages/playground/ssr wait-on: 'http://localhost:3000' diff --git a/packages/vite-plugin-uni/lib/ssr/define.js b/packages/vite-plugin-uni/lib/ssr/define.js index 213c54280e..5e6a4c525c 100644 --- a/packages/vite-plugin-uni/lib/ssr/define.js +++ b/packages/vite-plugin-uni/lib/ssr/define.js @@ -1,7 +1,7 @@ const defines = __DEFINES__ Object.keys(defines).forEach((key) => { const segments = key.split('.') - let target = globalThis + let target = global for (let i = 0; i < segments.length; i++) { const segment = segments[i] if (i === segments.length - 1) { -- GitLab