From 30ec48ecab3587fa44065fc877f8806dbf6b8ec0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 8 Dec 2024 10:31:51 +0100 Subject: [PATCH] Change typescript module to nodenext --- tsconfig.json | 3 +-- web_src/js/utils/match.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 744f1511e951c..e006535c02ca2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,8 +7,7 @@ ], "compilerOptions": { "target": "es2020", - "module": "node16", - "moduleResolution": "node16", + "module": "nodenext", "lib": ["dom", "dom.iterable", "dom.asynciterable", "esnext"], "allowImportingTsExtensions": true, "allowJs": true, diff --git a/web_src/js/utils/match.ts b/web_src/js/utils/match.ts index 274c9322ffac6..af669116a2738 100644 --- a/web_src/js/utils/match.ts +++ b/web_src/js/utils/match.ts @@ -1,4 +1,4 @@ -import emojis from '../../../assets/emoji.json'; +import emojis from '../../../assets/emoji.json' with {type: 'json'}; import {GET} from '../modules/fetch.ts'; import type {Issue} from '../types.ts';