Ещё одна попытка включить поддержку старых браузеров (SvelteKit не работает с плагином vite legacy)
This commit is contained in:
parent
d79d323f17
commit
6d12b45d41
2 changed files with 1 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ const icons: Record<string, string> = {
|
||||||
const specialResolvers: Record<string, (url: URL) => string> = {
|
const specialResolvers: Record<string, (url: URL) => string> = {
|
||||||
'teasanctuary.ru': (url) => {
|
'teasanctuary.ru': (url) => {
|
||||||
// Домены третьего уровня и выше
|
// Домены третьего уровня и выше
|
||||||
const prefix = url.hostname.split('.').toReversed();
|
const prefix = url.hostname.split('.').reverse();
|
||||||
prefix.shift();
|
prefix.shift();
|
||||||
prefix.shift();
|
prefix.shift();
|
||||||
if (prefix[0] === "hl") {
|
if (prefix[0] === "hl") {
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,6 @@ export default {
|
||||||
sveltekit(),
|
sveltekit(),
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
legacy({
|
legacy({
|
||||||
targets: 'defaults',
|
|
||||||
modernPolyfills: true,
|
|
||||||
renderLegacyChunks: false
|
renderLegacyChunks: false
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue