From 26c5e53c53df3df9aa46769a6fdd9a84fe21fbd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=89=AF=E4=BB=94?= <32487868+cijiugechu@users.noreply.github.com> Date: Fri, 24 Mar 2023 20:23:38 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E5=8F=98=E9=9D=9E=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E5=89=8D=E7=AB=AF=E7=BC=96=E8=AF=91=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E4=B8=BA=20`es2021`=20(#7770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: target: es2021 * revert * revert --- app/src/card/viewCards.ts | 2 +- app/src/layout/Wnd.ts | 2 +- app/tsconfig.json | 2 +- app/webpack.config.js | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.ts index 0f2ae296c..16044ff07 100644 --- a/app/src/card/viewCards.ts +++ b/app/src/card/viewCards.ts @@ -163,7 +163,7 @@ const renderViewItem = (blocks: IBlock[], title: string, deckType: string) => { pathArray.splice(0, 1); blocks.forEach((item: IBlock) => { if (item.type) { - let hPath + let hPath; if (deckType === "") { hPath = getNotebookName(item.box) + getDisplayName(Lute.UnEscapeHTMLStr(item.hPath), false); } else { diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts index fa7342245..0a42f2b6d 100644 --- a/app/src/layout/Wnd.ts +++ b/app/src/layout/Wnd.ts @@ -12,7 +12,7 @@ import {Tab} from "./Tab"; import {Model} from "./Model"; import {Editor} from "../editor"; import {Graph} from "./dock/Graph"; -import {hasClosestByAttribute, hasClosestByClassName, hasClosestByTag} from "../protyle/util/hasClosest"; +import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest"; import {Constants} from "../constants"; /// #if !BROWSER import {webFrame, ipcRenderer} from "electron"; diff --git a/app/tsconfig.json b/app/tsconfig.json index 05f6b94ca..3add41bd0 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -3,7 +3,7 @@ "outDir": "./dist/", "noImplicitAny": true, "module": "commonjs", - "target": "es6", + "target": "es2021", "typeRoots": [ "./node_modules/@types" ], diff --git a/app/webpack.config.js b/app/webpack.config.js index c9c6895fd..edb85e9f6 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -48,6 +48,9 @@ module.exports = (env, argv) => { use: [ { loader: "esbuild-loader", + options: { + target: "es2021", + }, }, { loader: "ifdef-loader", options: {