Commit Graph

102 Commits

Author SHA1 Message Date
Evan You
769e5555f9 fix(compiler-sfc): fix template usage check edge case for v-on statements
ref: https://github.com/vuejs/vue/issues/12591
2022-07-04 11:49:47 +08:00
Evan You
9734b31c31 fix(sfc): avoid auto name inference leading to unwanted recursion
fix #5965
fix #6027
fix #6029
2022-06-06 17:36:49 +08:00
Evan You
583b625987 fix(compiler-sfc): fix usage detection for types in v-for/v-slot expressions
fix #5959
2022-05-21 00:09:15 +08:00
Evan You
efea4a8b57 fix(ssr/sfc-css-vars): fix v-bind css vars codegen for SSR
fix #5443
close #5444
2022-05-17 09:21:44 +08:00
liulinboyi
a0290fe781 fix(compiler-sfc): add test for #5808 2022-05-13 15:41:49 +08:00
liulinboyi
3b7b107120 fix(compiler-sfc): <script> after <script setup> the script content not end with \\n 2022-05-13 11:04:24 +08:00
Evan You
8a123ac34f fix(compiler-sfc): fix treeshaking of namespace import when used in template
fix #5209
2022-05-12 18:56:54 +08:00
Evan You
ccf92564d3 fix(compiler-sfc): fix template usage check false positives on types
fix #5414
2022-05-12 18:23:10 +08:00
Evan You
410144149f fix(compiler-sfc): defineProps return binding or rest binding should be considered reactive 2022-05-10 17:34:15 +08:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip] 2022-05-09 22:51:51 -04:00
ygj6
16939241b0
fix(compiler-sfc): automatically infer component name from filename when using script setup (#4997)
close #4993
2022-05-09 21:16:28 -04:00
木杉
8e29ef6019
fix(compiler-sfc): handle type modifier in import specifiers (#5498) 2022-04-13 22:10:26 -04:00
Evan You
ae4b0783d7 chore: update repo references 2022-01-18 16:43:59 +08:00
Evan You
fef191fb07 chore: remove stale references of ref-transform 2021-12-23 16:56:36 +08:00
Evan You
7e4f0a8694 fix(compiler-sfc): generate valid TS in script and script setup co-usage with TS
fix #5094
2021-12-12 09:53:52 +08:00
Evan You
198ca14f19 feat(reactivity-transform): $$() escape for destructured prop bindings 2021-12-11 17:50:09 +08:00
Cédric Exbrayat
c17cbdc28f
refactor: use refTransform instead of deprecated refSugar (#4957) 2021-11-25 04:39:36 -05:00
Evan You
d4c04e9799 fix(compiler-sfc): fix props codegen w/ leading import
fix #4764
2021-10-08 12:52:48 -04:00
edison
f66d456b7a
fix(compiler-sfc): support runtime Enum in normal script (#4698) 2021-10-08 11:57:39 -04:00
Evan You
686d0149b6 fix(compiler-core): generate TS-cast safe assignment code for v-model
fix #4655
2021-09-22 16:55:06 -04:00
Evan You
6d6cc90912 fix(compiler-sfc): fix local var access check for bindings in normal script
fix #4644
2021-09-22 10:10:20 -04:00
edison
8055445b68
fix(compiler-sfc): register exported bindings in normal script when using script setup (#4601)
fix #4600
2021-09-16 17:22:29 -04:00
Evan You
cab9541ffd refactor(compiler-sfc): improve TLA codegen 2021-09-16 17:07:29 -04:00
Evan You
39cebf5f7a fix(compiler-sfc): fix TLA codegen semicolon insertion
fix #4596
2021-09-16 16:49:59 -04:00
edison
ae942cdcd9
fix(compiler-sfc): support nested await statements (#4458)
fix #4448
2021-09-16 16:23:46 -04:00
Thorsten Lünborg
bdb1a7958b
fix(compiler-sfc): handle empty strings during template usage analysis of setup bindings (#4608)
fix #4599
2021-09-16 13:47:11 -04:00
ygj6
fcd5422b4a
fix(compile-sfc): add symbol judge in prop type checks. (#4594)
fix #4592
2021-09-16 13:45:55 -04:00
Evan You
a6e5f82d8e fix(compiler-sfc): properly analyze destructured bindings with dynamic keys
fix #4540
2021-09-09 12:28:59 -04:00
webfansplz
fac9a2926d
fix(compile-sfc): support Date prop type with defineProps (#4519) 2021-09-05 18:13:12 -04:00
edison
14d65181f1
fix(compiler-sfc): support using declared interface in normal script with defineProps() (#4522)
fix #4423
2021-09-05 18:10:15 -04:00
edison
5594643d7b
fix(compiler-sfc): fix script setup ref assignment codegen edge case (#4520)
fix #4514
2021-09-05 18:02:50 -04:00
webfansplz
e6fe751b20
fix(compile-sfc): generate setup prop type format error (#4506)
fix #4505
2021-09-05 17:36:46 -04:00
Evan You
bacb2012ac fix(compiler-sfc): ensure script setup generates type-valid ts output
fix #4455
2021-09-02 11:51:41 -04:00
webfansplz
85807967dc
fix(compiler-sfc): generate matching prop types when withDefaults is used (#4466)
fix #4455
2021-09-02 11:26:52 -04:00
Evan You
b89ff9291e fix(compiler-sfc): ensure script setup lang=ts output is tree-shakable 2021-09-01 12:40:36 -04:00
klwf
98263821f8
fix(compiler-sfc): fix <script> and <script setup> co-usage ordering edge case (#4419)
Fix: #4395
Fix: #4376
2021-08-23 19:02:54 -04:00
lidlanca
4792ebd687
fix(compiler-sfc): fix 'export default' rewrite with extra whitespaces (#4375) 2021-08-23 18:40:16 -04:00
Evan You
872b3f7ec5 fix(compiler-sfc): should also expose regular script block bindings when <script setup> is used
close #4369
2021-08-17 15:52:48 -04:00
Evan You
57f10812cc fix(compiler-sfc): fix import usage check for lowercase imported components
fix #4358
2021-08-17 10:10:26 -04:00
Evan You
f855ccb2c1 fix(compiler-sfc): fix import usage check in template strings in expressions
fix #4340
2021-08-16 18:03:09 -04:00
webfansplz
ad66295cb3
fix(defineProps): defineProps generates unnecessary array of same types (#4353)
fix #4352
2021-08-16 17:40:00 -04:00
Evan You
1e1682f060 fix(compiler-sfc): fix import usage check for last expression 2021-08-09 16:22:20 -04:00
Evan You
88a4504e82 fix(compiler-sfc): fix import usage detection for names containing $
fix #4274
2021-08-09 12:17:22 -04:00
Evan You
f0ca233d8b refactor(compiler-sfc): improve script setup import expose heuristics 2021-07-22 12:53:08 -04:00
Evan You
5a3ccfd914 feat(compiler-sfc): avoid exposing imports not used in template
close #3183
2021-07-22 12:04:46 -04:00
Evan You
93a950d60d fix(compiler-sfc): support const enum 2021-07-19 17:31:13 -04:00
edison
f7607d3a15
fix(compiler-sfc): defineProps infer TSParenthesizedType (#4147) 2021-07-19 11:09:24 -04:00
Evan You
e66a493da1 refactor: remove deprecated defineEmit() support 2021-07-16 14:30:49 -04:00
Evan You
f596e008ef refactor: remove deprecated scopeId codegen
BREAKING CHANGE: Output of SFC using `<style scoped>` generated by 3.2+
will be incompatible w/ runtime <3.2.
2021-07-16 14:30:49 -04:00
Evan You
03e26845e2 fix(sfc): fix <script setup> async context preservation logic
fix #4050
2021-07-06 14:31:53 -04:00