Commit Graph

65 Commits

Author SHA1 Message Date
Evan You 51d57b4566 perf(compiler): minor perf tweaks 2019-11-15 16:47:55 -05:00
Evan You 1c0a2c6d41 refactor(compiler): use shorter helpers for text and comment nodes 2019-10-24 17:55:00 -04:00
Evan You af5a8e1154 feat(compiler-core): re-implement v-once to use cache mechanism 2019-10-23 17:57:40 -04:00
Evan You 052febc127 feat(compiler): convert text mixed with elements into createVNode calls
This ensures they are tracked as dynamic children when inside blocks.
Also guaruntees compiled vnodes always have vnode children in arrays
so that they can skip normalizeVNode safely in optimized mode.
2019-10-21 15:52:29 -04:00
Evan You 869ae19c41 fix(compiler): cache handlers should be per-instance, fix hoist w/ cached handlers 2019-10-20 17:00:11 -04:00
Evan You 58593c4714 feat(v-on): cache handlers 2019-10-18 21:51:34 -04:00
HcySunYang 4587f4f7c9 chore: consistent call to the newline function (#222) 2019-10-12 10:30:39 -04:00
Illya Klymov 584ac88b54 fix(compiler): update v-if directive to use Comment instead of Empty (#208) 2019-10-11 11:04:55 -04:00
Evan You d376439167 wip(compiler-dom): v-model runtime 2019-10-10 18:02:51 -04:00
Evan You bfecf2cdce refactor(compiler): use symbols for runtime helpers 2019-10-05 22:48:13 -04:00
Andrey Sukhonosov de9507b6ff fix(compiler/codegen): add simple expression node opening bracket for ConditionalExpression (#110) 2019-10-05 15:42:49 -04:00
Carlos Rodrigues 23ff681418 chore: fix comment typos (#94) 2019-10-05 10:35:19 -04:00
zrh122 12abcba2c5 chore: fix typo in codegen (#92) 2019-10-05 10:29:50 -04:00
Evan You 0873254c6c workflow: improve template explorer 2019-10-04 17:43:20 -04:00
Evan You 277651ce89 fix(compiler): avoid hoisting components and directive calls 2019-10-04 14:34:26 -04:00
Evan You 095f5edf8d feat(compiler): hoist static trees 2019-10-03 23:30:25 -04:00
Evan You fc47029ed3 feat(compiler): support v-for on named slots 2019-10-02 23:10:41 -04:00
Evan You 24bd6c27e0 feat(compiler): block optimization codegen for RootNode 2019-10-02 13:11:07 -04:00
Evan You 3a95a2f148 fix(compiler): generate correct fragment children when it contains single text node or slot outlet 2019-10-01 23:53:52 -04:00
Evan You a477594d65 feat(compiler): v-for codegen w/ correct blocks optimization + key flags 2019-10-01 23:19:48 -04:00
Evan You e5bc17967d wip(compiler): codegen node w/ block optimization for v-for 2019-10-01 16:48:20 -04:00
Evan You ed111cd37b test(compiler): tests for vIf codegen w/ blocks optimization 2019-10-01 15:05:08 -04:00
Evan You 5de744d4e1 wip(compiler): generate blocks for v-if 2019-10-01 12:25:29 -04:00
Evan You e31fb3c172 wip: Sequence & Conditional expressions for AST 2019-10-01 12:25:29 -04:00
Evan You d67418002f feat(compiler): generate patchFlags for runtime 2019-09-30 21:17:12 -04:00
Evan You e5e40e1e38 feat(compiler): optimize text by merging adjacent nodes 2019-09-30 14:52:10 -04:00
Evan You 389a07835c feat(compiler): handle complex destructure expressions in v-for 2019-09-28 16:02:08 -04:00
Evan You 798a9cbe9b test: improve coverage 2019-09-28 14:15:10 -04:00
Evan You 262be6733c wip(compiler): tweak codegen, avoid duplicated asset resolution, improve formatting 2019-09-27 22:49:20 -04:00
Evan You 32666c7708 feat(compiler): transform component slots 2019-09-27 22:25:32 -04:00
Evan You ee66ce78b7 feat(compiler): transform slot outlets 2019-09-27 20:29:20 -04:00
Evan You d900c13efb refactor(compiler): separate Interpolation, SimpleExpression & CompoundExpression types 2019-09-27 11:42:02 -04:00
Evan You d491a022a7 refactor(compiler): provide context.resetMapping() 2019-09-27 09:25:52 -04:00
Rahul Kadyan a407b16b2b fix(compiler): generate correct mappings for v-for and object properties (#69) 2019-09-27 09:19:03 -04:00
Evan You 63b6902bdb feat(compiler): correct source map generation 2019-09-26 14:55:53 -04:00
Evan You 3bba461128 feat(compiler): include names in source map 2019-09-26 10:14:02 -04:00
Evan You ac7587fdb5 test: compiler integration tests 2019-09-25 22:29:37 -04:00
Evan You 6c8f226a79 fix: fix source map by fixing advancePositionWithMutation 2019-09-25 19:17:45 -04:00
Evan You ff2313e43a wip(compiler): adjust statement positions 2019-09-25 15:09:58 -04:00
Evan You b43f3b61b7 feat(compiler): transformStyle + context.hoist 2019-09-25 14:13:33 -04:00
Evan You 3e8cd3f25f wip(compiler): property deduping 2019-09-25 12:39:46 -04:00
Evan You f79433cbb3 feat(compiler): include ast in compile result 2019-09-25 09:23:34 -04:00
Evan You 84909648e7 test: tests for v-on transform 2019-09-24 22:39:20 -04:00
Evan You cae03f616d test: improve coverage 2019-09-24 16:35:01 -04:00
Evan You 7a46e51815 test: tests for codegen 2019-09-24 15:49:02 -04:00
Evan You 4a82e7cdbc wip: test for transformExpression 2019-09-24 12:13:08 -04:00
Evan You dcf4764360 test: test transformElements 2019-09-23 20:45:40 -04:00
Evan You b3b67b8c7d feat(compiler): ensure interpolation expressions are wrapped with toString() 2019-09-23 15:36:30 -04:00
Evan You 88e5e96a3e refactor: useWith -> prefixIdentifiers 2019-09-23 13:29:52 -04:00
Evan You e57cb51066 feat(compiler): expression prefixing + v-for scope analysis 2019-09-23 13:29:52 -04:00