mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 改变非移动端前端编译目标为 es2021 (#7770)
* chore: target: es2021 * revert * revert
This commit is contained in:
parent
1ee301a407
commit
b0b5d209ab
4 changed files with 6 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"outDir": "./dist/",
|
||||
"noImplicitAny": true,
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"target": "es2021",
|
||||
"typeRoots": [
|
||||
"./node_modules/@types"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -48,6 +48,9 @@ module.exports = (env, argv) => {
|
|||
use: [
|
||||
{
|
||||
loader: "esbuild-loader",
|
||||
options: {
|
||||
target: "es2021",
|
||||
},
|
||||
},
|
||||
{
|
||||
loader: "ifdef-loader", options: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue