From 668d9cdb9d06d725a30dc44dc0d456e3cc677018 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:09:43 +1100 Subject: [PATCH] update app build configuration --- invokeai/frontend/package.json | 3 +-- invokeai/frontend/vite.config.ts | 8 ++------ invokeai/frontend/yarn.lock | 13 ++++--------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/invokeai/frontend/package.json b/invokeai/frontend/package.json index 8080555d8e..401c4723d0 100644 --- a/invokeai/frontend/package.json +++ b/invokeai/frontend/package.json @@ -76,12 +76,11 @@ "patch-package": "^6.5.0", "postinstall-postinstall": "^2.1.0", "prettier": "^2.8.3", - "prettier-plugin-organize-imports": "^3.2.2", "rollup-plugin-visualizer": "^5.9.0", "sass": "^1.55.0", "terser": "^5.16.1", "tsc-watch": "^5.0.3", - "typescript": "^4.6.4", + "typescript": "^5.0.0-beta", "vite": "^4.1.1", "vite-plugin-eslint": "^1.8.1", "vite-tsconfig-paths": "^4.0.5" diff --git a/invokeai/frontend/vite.config.ts b/invokeai/frontend/vite.config.ts index eed2684048..44c122632c 100644 --- a/invokeai/frontend/vite.config.ts +++ b/invokeai/frontend/vite.config.ts @@ -1,7 +1,6 @@ -import legacy from '@vitejs/plugin-legacy'; import react from '@vitejs/plugin-react'; import { visualizer } from 'rollup-plugin-visualizer'; -import { defineConfig } from 'vite'; +import { defineConfig, PluginOption } from 'vite'; import eslint from 'vite-plugin-eslint'; import tsconfigPaths from 'vite-tsconfig-paths'; @@ -17,10 +16,7 @@ export default defineConfig(({ mode }) => { }), eslint(), tsconfigPaths(), - legacy({ - modernPolyfills: ['es.array.find-last'], - }), - visualizer(), + visualizer() as unknown as PluginOption, ], server: { // Proxy HTTP requests to the flask server diff --git a/invokeai/frontend/yarn.lock b/invokeai/frontend/yarn.lock index 48e9956f20..01a1451e42 100644 --- a/invokeai/frontend/yarn.lock +++ b/invokeai/frontend/yarn.lock @@ -5366,11 +5366,6 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier-plugin-organize-imports@^3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-3.2.2.tgz#91993365e017daa5d0d28d8183179834224d8dd1" - integrity sha512-e97lE6odGSiHonHJMTYC0q0iLXQyw0u5z/PJpvP/3vRy6/Zi9kLBwFAbEGjDzIowpjQv8b+J04PDamoUSQbzGA== - prettier@^2.8.3: version "2.8.3" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.3.tgz#ab697b1d3dd46fb4626fbe2f543afe0cc98d8632" @@ -6338,10 +6333,10 @@ typescript@^3.9.10, typescript@^3.9.5, typescript@^3.9.7: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typescript@^4.6.4: - version "4.9.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.3.tgz#3aea307c1746b8c384435d8ac36b8a2e580d85db" - integrity sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA== +typescript@^5.0.0-beta: + version "5.0.0-beta" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.0-beta.tgz#791fa95411d6ff64ee77d677ed1e6f32a2eaabaf" + integrity sha512-+SSabbSXG5mtF+QGdV9uXXt9Saq1cSyI6hSG7znhaLoquleJpnmfkwSxFngK9c2fWWi1W/263TuzXQOsIcdjjA== unbox-primitive@^1.0.2: version "1.0.2"