Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zx8086 committed Jan 27, 2025
1 parent a47b17f commit 632b3d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"vite": "^5.1.4"
},
"dependencies": {
"@apollo/client": "^3.12.6",
"@apollo/client": "3.11.0",
"@azure/identity": "^4.6.0",
"@azure/msal-browser": "^4.0.1",
"@azure/msal-node": "^3.0.1",
Expand Down
14 changes: 11 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export default defineConfig(({ mode }): UserConfig => {
external: ['bun:sqlite']
},
build: {
target: "esnext",
minify: 'esbuild',
sourcemap: true,
rollupOptions: {
external: [
'bun:sqlite',
Expand All @@ -107,14 +110,19 @@ export default defineConfig(({ mode }): UserConfig => {
'@apollo/client'
]
},
target: "esnext",
sourcemap: false,
commonjsOptions: {
include: [/@apollo\/client/, /node_modules/]
}
},
optimizeDeps: {
exclude: enableOpenTelemetry ? ["src/utils/serverLogger"] : [],
exclude: ['@apollo/client'],
esbuildOptions: {
target: 'esnext',
supported: {
'top-level-await': true
},
charset: 'utf8'
},
include: [
'svelte',
'svelte/internal',
Expand Down

0 comments on commit 632b3d4

Please sign in to comment.