[Glitch] Fix deprecation warning in Vite
Port 00cbc1b910d77f9760f5bf433d2760c41e840e54 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
1c749e21f8
commit
5f01e75290
@ -80,10 +80,11 @@ async function fetchAndCheckEtag<ResultType extends object[]>(
|
||||
return data;
|
||||
}
|
||||
|
||||
const modules = import.meta.glob(
|
||||
const modules = import.meta.glob<string>(
|
||||
'../../../../../../node_modules/emojibase-data/**/compact.json',
|
||||
{
|
||||
as: 'url',
|
||||
query: '?url',
|
||||
import: 'default',
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user