From 2d0128c0c24425ecb37d19a1415935b82a8c8967 Mon Sep 17 00:00:00 2001 From: Steven Roussey Date: Sat, 6 Apr 2024 16:04:38 -0700 Subject: [PATCH] update build --- package.json | 2 +- packages/web/vite.config.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 93de03e..2fccf71 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "./packages/*" ], "scripts": { - "build": "( cd packages/core && bun run build ) && ( cd packages/cli && bun run build )", + "build": "( cd packages/core && bun run build ) && ( cd packages/cli && bun run build ) && ( cd packages/web && bun run build )", "clean": "rm -rf node_modules packages/*/node_modules packages/*/dist", "watch": "bunx concurrently -c 'auto' -n core,cli 'cd packages/core && bun run watch' 'sleep 1 && cd packages/cli && bun run watch'", "docs": "typedoc", diff --git a/packages/web/vite.config.ts b/packages/web/vite.config.ts index 5a33944..3aa153a 100644 --- a/packages/web/vite.config.ts +++ b/packages/web/vite.config.ts @@ -1,7 +1,10 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], -}) + build: { + target: "ES2022", + }, +});