Fix deprecation warning in Vite (#36849)
This commit is contained in:
@@ -80,10 +80,11 @@ async function fetchAndCheckEtag<ResultType extends object[]>(
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
const modules = import.meta.glob(
|
const modules = import.meta.glob<string>(
|
||||||
'../../../../../node_modules/emojibase-data/**/compact.json',
|
'../../../../../node_modules/emojibase-data/**/compact.json',
|
||||||
{
|
{
|
||||||
as: 'url',
|
query: '?url',
|
||||||
|
import: 'default',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user