Commit Graph

76 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng e91dde5d22
refactor(compiler-vapor): don't reference root element 2024-02-23 14:03:21 +08:00
三咲智子 Kevin Deng d7bd6c99da
refactor(compiler-vapor): generate fragment for only one element
closes #133
2024-02-23 00:52:02 +08:00
三咲智子 Kevin Deng 004edd3bac
refactor(compiler-vapor): move `templateIndex` to dynamic 2024-02-22 11:46:40 +08:00
三咲智子 Kevin Deng 0e0ee5b85e
refactor(compiler-vapor): split block & root ir node 2024-02-22 11:30:29 +08:00
三咲智子 Kevin Deng fa0ca8a5af
refactor(compiler-vapor): required returns 2024-02-22 00:18:19 +08:00
三咲智子 Kevin Deng 66c0e82d4b
refactor(compiler-vapor): remove template ir node 2024-02-21 17:43:52 +08:00
三咲智子 Kevin Deng edaa3a0649
refactor(compiler-vapor): re-organize 2024-02-09 02:40:01 +08:00
三咲智子 Kevin Deng 985d4c7422
refactor: return only one node from children helper 2024-02-08 23:03:42 +08:00
三咲智子 Kevin Deng 697102f796
feat(compiler-vapor): resolve dynamic expression 2024-02-08 21:56:30 +08:00
三咲智子 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