三咲智子 Kevin Deng
bfe6b459d3
style: update format & lint config ( #9162 )
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2 years ago
Evan You
7aa3f250f2
fix(compiler-core): fix parsing `<script setup>` generics with >
close #9890
2 years ago
白雾三语
bae79ddf85
fix(compiler-core): fix v-on with modifiers on inline expression of undefined ( #9866 )
close #9865
improve isMemberExpression check for undefined
2 years ago
Evan You
2ffc1e8cfd
feat(ssr): improve ssr hydration mismatch checks ( #5953 )
- Include the actual element in the warning message
- Also warn class/style/attribute mismatches
Note: class/style/attribute mismatches are check-only and will not be
rectified.
close #5063
2 years ago
Adrien Foulon
638f1abbb6
feat(compiler-core): add current filename to TransformContext ( #8950 )
2 years ago
Evan You
e2f2b75b62
chore(deps): bump vitest to 1.0
2 years ago
Evan You
53aaa1eb28
fix(parser): fix interpolation parsing in v-pre
ref: https://github.com/vuejs/docs/issues/2586
2 years ago
Evan You
8abc754d5d
feat(compiler): lift vnode hooks deprecation warning to error
2 years ago
Evan You
e8bbc946cb
feat(compiler-sfc): analyze import usage in template via AST ( #9729 )
close #8897
close nuxt/nuxt#22416
2 years ago
Evan You
f8b74dcf29
chore: group parser edge case tests
2 years ago
Evan You
4d94ebfe75
perf(v-on): constant handlers with modifiers should not be treated as dynamic
2 years ago
edison
7cbcee3d83
fix(compiler-sfc): support resolving components from props ( #8785 )
2 years ago
Eduardo San Martin Morote
bcca475dbc
feat(compiler-core): support accessing Error as global in template expressions ( #7018 )
2 years ago
Evan You
ef97e8b07d
fix(parser): should reset inRCDATA state
2 years ago
Evan You
e49dffc9ec
fix(parser): directive arg should be undefined on shorthands with no arg
2 years ago
Evan You
41ff68ea57
feat(compiler): improve parsing tolerance for language-tools
2 years ago
Evan You
157cfcb796
refactor: restore isSelfClosing as optional property
2 years ago
Evan You
bab5bd375b
chore: fix tests with rawExp
2 years ago
Evan You
e48cbf02be
refactor: restore SourceLocation.source
this is used extensively in @vue/language-tools and does not have
noticeable impact on performance
2 years ago
Evan You
be6cae7dac
chore: remove isSelfClosing property
2 years ago
Evan You
6ec85ae872
chore: restructure parser files
2 years ago
Evan You
6022ac05c4
chore: document rationale for ignoring some parsing errors
2 years ago
Evan You
59227d4124
wip: parse error tests
2 years ago
Evan You
94c86269d0
refactor: fix v-bind no-exp shorthand for new parser
2 years ago
Evan You
fc4f801070
wip: decodeEntities test
2 years ago
Evan You
059caafc13
wip: pass all compiler-sfc tests
2 years ago
Evan You
c4e50e46bb
wip: more tests passing
2 years ago
Evan You
e05ba29555
wip: pass all non-error parsing tests
2 years ago
Evan You
a60ad9180d
refactor: swap to new template parser
- get rid of SourceLocation.source for memory efficiency
- move source location generation logic transform phase into the parser
itself so that SourceLocation.source is no longer needed
- move v-for expression parsing into the parser itself
- added nameLoc on AttributeNode for use in transformElement
Tests are not passing yet.
2 years ago
Evan You
bc170c49fc
chore: disable parser tests for now
2 years ago
Evan You
19bd714239
wip: port parser
2 years ago
renovate[bot]
16a6438236
chore(deps): update lint ( #9627 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2 years ago
Evan You
364f319d21
fix(hydration): force hydration for v-bind with .prop modifier
ref #7490
2 years ago
edison
a2d810eb40
fix(compiler-core): avoid rewriting scope variables in inline for loops ( #7245 )
close #7238
2 years ago
zhiyuanzmj
26399aa6fa
feat(compiler-core): support v-bind shorthand for key and value with the same name ( #9451 )
2 years ago
丶远方
a75d1c5c62
fix(compiler-core): known global should be shadowed by local variables in expression rewrite ( #9492 )
fix #9482
2 years ago
Evan You
733437691f
fix(hmr): fix hmr error for hoisted children array in v-for
fix #6978
close #7114
2 years ago
丶远方
b01fc7ea84
chore: remove unnecessary imports ( #8262 )
2 years ago
Evan You
8dc8cf852b
fix(compiler-core): treat floating point numbers as constants
close #8295
2 years ago
Evan You
b434d12bf6
fix(compiler-core): handle slot argument parsing edge case
ref https://github.com/vuejs/language-tools/issues/2710
2 years ago
Evan You
1849b9940f
test: update tests for deprecations
2 years ago
Evan You
0f77a2b1d1
fix(compiler): fix expression codegen for literal const bindings in non-inline mode
2 years ago
Evan You
19e17a951c
perf(compiler): use source-map-js
2 years ago
Evan You
6bda4b6688
fix(compiler-core): fix codegen for literal const in non-inline mode
2 years ago
三咲智子 Kevin Deng
77686cf476
fix(compiler-core): check if expression is constant ( #7974 )
close #7973
2 years ago
Evan You
e60ebd07a4
chore: bump vite & vitest
2 years ago
Evan You
c1cbb747b5
chore: fix types
3 years ago
Evan You
5804406fac
wip(vitest-migration): compiler-core tests passing
3 years ago
Evan You
8867bb259a
wip(vitest-migration): reactivity tests passing
3 years ago
Anthony Fu
4a16b204be
chore: run format
3 years ago