From 263bb327aa1e69b0e06981231a34822a9a10ceff Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sat, 26 Oct 2024 22:47:25 +0800 Subject: [PATCH] fix --- tsconfig.json | 3 ++- tsconfig.node.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tsconfig.node.json diff --git a/tsconfig.json b/tsconfig.json index efc7755..d32ad78 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,5 +14,6 @@ "noEmit": true, "types": ["naive-ui/volar"] }, - "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], + "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..d858fc0 --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "module": "ESNext", + "moduleResolution": "Node", + "allowSyntheticDefaultImports": true + }, + "include": ["rsbuild.config.ts"] +}