Skip to content

Commit

Permalink
chore(deps): update dependencies for backoffice-v2
Browse files Browse the repository at this point in the history
- Add vite-plugin-top-level-await to enable top-level await support
- Update various babel-related packages to version 7.25.2
- Change node typings for vite from 20.9.2 to 18.17.19

(Your package.json is so long it could be the next fantasy novel best-seller)
  • Loading branch information
alonp99 committed Nov 20, 2024
1 parent 79d11ed commit 24215fa
Show file tree
Hide file tree
Showing 3 changed files with 646 additions and 248 deletions.
1 change: 1 addition & 0 deletions apps/backoffice-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite-plugin-mkcert": "^1.16.0",
"vite-plugin-top-level-await": "^1.4.4",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^0.29.8"
},
Expand Down
5 changes: 5 additions & 0 deletions apps/backoffice-v2/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vitest/config';
import terminal from 'vite-plugin-terminal';
import tsconfigPaths from 'vite-tsconfig-paths';
import topLevelAwait from 'vite-plugin-top-level-await';

export default defineConfig(configEnv => {
const isDevelopment = configEnv.mode === 'development';
Expand All @@ -18,6 +19,10 @@ export default defineConfig(configEnv => {
port: 5137,
},
plugins: [
topLevelAwait({
promiseExportName: '__tla',
promiseImportName: i => `__tla_${i}`,
}),
terminal({
output: ['console', 'terminal'],
strip: false,
Expand Down
Loading

0 comments on commit 24215fa

Please sign in to comment.