chore(build): update compiler target to support import.meta (#1112)

This commit is contained in:
Stefan Dej authored and GitHub committed 2022-10-08 22:46:20 +02:00
1 parent 835c5dacd2
commit d05efe26c4
2 files changed
+3 -3

No files matched your search

@@ -349,8 +349,8 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin) {
}
get availableLanguages() {
const locales = import.meta.globEager('../../locales/*.json')
const languages: any = []
const locales = import.meta.glob('../../locales/*.json', { eager: true }) as { [key: string]: any }
const languages: { text: string; value: string }[] = []
Object.keys(locales).map((file: string) => {
const langKey = file.slice(file.lastIndexOf('.') - 2, file.lastIndexOf('.'))
+1 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2018", // es2018 is safari 12+
"target": "es2020",
"module": "esnext",
"strict": true,
"jsx": "preserve",