exclude jan extension web from desktop build (#6419)

This commit is contained in:
Dinh Long Nguyen 2025-09-11 19:51:49 +07:00 committed by GitHub
parent db52057030
commit ea72c1ae0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,14 @@ export default defineConfig(({ mode }) => {
'@': path.resolve(__dirname, './src'),
},
},
optimizeDeps: {
exclude: ['@jan/extensions-web'],
},
build: {
rollupOptions: {
external: ['@jan/extensions-web'],
},
},
define: {
IS_TAURI: JSON.stringify(process.env.IS_TAURI),
IS_WEB_APP: JSON.stringify(false),