Merge pull request #3696 from imcotton/patch-1

build: adopt to resolve.conditions: es2015
This commit is contained in:
Kiril Videlov 2024-05-12 23:59:04 +02:00 committed by GitHub
commit e2aa78dac2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,6 +36,9 @@ export default defineConfig({
// to make use of `TAURI_DEBUG` and other env variables
// https://tauri.studio/v1/api/config#buildconfig.beforedevcommand
envPrefix: ['VITE_', 'TAURI_'],
resolve: {
conditions: ['es2015']
},
build: {
// Tauri supports es2021
target: process.env.TAURI_PLATFORM == 'windows' ? 'chrome105' : 'safari13',