feat: upgrade to vite 3.0

This commit is contained in:
Anthony Fu committed 2022-07-14 03:15:25 +08:00
1 parent 3fb2c7d828
commit a56c80efa2
5 files changed
+474 -403

No files matched your search

+12 -7
View File
@@ -127,13 +127,6 @@ export default defineConfig({
Inspect(),
],
// https://github.com/antfu/vite-ssg
ssgOptions: {
script: 'async',
formatting: 'minify',
onFinished() { generateSitemap() },
},
// https://github.com/vitest-dev/vitest
test: {
include: ['test/**/*.test.ts'],
@@ -142,4 +135,16 @@ export default defineConfig({
inline: ['@vue', '@vueuse', 'vue-demi'],
},
},
// https://github.com/antfu/vite-ssg
ssgOptions: {
script: 'async',
formatting: 'minify',
onFinished() { generateSitemap() },
},
ssr: {
// TODO: workaround until they support native ESM
noExternal: ['workbox-window', /vue-i18n/],
},
})