From db079a27336b18c2a0cd9a14914d4fa04337d931 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 21 Mar 2023 10:29:27 -0400 Subject: [PATCH] remove unneeded build:package code --- invokeai/frontend/web/package.json | 1 - invokeai/frontend/web/vite.config.ts | 21 --------------------- 2 files changed, 22 deletions(-) diff --git a/invokeai/frontend/web/package.json b/invokeai/frontend/web/package.json index 1c37b68156..c47948746d 100644 --- a/invokeai/frontend/web/package.json +++ b/invokeai/frontend/web/package.json @@ -6,7 +6,6 @@ "prepare": "cd ../../../ && husky install invokeai/frontend/web/.husky", "dev": "concurrently \"vite dev\" \"yarn run theme:watch\"", "build": "yarn run lint && vite build", - "build:package": "vite build --mode=package", "preview": "vite preview", "lint:madge": "madge --circular src/main.tsx", "lint:eslint": "eslint --max-warnings=0 .", diff --git a/invokeai/frontend/web/vite.config.ts b/invokeai/frontend/web/vite.config.ts index 3b6a051355..a6071341b3 100644 --- a/invokeai/frontend/web/vite.config.ts +++ b/invokeai/frontend/web/vite.config.ts @@ -1,4 +1,3 @@ -import path from 'path'; import react from '@vitejs/plugin-react-swc'; import { visualizer } from 'rollup-plugin-visualizer'; import { defineConfig, PluginOption } from 'vite'; @@ -58,26 +57,6 @@ export default defineConfig(({ mode }) => { // sourcemap: true, // this can be enabled if needed, it adds ovwer 15MB to the commit }, }; - } else if (mode === 'package') { - return { - ...common, - build: { - ...common.build, - lib: { - entry: path.resolve(__dirname, 'src/exports.tsx'), - name: 'InvokeAI UI', - fileName: (format) => `invoke-ai-ui.${format}.js`, - }, - rollupOptions: { - external: ['react', 'react-dom'], - output: { - globals: { - react: 'React', - }, - }, - }, - }, - }; } else { return { ...common,