From 1d8702e95f541ebc79a80d15bd595a60598cac87 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 16 Mar 2021 11:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=AF=E5=BE=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 9 +++++++++ jsconfig.json | 20 +++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..4ff61fa174 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "path-intellisense.mappings": { + "@main/*": "${workspaceFolder}/src/main/*", + "@renderer/*": "${workspaceFolder}/src/renderer/*", + "@lyric/*": "${workspaceFolder}/src/renderer-lyric/*", + "@static/*": "${workspaceFolder}/src/static/*", + "@common/*": "${workspaceFolder}/src/common/*", + } +} diff --git a/jsconfig.json b/jsconfig.json index aa3964b192..ca2d0131d2 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,19 +1,13 @@ { "compilerOptions": { - "module": "commonjs", - "target": "es6", - // This is the line you want to add - "allowSyntheticDefaultImports": true, - - "baseUrl": ".", + "baseUrl": "./", "paths": { - "@main": ["src/main"], - "@renderer": ["src/renderer"], - "@lyric": ["src/renderer-lyric"], - "@static": ["src/static"], - "@common": ["src/common"], + "@main/*": ["src/main/*"], + "@renderer/*": ["src/renderer/*"], + "@lyric/*": ["src/renderer-lyric/*"], + "@static/*": ["src/static/*"], + "@common/*": ["src/common/*"], } }, - "include": ["src/**/*"], - "exclude": ["node_modules/**/*"] + "exclude": ["node_modules", "build", "dist"] }