From e85054879e34617f98c03c736ec3ce9737c3fb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kiner-tang=28=E6=96=87=E8=BE=89=29?= <1127031143@qq.com> Date: Tue, 26 Sep 2023 11:39:04 +0800 Subject: [PATCH] chore: enable resolvePackageJsonExports (#45085) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: enable resolvePackageJsonExports * Update package.json Co-authored-by: Amumu Signed-off-by: kiner-tang(文辉) <1127031143@qq.com> --------- Signed-off-by: kiner-tang(文辉) <1127031143@qq.com> Co-authored-by: Amumu --- package.json | 2 +- tsconfig.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 952e2025b0..379edf9ae5 100644 --- a/package.json +++ b/package.json @@ -237,7 +237,7 @@ "fetch-jsonp": "^1.1.3", "fs-extra": "^11.0.0", "gh-pages": "^6.0.0", - "glob": "10.3.6", + "glob": "^10.3.7", "html2sketch": "^1.0.0", "http-server": "^14.0.0", "husky": "^8.0.1", diff --git a/tsconfig.json b/tsconfig.json index d04de09c99..bfa157a5c7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ }, "strictNullChecks": true, "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "Bundler", "esModuleInterop": true, "experimentalDecorators": true, "jsx": "react", @@ -22,7 +22,8 @@ "target": "es6", "lib": ["dom", "es2017"], "skipLibCheck": true, - "stripInternal": true + "stripInternal": true, + "resolvePackageJsonExports": true }, "include": [".dumirc.ts", "**/*"], "exclude": ["node_modules", "lib", "es"]