From 694aba5a7871bd8b79416b777a257d20009ff4a4 Mon Sep 17 00:00:00 2001 From: daishi Date: Sun, 7 Apr 2024 13:02:42 +0900 Subject: [PATCH] Revert "can we remove this?" This reverts commit 1efc0b50b0d99be10b5ffe5e5d62f22d99603468. --- .github/workflows/test-multiple-builds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-multiple-builds.yml b/.github/workflows/test-multiple-builds.yml index a76dad6551..9fedaa0f93 100644 --- a/.github/workflows/test-multiple-builds.yml +++ b/.github/workflows/test-multiple-builds.yml @@ -47,6 +47,7 @@ jobs: if: ${{ matrix.build == 'esm' }} run: | sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/esm\1.mjs')/" vitest.config.ts + sed -i~ "1s/^/import.meta.env=import.meta.env||{};import.meta.env.MODE='${NODE_ENV}';/" tests/*/*.tsx tests/*/*/*.tsx env: NODE_ENV: ${{ matrix.env }} - name: Patch for UMD