-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
38 lines (36 loc) · 925 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { defineConfig } from 'astro/config';
import solidJs from "@astrojs/solid-js";
import legacy from '@vitejs/plugin-legacy';
import topLevelAwait from "vite-plugin-top-level-await";
// https://astro.build/config
export default defineConfig({
site: 'https://slumper.me',
integrations: [solidJs()],
plugins: [
legacy({
targets: ['defaults', 'not IE 11', 'iOS >= 10', 'Safari >= 10'],
additionalLegacyPolyfills: [
'regenerator-runtime/runtime',
'core-js/modules/es.promise',
'core-js/modules/es.array.iterator',
'whatwg-fetch',
]
},
topLevelAwait({
promiseExportName: "__tla",
promiseImportName: i => `__tla_${i}`
})),
],
vite: {
build: {
target: ['es2015'],
polyfillDynamicImport: true,
minify: 'terser',
},
optimizeDeps: {
esbuildOptions: {
target: 'es2015',
}
}
}
});