Merge branch 'tusooa/1362-no-create-app-on-first-visit' into 'develop'

Create an app only when needed

See merge request pleroma/pleroma-fe!2073
This commit is contained in:
HJ 2025-03-10 13:30:37 +00:00
commit 7ba5e6d31c
12 changed files with 449 additions and 34 deletions

View file

@ -9,6 +9,7 @@ import emojisPlugin from './build/emojis_plugin.js'
import { devSwPlugin, buildSwPlugin, swMessagesPlugin } from './build/sw_plugin.js'
import copyPlugin from './build/copy_plugin.js'
import { getCommitHash } from './build/commit_hash.js'
import mswPlugin from './build/msw_plugin.js'
const localConfigPath = '<projectRoot>/config/local.json'
const getLocalDevSettings = async () => {
@ -119,7 +120,8 @@ export default defineConfig(async ({ mode, command }) => {
lintInWorker: true,
lintOnStart: true,
cacheLocation: resolve(projectRoot, 'node_modules/.cache/stylelintcache')
})
}),
...(mode === 'test' ? [mswPlugin()] : [])
],
optimizeDeps: {
// For unknown reasons, during vitest, vite will re-optimize the following