Soportar navegadores viejos

This commit is contained in:
Nulo 2021-07-06 21:04:14 +00:00
parent ec447e34e9
commit 3595235a6a
3 changed files with 54 additions and 0 deletions

View File

@ -9,6 +9,7 @@
"check": "tsc --noEmit --project . && prettier --check ."
},
"devDependencies": {
"@vitejs/plugin-legacy": "^1.4.3",
"prettier": "2.3.2",
"typescript": "^4.3.4",
"vite": "^2.3.8"

View File

@ -1,21 +1,47 @@
lockfileVersion: 5.3
specifiers:
'@vitejs/plugin-legacy': ^1.4.3
prettier: 2.3.2
typescript: ^4.3.4
vite: ^2.3.8
devDependencies:
'@vitejs/plugin-legacy': 1.4.3_vite@2.3.8
prettier: 2.3.2
typescript: 4.3.4
vite: 2.3.8
packages:
/@babel/standalone/7.14.7:
resolution: {integrity: sha512-7RlfMPR4604SbYpj5zvs2ZK587hVhixgU9Pd9Vs8lB8KYtT3U0apXSf0vZXhy8XRh549eUmJOHXhWKTO3ObzOQ==}
engines: {node: '>=6.9.0'}
dev: true
/@vitejs/plugin-legacy/1.4.3_vite@2.3.8:
resolution: {integrity: sha512-lxZUJaMWYMQuqvZM1wPzDP6KABQgA/drVL5fnaygEPcz9adc2OHhfFNN/SvvHQ1V0rP8gybIc7uA+iI1gAdkVQ==}
engines: {node: '>=12.0.0'}
peerDependencies:
vite: ^2.0.0
dependencies:
'@babel/standalone': 7.14.7
core-js: 3.15.2
magic-string: 0.25.7
regenerator-runtime: 0.13.7
systemjs: 6.10.2
vite: 2.3.8
dev: true
/colorette/1.2.2:
resolution: {integrity: sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==}
dev: true
/core-js/3.15.2:
resolution: {integrity: sha512-tKs41J7NJVuaya8DxIOCnl8QuPHx5/ZVbFo1oKgVl1qHFBBrDctzQGtuLjPpRdNTWmKPH6oEvgN/MUID+l485Q==}
requiresBuild: true
dev: true
/esbuild/0.12.9:
resolution: {integrity: sha512-MWRhAbMOJ9RJygCrt778rz/qNYgA4ZVj6aXnNPxFjs7PmIpb0fuB9Gmg5uWrr6n++XKwwm/RmSz6RR5JL2Ocsw==}
hasBin: true
@ -46,6 +72,12 @@ packages:
has: 1.0.3
dev: true
/magic-string/0.25.7:
resolution: {integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==}
dependencies:
sourcemap-codec: 1.4.8
dev: true
/nanoid/3.1.23:
resolution: {integrity: sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
@ -71,6 +103,10 @@ packages:
hasBin: true
dev: true
/regenerator-runtime/0.13.7:
resolution: {integrity: sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==}
dev: true
/resolve/1.20.0:
resolution: {integrity: sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==}
dependencies:
@ -91,6 +127,14 @@ packages:
engines: {node: '>=0.10.0'}
dev: true
/sourcemap-codec/1.4.8:
resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}
dev: true
/systemjs/6.10.2:
resolution: {integrity: sha512-PwaC0Z6Y1E6gFekY2u38EC5+5w2M65jYVrD1aAcOptpHVhCwPIwPFJvYJyryQKUyeuQ5bKKI3PBHWNjdE9aizg==}
dev: true
/typescript/4.3.4:
resolution: {integrity: sha512-uauPG7XZn9F/mo+7MrsRjyvbxFpzemRjKEZXS4AK83oP2KKOJPvb+9cO/gmnv8arWZvhnjVOXz7B49m1l0e9Ew==}
engines: {node: '>=4.2.0'}

9
vite.config.js Normal file
View File

@ -0,0 +1,9 @@
import legacy from "@vitejs/plugin-legacy";
export default {
plugins: [
legacy({
targets: ["defaults", "not IE 11"],
}),
],
};