Commit Graph

41 Commits

Author SHA1 Message Date
Evan You d2c3d8b70b perf(compiler-sfc): lazy require typescript 2023-06-15 16:38:44 +08:00
edison 4fa8da8576
fix(compiler-sfc): support resolve multiple re-export /w same source type name (#8365)
close #8364
2023-05-19 07:45:28 +08:00
Evan You 5aec717a24 fix(compiler-sfc): handle imported types from default exports
close #8355
2023-05-18 16:15:27 +08:00
三咲智子 Kevin Deng b133e0fd97
fix(compiler-sfc): support defineEmits type reference with unions (#8299)
close #7943
2023-05-18 12:59:12 +08:00
Evan You fab9c72780 fix(compiler-sfc): fix type import from path aliased vue file
close #8348
2023-05-18 12:50:47 +08:00
三咲智子 Kevin Deng 8ec73a3aea
fix(compiler-sfc): don't hoist regexp literial (#8300) 2023-05-18 11:09:40 +08:00
Evan You b36addd3bd fix(compiler-sfc): handle ts files with relative imports with .js extension
close #8339
2023-05-17 10:14:44 +08:00
Evan You 82350721a4 fix(compiler-sfc): raise specific warning for failed extends and allow ignoring extends
ref #8286
2023-05-12 13:17:55 +01:00
Evan You f25bd37c67 fix(compiler-sfc): fix regression on props destructure when transform is not enabled
close #8289
2023-05-12 12:53:36 +01:00
白雾三语 690ef29635
fix(compiler-sfc): handle prop keys that need escaping (#7803)
close #8291
2023-05-12 18:24:59 +08:00
Evan You aa1e77d532 fix(compiler-sfc): properly parse d.ts files when resolving types
close #8285
2023-05-12 11:08:29 +01:00
Cédric Exbrayat ab9256a4bb
chore: fix typos in defineOptions (#8277) 2023-05-11 19:34:27 +08:00
Evan You 6b194bcf3b fix(compiler-sfc): fix built-in type resolving in external files
close #8244
2023-05-08 12:30:19 +08:00
Evan You 4e2607a3d3 chore: move files into correct test block 2023-05-01 14:01:38 +08:00
Evan You 1c0be5c744 feat(compiler-sfc): support project references when resolving types
close #8140
2023-04-25 16:30:11 +08:00
Evan You a370e8006a perf(compiler-sfc): infer ref binding type for more built-in methods 2023-04-25 09:29:30 +08:00
Evan You 433a58ccb6 fix(compiler-sfc): props bindings should not override user declared bindings
fix #8148
2023-04-25 09:21:14 +08:00
Evan You 2d9f6f9264 fix(compiler-sfc): avoid all hard errors when inferring runtime type 2023-04-21 16:48:21 +08:00
edison 1d1d728949 feat(compiler-sfc): improve utility type Partial and Required (#8103) 2023-04-20 21:17:10 +08:00
Evan You 50c0bbe522 feat(compiler-sfc): support ExtractPropTypes when resolving types
close #8104
2023-04-20 21:02:50 +08:00
Evan You 4496456d7d feat(compiler-sfc): support dynamic imports when resolving types 2023-04-20 16:18:35 +08:00
Evan You 7c3ca3cc3e feat(compiler-sfc): support export * when resolving types 2023-04-20 15:56:24 +08:00
Evan You d53e157805 fix(compiler-sfc): handle type merging + fix namespace access when inferring type
close #8102
2023-04-20 14:13:08 +08:00
Evan You 0f77a2b1d1 fix(compiler): fix expression codegen for literal const bindings in non-inline mode 2023-04-18 11:39:53 +08:00
Evan You 4e028b9669 feat(compiler-sfc): support specifying global types for sfc macros
ref: https://github.com/vuejs/core/pull/8083#issuecomment-1508468713
2023-04-16 15:49:41 +08:00
Evan You 6b13e04b4c feat(compiler-sfc): mark props destructure as experimental and require explicit opt-in 2023-04-15 22:09:08 +08:00
Evan You 760755f4f8 feat(compiler-sfc): support string/number indexed types in macros 2023-04-15 22:08:39 +08:00
Evan You 8d8ddd686c feat(compiler-sfc): expose type import deps on compiled script block 2023-04-15 22:08:39 +08:00
Evan You 075498c959 refactor: avoid hard error when inferring runtime type 2023-04-15 22:08:39 +08:00
Evan You 34a007d00d test: refactor resolveType test 2023-04-15 22:08:39 +08:00
Evan You 3982bef533 feat(compiler-sfc): support resolving type imports from modules 2023-04-15 22:08:39 +08:00
Evan You 8451b92a7a wip: cache fileToScope + improve vue file offset 2023-04-15 22:08:39 +08:00
Evan You c93c11710e refactor: improve type resolve error output 2023-04-15 22:08:39 +08:00
Evan You 8aa4ea81d6 feat(compiler-sfc): support relative imported types in macros 2023-04-15 22:08:39 +08:00
Evan You 5ff40bb0dc feat(compiler-sfc): support namespace members type in macros 2023-04-13 12:32:52 +08:00
Evan You 3f779ddbf8 feat(compiler-sfc): support string indexed type in macros 2023-04-13 11:21:09 +08:00
Evan You 51773d5d1d refactor: adjust ResolvedElements shape 2023-04-13 10:42:15 +08:00
Evan You 1cfab4c695 feat(compiler-sfc): support limited built-in utility types in macros 2023-04-13 10:28:22 +08:00
Evan You fb8ecc803e feat(compiler-sfc): support mapped types, string types & template type in macros 2023-04-13 09:59:54 +08:00
Evan You d1f973bff8 feat(compiler-sfc): support intersection and union types in macros
close #7553
2023-04-12 21:34:13 +08:00
Evan You a6dedc33ba test: split compileScript macro tests 2023-04-12 16:46:26 +08:00