From 00e0766934cf8c9d145845b53514e532c84e32c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Sat, 10 Jun 2023 17:08:02 +0800 Subject: [PATCH 01/16] refactor(shared): merge if statements (#8394) --- packages/shared/src/normalizeProp.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/shared/src/normalizeProp.ts b/packages/shared/src/normalizeProp.ts index 6a1dd20e3..10d54c6b5 100644 --- a/packages/shared/src/normalizeProp.ts +++ b/packages/shared/src/normalizeProp.ts @@ -19,9 +19,7 @@ export function normalizeStyle( } } return res - } else if (isString(value)) { - return value - } else if (isObject(value)) { + } else if (isString(value) || isObject(value)) { return value } } From e78c223b30fb0ca8241661df77630cb178ea4382 Mon Sep 17 00:00:00 2001 From: zqran <215244947@qq.com> Date: Sat, 10 Jun 2023 17:09:44 +0800 Subject: [PATCH 02/16] chore: fix typo (#8392) --- packages/dts-test/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dts-test/README.md b/packages/dts-test/README.md index 2ac0b80ab..197005a56 100644 --- a/packages/dts-test/README.md +++ b/packages/dts-test/README.md @@ -4,4 +4,4 @@ Tests Typescript types to ensure the types remain as expected. - This directory is included in the root `tsconfig.json`, where package imports are aliased to `src` directories, so in IDEs and the `pnpm check` script the types are validated against source code. -- When running `tsc` with `packages/dts-test/tsconfig.test.json`, packages are resolved using using normal `node` resolution, so the types are validated against actual **built** types. This requires the types to be built first via `pnpm build-types`. +- When running `tsc` with `packages/dts-test/tsconfig.test.json`, packages are resolved using normal `node` resolution, so the types are validated against actual **built** types. This requires the types to be built first via `pnpm build-types`. From 23c81691d9f722763ee0d74d4c0aa480ca973fbe Mon Sep 17 00:00:00 2001 From: Vadim Date: Sat, 10 Jun 2023 12:10:20 +0300 Subject: [PATCH 03/16] chore: fix typo (#7416) --- packages/compiler-sfc/src/compileScript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 6f096ff3e..2c15b7f49 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -274,7 +274,7 @@ export function compileScript( const scriptAst = ctx.scriptAst const scriptSetupAst = ctx.scriptSetupAst! - // 1.1 walk import delcarations of