Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Nov 18, 2023
1 parent 975d6c9 commit db63209
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/phone/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import topLevelAwait from 'vite-plugin-top-level-await'
import topLevelAwait from 'vite-plugin-top-level-await';
import federation from '@originjs/vite-plugin-federation';

// https://vitejs.dev/config/
Expand All @@ -14,10 +14,10 @@ export default defineConfig({
}),
topLevelAwait({
// The export name of top-level await promise for each chunk module
promiseExportName: "__tla",
promiseExportName: '__tla',
// The function to generate import names of top-level await promise in each chunk module
promiseImportName: i => `__tla_${i}`
})
promiseImportName: (i) => `__tla_${i}`,
}),
],
server: {
port: 3000,
Expand All @@ -36,9 +36,9 @@ export default defineConfig({
define: {
'process.env': {},
},
base: "./",
base: './',
build: {
emptyOutDir: true,
outDir: "../../dist/html"
}
outDir: '../../dist/html',
},
});

0 comments on commit db63209

Please sign in to comment.