feat: Add vite legacy plugin to provide polyfills for older browsers

This commit is contained in:
Alex Grozav 2024-12-04 14:45:33 +02:00
parent 75ed749172
commit dab63ba8b6
4 changed files with 1424 additions and 115 deletions

View file

@ -1,3 +1,2 @@
> 1%
last 2 versions
not ie <= 8
defaults and fully supports es6-module
maintained node versions

View file

@ -94,6 +94,7 @@
"@types/lodash-es": "^4.17.6",
"@types/luxon": "^3.2.0",
"@types/uuid": "catalog:",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitest/coverage-v8": "catalog:frontend",
"miragejs": "^0.1.48",
"unplugin-icons": "^0.19.0",

View file

@ -1,4 +1,5 @@
import vue from '@vitejs/plugin-vue';
import legacy from '@vitejs/plugin-legacy';
import { resolve } from 'path';
import { defineConfig, mergeConfig } from 'vite';
@ -54,6 +55,7 @@ const plugins = [
],
}),
vue(),
legacy(),
];
const { RELEASE: release } = process.env;

File diff suppressed because it is too large Load diff