mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 04:26:43 +02:00
♻️ refactor: migrate 15 web apps to @manacore/shared-vite-config
- Add missing packages to MANACORE_SHARED_PACKAGES list - Migrate all SvelteKit apps to use createViteConfig/mergeViteConfig - Matrix preserves special WASM config for matrix-js-sdk crypto - Update consolidation docs with completed Vite config task Savings: ~350 LOC (-318 net lines)
This commit is contained in:
parent
d0d2855adb
commit
188290b427
17 changed files with 225 additions and 513 deletions
|
|
@ -1,34 +1,13 @@
|
|||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { createViteConfig, mergeViteConfig } from '@manacore/shared-vite-config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
server: {
|
||||
port: 5187,
|
||||
strictPort: true,
|
||||
},
|
||||
ssr: {
|
||||
noExternal: [
|
||||
'@manacore/shared-theme',
|
||||
'@manacore/shared-auth-ui',
|
||||
'@manacore/shared-branding',
|
||||
'@manacore/shared-ui',
|
||||
'@manacore/shared-theme-ui',
|
||||
'@manacore/shared-feedback-types',
|
||||
'@manacore/shared-feedback-service',
|
||||
'@manacore/shared-feedback-ui',
|
||||
],
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: [
|
||||
'@manacore/shared-theme',
|
||||
'@manacore/shared-auth-ui',
|
||||
'@manacore/shared-branding',
|
||||
'@manacore/shared-ui',
|
||||
'@manacore/shared-theme-ui',
|
||||
'@manacore/shared-feedback-types',
|
||||
'@manacore/shared-feedback-service',
|
||||
'@manacore/shared-feedback-ui',
|
||||
],
|
||||
},
|
||||
const baseConfig = createViteConfig({
|
||||
port: 5187,
|
||||
});
|
||||
|
||||
export default defineConfig(
|
||||
mergeViteConfig(baseConfig, {
|
||||
plugins: [sveltekit()],
|
||||
})
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue