fix: support top level await on the server
This commit is contained in:
parent
faa583bb38
commit
57f045eaf6
@ -6,8 +6,9 @@ import tsconfigPaths from 'vite-tsconfig-paths'
|
||||
|
||||
installGlobals()
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ isSsrBuild }) => ({
|
||||
base: '/admin/',
|
||||
build: isSsrBuild ? { target: 'ES2022' } : {},
|
||||
plugins: [
|
||||
remix({
|
||||
basename: '/admin/',
|
||||
@ -23,4 +24,4 @@ export default defineConfig({
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
}))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user