web: Set "type": "module" and convert various CJS files to ESM.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-12 15:59:12 -08:00
committed by Tim Abbott
parent 905fc3b50e
commit 01540b45b0
16 changed files with 77 additions and 92 deletions

View File

@@ -12,7 +12,8 @@
/* Modules */
"allowImportingTsExtensions": true,
"moduleResolution": "node",
"module": "preserve",
"moduleResolution": "bundler",
"paths": {
"*": ["./web/src/types/*"],
},