fix(tauri): upgrade target browser version
used top-level await, only Safari > 15 supports it
This commit is contained in:
parent
731d68d53d
commit
5f7f7573c6
|
@ -22,7 +22,7 @@ export default defineNuxtModule({
|
||||||
}
|
}
|
||||||
|
|
||||||
nuxt.hook('vite:extend', ({ config }) => {
|
nuxt.hook('vite:extend', ({ config }) => {
|
||||||
config.build!.target = ['es2021', 'chrome100', 'safari13']
|
config.build!.target = ['chrome100', 'safari15']
|
||||||
config.envPrefix = [...config.envPrefix || [], 'VITE_', 'TAURI_']
|
config.envPrefix = [...config.envPrefix || [], 'VITE_', 'TAURI_']
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue