fix: support top level await on the server
This commit is contained in:
parent
faa583bb38
commit
57f045eaf6
1 changed files with 3 additions and 2 deletions
|
|
@ -6,8 +6,9 @@ import tsconfigPaths from 'vite-tsconfig-paths'
|
||||||
|
|
||||||
installGlobals()
|
installGlobals()
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig(({ isSsrBuild }) => ({
|
||||||
base: '/admin/',
|
base: '/admin/',
|
||||||
|
build: isSsrBuild ? { target: 'ES2022' } : {},
|
||||||
plugins: [
|
plugins: [
|
||||||
remix({
|
remix({
|
||||||
basename: '/admin/',
|
basename: '/admin/',
|
||||||
|
|
@ -23,4 +24,4 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
})
|
}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue