Commit Graph

35 Commits

Author SHA1 Message Date
Evan You
825ec1500f fix(compiler-core): support static slot names containing dots for 2.x compat
close #1241
2020-06-12 16:09:27 -04:00
Evan You
0d26413433 fix(compiler-core): fix parsing for directive with dynamic argument containing dots 2020-06-12 15:59:13 -04:00
Evan You
e58beecc97 refactor(compiler/types): convert compiler options documentation to jsdoc
BREAKING CHANGE: `getTextMode` compiler option signature has changed from

  ```ts
  (tag: string, ns: string, parent: ElementNode | undefined) => TextModes
  ```

  to

  ```ts
  (node: ElementNode, parent: ElementNode | undefined) => TextModes
  ```
2020-05-07 11:01:36 -04:00
扩散性百万甜面包
70c8c58be2
test(compiler-core): expect onError to be called (#976) 2020-04-17 08:58:38 -04:00
Evan You
1f6e72b110 fix(compiler): support full range of entity decoding in browser builds
BREAKING CHANGE: compiler options have been adjusted.
    - new option `decodeEntities` is added.
    - `namedCharacterReferences` option has been removed.
    - `maxCRNameLength` option has been rmeoved.
2020-04-08 18:51:25 -04:00
Evan You
b8ffbffaf7 feat(compiler-core): support v-is
see https://github.com/vuejs/rfcs/pull/149 for details
2020-03-27 16:38:31 -04:00
Evan You
34e61197c7 refactor(compiler-core): improve template type handling 2020-01-31 17:20:52 -05:00
Evan You
730d329f79 fix(compiler-core): relax error on unknown entities
close #663
2020-01-29 12:16:58 -05:00
Evan You
90ddb7c260 refactor: expose parse in compiler-dom, improve sfc parse error handling 2019-12-22 19:44:21 -05:00
Evan You
94d692b0cf test: fix tests after missing end tag error location fix 2019-12-20 10:10:08 -05:00
Evan You
75113c8d3e test: fix tests 2019-12-14 22:28:54 -05:00
Evan You
5cd1495767 refactor(compiler-core): centralize compiler options 2019-12-10 12:53:26 -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
eb20730a67 feat(compiler): preserve whitespace in pre tag, add tests 2019-10-24 16:42:09 -04:00
Evan You
9298f46f92 feat(compiler-core): whitespace handling 2019-10-24 16:22:48 -04:00
大江东去
bb9dca2047 test(compiler-core): add test for custom delimiter (#315) 2019-10-17 15:04:52 -04:00
月迷津渡
f71bf2f1d3 feat: add isCustomElement option (#299) 2019-10-15 17:30:47 -04:00
HcySunYang
68a3879b88 feat(compiler-core): more hoisting optimizations (#276) 2019-10-15 11:41:24 -04:00
月迷津渡
78f60347dc feat(compiler): add isNativeTag option for determining element type (#139) 2019-10-10 14:54:06 -04:00
Evan You
5dfb271551 feat(compiler): implement support for v-pre 2019-10-09 16:00:08 -04:00
Evan You
798a9cbe9b test: improve coverage 2019-09-28 14:15:10 -04:00
Evan You
1c410205de test(compiler): test v-slot transform 2019-09-28 14:05:10 -04:00
Evan You
d900c13efb refactor(compiler): separate Interpolation, SimpleExpression & CompoundExpression types 2019-09-27 11:42:02 -04:00
Evan You
63b6902bdb feat(compiler): correct source map generation 2019-09-26 14:55:53 -04:00
Evan You
6c8f226a79 fix: fix source map by fixing advancePositionWithMutation 2019-09-25 19:17:45 -04:00
Evan You
b3b67b8c7d feat(compiler): ensure interpolation expressions are wrapped with toString() 2019-09-23 15:36:30 -04:00
Evan You
914087edea feat(compiler): basic v-bind & v-on transforms 2019-09-22 22:19:42 -04:00
Evan You
3f05315d17 test: fix tests 2019-09-21 17:48:17 -04:00
Evan You
5f49018601 test(compiler): tests for ast transform 2019-09-19 13:24:02 -04:00
Evan You
bbb57c26a2 feat(compiler): basic transform implementation 2019-09-17 19:08:47 -04:00
Evan You
132cef9063 refactor: further tweak compiler layers 2019-09-17 11:57:37 -04:00
Evan You
6c14b409ca refactor: move dom-specific options to compiler-dom 2019-09-17 11:57:37 -04:00
Evan You
54b200fe54 wip: layout compiler files 2019-09-16 16:31:54 -04:00
Evan You
16fa44bd57 chore: organize file structure 2019-09-16 15:11:45 -04:00
Evan You
86ae92303d feat(compiler): port parser implementation based on work by @znck and @mysticatea 2019-09-16 14:43:29 -04:00