mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
build(ui): fix types exports
This commit is contained in:
parent
a591184d2a
commit
d92d5b5258
@ -11,7 +11,4 @@ export const appConfig: UserConfig = {
|
|||||||
tsconfigPaths(),
|
tsconfigPaths(),
|
||||||
visualizer() as unknown as PluginOption,
|
visualizer() as unknown as PluginOption,
|
||||||
],
|
],
|
||||||
build: {
|
|
||||||
chunkSizeWarningLimit: 1500,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
import react from '@vitejs/plugin-react-swc';
|
import { UserConfig } from 'vite';
|
||||||
import { visualizer } from 'rollup-plugin-visualizer';
|
|
||||||
import { PluginOption, UserConfig } from 'vite';
|
|
||||||
import eslint from 'vite-plugin-eslint';
|
|
||||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
||||||
|
|
||||||
export const commonConfig: UserConfig = {
|
export const commonConfig: UserConfig = {
|
||||||
base: './',
|
base: './',
|
||||||
|
@ -17,19 +17,29 @@ export const packageConfig: UserConfig = {
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
build: {
|
build: {
|
||||||
chunkSizeWarningLimit: 1500,
|
|
||||||
lib: {
|
lib: {
|
||||||
entry: path.resolve(__dirname, '../src/index.ts'),
|
entry: path.resolve(__dirname, '../src/index.ts'),
|
||||||
name: 'InvokeAIUI',
|
name: 'InvokeAIUI',
|
||||||
fileName: (format) => `invoke-ai-ui.${format}.js`,
|
fileName: (format) => `invoke-ai-ui.${format}.js`,
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ['react', 'react-dom'],
|
external: ['react', 'react-dom', '@emotion/react'],
|
||||||
output: {
|
output: {
|
||||||
globals: {
|
globals: {
|
||||||
react: 'React',
|
react: 'React',
|
||||||
|
'react-dom': 'ReactDOM',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
app: path.resolve(__dirname, '../src/app'),
|
||||||
|
assets: path.resolve(__dirname, '../src/assets'),
|
||||||
|
common: path.resolve(__dirname, '../src/common'),
|
||||||
|
features: path.resolve(__dirname, '../src/features'),
|
||||||
|
services: path.resolve(__dirname, '../src/services'),
|
||||||
|
theme: path.resolve(__dirname, '../src/theme'),
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
@ -14,10 +14,13 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"baseUrl": "src",
|
"jsx": "react-jsx",
|
||||||
"jsx": "react-jsx"
|
"baseUrl": "./",
|
||||||
|
"paths": {
|
||||||
|
"*": ["./src/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src", "index.d.ts"],
|
"include": ["src/**/*.ts", "src/**/*.tsx", "*.d.ts"],
|
||||||
"exclude": ["src/services/fixtures/*"],
|
"exclude": ["src/services/fixtures/*", "node_modules", "dist"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
"composite": true,
|
"composite": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true
|
||||||
"baseUrl": "src"
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"vite.config.ts",
|
"vite.config.ts",
|
||||||
|
Loading…
Reference in New Issue
Block a user