Skip to content

Commit 2858799

Browse files
committed
use esnext/bundler
1 parent e9439c9 commit 2858799

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
],
88
"compilerOptions": {
99
"target": "es2020",
10-
"module": "nodenext",
10+
"module": "esnext",
11+
"moduleResolution": "bundler",
1112
"lib": ["dom", "dom.iterable", "dom.asynciterable", "esnext"],
1213
"allowImportingTsExtensions": true,
1314
"allowJs": true,

vitest.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {defineConfig} from 'vitest/config';
2-
import vuePlugin from '@vitejs/plugin-vue';
2+
import {default as vuePlugin} from '@vitejs/plugin-vue';
33
import {stringPlugin} from 'vite-string-plugin';
44

55
export default defineConfig({
@@ -16,7 +16,6 @@ export default defineConfig({
1616
},
1717
plugins: [
1818
stringPlugin(),
19-
// @ts-expect-error TS2351: This expression is not callable, only happens with vue-tsc
2019
vuePlugin(),
2120
],
2221
});

web_src/js/features/captcha.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isDarkTheme} from '../utils.ts';
1+
import {isDarkTheme} from '../utils';
22

33
export async function initCaptcha() {
44
const captchaEl = document.querySelector('#captcha');

web_src/js/modules/tippy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export function createTippy(target: Element, opts: TippyOpts = {}): Instance {
1616
// because we should use our own wrapper functions to handle them, do not let the user override them
1717
const {onHide, onShow, onDestroy, role, theme, arrow, ...other} = opts;
1818

19-
// @ts-expect-error: wrong type derived by typescript
2019
const instance: Instance = tippy(target, {
2120
appendTo: document.body,
2221
animation: false,

0 commit comments

Comments
 (0)