From fffaa4d7ec163575947b7ae56a31e10415bd86e5 Mon Sep 17 00:00:00 2001 From: chris kamer Date: Wed, 15 Nov 2023 19:46:23 -0500 Subject: [PATCH] Added build target in vite config --- src/main.ts | 2 +- vitest.config.ts => vite.config.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) rename vitest.config.ts => vite.config.ts (52%) diff --git a/src/main.ts b/src/main.ts index 9b597f7..5fa5578 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,5 +2,5 @@ import "./style.css"; import { getMidiDevices } from "./mididevice.ts"; import { captureMidi } from "./capturemidi.ts"; -getMidiDevices().then(); +await getMidiDevices(); captureMidi(); diff --git a/vitest.config.ts b/vite.config.ts similarity index 52% rename from vitest.config.ts rename to vite.config.ts index cb1dfa1..9f94cba 100644 --- a/vitest.config.ts +++ b/vite.config.ts @@ -1,8 +1,11 @@ -import { defineConfig } from "vite"; +import { defineConfig } from "vitest/config"; export default defineConfig({ test: { globals: true, environment: "jsdom", }, + build: { + target: "esnext", + }, });