From b8eff79c38ad68de9392b627d2017546846fe23c Mon Sep 17 00:00:00 2001 From: Kazuhito Hokamura Date: Thu, 21 Mar 2024 23:30:06 +0900 Subject: [PATCH] Fix vitest config --- package.json | 4 +--- vite.config.mts | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3e0ab0c..bb4d2a2 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,6 @@ "vitest": "^1.3.1" }, "overrides": { - "vite": { - "rollup": "npm:@rollup/wasm-node" - } + "rollup": "npm:@rollup/wasm-node" } } diff --git a/vite.config.mts b/vite.config.mts index 3712126..0620039 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -2,7 +2,8 @@ import { defineConfig } from "vitest/config"; // eslint-disable-next-line import/no-default-export export default defineConfig({ - test: { - globals: true, + esbuild: { + target: "esnext", + platform: "node", }, });