Commit Graph

67 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng 6e80e34e6b
perf(compiler-vapor): register as operations if no dynamic expressions 2024-02-08 20:50:34 +08:00
三咲智子 Kevin Deng 8fb01504da
refactor(compiler-vapor): remove ir expression 2024-02-08 20:30:51 +08:00
三咲智子 Kevin Deng 99da2e5abe
refactor(compiler-vapor): remove runtime fragment
returns array directly
2024-02-07 17:29:04 +08:00
三咲智子 Kevin Deng 823e47ca62
refactor(compiler-vapor): simplify register template 2024-02-07 16:45:06 +08:00
三咲智子 Kevin Deng 14813cec1e
refactor(compiler-vapor): combine interpolation & text 2024-02-07 04:29:53 +08:00
三咲智子 Kevin Deng 2229d3ce20
fix(compiler-vapor): treat attribute as dynamic if has dynamic key prop 2024-02-05 03:28:32 +08:00
ygj6 d573a3d2f2
feat: support v-bind="{}" (#106)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-02-05 02:44:30 +08:00
三咲智子 Kevin Deng 21bec835f0
refactor(compiler-vapor): extract imports & unify context name 2024-01-31 18:00:16 +08:00
三咲智子 Kevin Deng 4062c6805a
refactor(compiler-vapor): remove loc in IR 2024-01-31 17:37:54 +08:00
三咲智子 Kevin Deng 681dc5d954
feat(compiler-vapor): v-for (#101) 2024-01-31 17:00:19 +08:00
三咲智子 Kevin Deng 38a06394f7
refactor(compiler-vapor): rename dynamicFlags to flags 2024-01-30 22:52:42 +08:00
三咲智子 Kevin Deng d7ab873f1e
refactor(compiler-vapor): remove unnecessary DynamicFlag.INSERT 2024-01-30 06:12:01 +08:00
三咲智子 Kevin Deng 48d2aa3bcb
fix(compiler-vapor): handle no template 2024-01-29 23:06:21 +08:00
三咲智子 Kevin Deng ed9368c06c
refactor(compiler-vapor): make dynamic.children an array 2024-01-29 22:28:40 +08:00
三咲智子 Kevin Deng 79636ddc5b
refactor(compiler-vapor): dynamicFlag 2024-01-29 22:08:57 +08:00
Rizumu Ayaka 63a127b612
feat(compiler-vapor): `v-else` / `v-else-if` (#98)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-29 03:42:56 +08:00
三咲智子 Kevin Deng 63aacf6194
style: respect root prettier config 2024-01-29 03:11:30 +08:00
三咲智子 Kevin Deng 86ed0eddae
perf(compiler-vapor): use array instead of regex 2024-01-28 03:35:04 +08:00
三咲智子 Kevin Deng d3baff92b1
fix(compiler-vapor): don't mutate ast 2024-01-28 03:32:27 +08:00
三咲智子 Kevin Deng 9c9e9b2862
refactor(compiler-vapor): dedpue fragment 2024-01-28 01:39:21 +08:00
Rizumu Ayaka ede6c29434
feat(compiler-vapor): `v-if` (#96)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-01-28 01:31:20 +08:00
三咲智子 Kevin Deng 164fd90df4
refactor(compiler-vapor): codegen result 2024-01-27 22:00:34 +08:00
Rizumu Ayaka dce55475a5
style: fix lint errors in vapor 2023-12-29 22:05:33 +08:00
三咲智子 Kevin Deng 8786c076d9
perf(compiler-vapor): combine effect 2023-12-07 01:11:25 +08:00
三咲智子 Kevin Deng f644ed4081
feat: compound expression for v-bind 2023-12-06 00:17:16 +08:00
三咲智子 Kevin Deng 3474e06542
fix: exclude compund expression type 2023-12-06 00:17:16 +08:00
三咲智子 Kevin Deng 21e7a37865
refactor: extract transformInterpolation 2023-12-03 14:52:11 +08:00
白雾三语 28caf8f566
feat: v-on modifiers support native options and keyboards (#28)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-12-03 03:49:44 +08:00
三咲智子 Kevin Deng 5a424218f1
feat: DirectiveTransform 2023-12-03 01:43:31 +08:00
三咲智子 Kevin Deng 03344eea7e
refactor: transformElement 2023-12-02 16:59:43 +08:00
Rizumu Ayaka 886d16f458
feat: implement error handling for v-html (#30) 2023-12-02 15:59:09 +08:00
三咲智子 Kevin Deng f2512b5319
refactor: error 2023-12-02 00:18:27 +08:00
三咲智子 Kevin Deng 2f029b659c
refactor: process expression 2023-12-01 23:30:21 +08:00
三咲智子 Kevin Deng 9843175c2c
feat: push codegen 2023-12-01 22:12:19 +08:00
三咲智子 Kevin Deng 0d9f0867d7
refactor(compiler-vapor): errors 2023-12-01 08:05:43 +08:00
三咲智子 Kevin Deng cfd6d40d72
feat(compiler-vapor): node transform 2023-12-01 07:42:43 +08:00
三咲智子 Kevin Deng 5957c18a0b
fix(compiler-vapor): prefix identifiers 2023-12-01 06:01:25 +08:00
ubugeeei 503615a31e
feat(compiler): v-on event modifier (#8) 2023-11-30 05:11:59 +08:00
三咲智子 Kevin Deng da931ea942
refactor: use enum 2023-11-29 22:09:46 +08:00
Jeff Yang 0ff307988a
chore: fix typo in compiler-vapor (#10) 2023-11-29 20:54:45 +08:00
三咲智子 Kevin Deng 4549e28665
fix: playground 2023-11-29 02:38:01 +08:00
Rizumu Ayaka 4200d4e2d0
feat: add vapor errors of `v-bind` / `v-on` (#3)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2023-11-28 18:17:41 +08:00
三咲智子 Kevin Deng c53af4d57d
refactor: extract dynamicChildren 2023-11-27 14:16:11 +08:00
三咲智子 Kevin Deng 339a658cef
fix: use parser from runtime-dom 2023-11-27 14:13:09 +08:00
三咲智子 Kevin Deng 0867ca0139
feat: add size report for compiler vapor 2023-11-27 07:16:24 +08:00
三咲智子 Kevin Deng 71cf732d6d
feat: append & prepend multiple elements 2023-11-27 06:22:10 +08:00
三咲智子 Kevin Deng 07373d41fd
feat: append multiple node 2023-11-27 05:16:21 +08:00
三咲智子 Kevin Deng 12187fbc85
feat: dynamic root nodes 2023-11-26 03:53:47 +08:00
三咲智子 Kevin Deng 9602cd2011
feat: add api for document.createTextNode 2023-11-26 03:12:02 +08:00
三咲智子 Kevin Deng 45858c085d
fix: static + dynamic root nodes 2023-11-26 03:08:35 +08:00