Support for legacy browsers (#228)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-12-18 22:18:38 -05:00
1 parent 4c90cf1e98
commit 6e4262e6a5
3 files changed
+2172 -16

No files matched your search

+8 -1
View File
@@ -5,11 +5,18 @@ import ip from 'ip';
import { existsSync, readFileSync } from 'fs'
import { join as joinPath } from 'path'
import { parse as dotEnvParse } from 'dotenv'
import legacy from '@vitejs/plugin-legacy'
const PORT = 5173
const config: UserConfig = {
plugins: [tsconfigPaths(), svelte()],
plugins: [
tsconfigPaths(),
svelte(),
legacy({
targets: ['defaults', 'not IE 11'],
})
],
build: {
outDir: "../playlet-lib/src/www",
emptyOutDir: true