fix(tauri): upgrade target browser version

used top-level await, only Safari > 15 supports it
This commit is contained in:
三咲智子 2023-01-07 03:59:56 +08:00
parent 731d68d53d
commit 5f7f7573c6
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -22,7 +22,7 @@ export default defineNuxtModule({
}
nuxt.hook('vite:extend', ({ config }) => {
config.build!.target = ['es2021', 'chrome100', 'safari13']
config.build!.target = ['chrome100', 'safari15']
config.envPrefix = [...config.envPrefix || [], 'VITE_', 'TAURI_']
})