edison
cbf5821028
chore(deps): fix MappingItem type ( #12891 )
2025-02-17 15:07:10 +08:00
disservin
c6841bdf4e
test(compiler-sfc): add assertion for template functional ( #11557 )
2024-08-08 21:08:58 +08:00
Evan You
274f6f71fc
test: test case for sfc parse options cache invalidation
2023-12-30 21:09:15 +08:00
Evan You
6fab8551e4
feat(compiler-sfc): support passing template parsing options when parsing sfc
...
- This is released in a patch because it is an relatively internal API
but required to properly fix https://github.com/vitejs/vite-plugin-vue/issues/322
- `parseExpressions` is now deprecated because it can be passed using
original template parsing options (`prefixIdentifiers`)
2023-12-30 08:44:39 +08:00
三咲智子 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>
2023-12-26 19:39:47 +08:00
Evan You
e12b10ac3e
chore: Merge branch 'main' into minor
2023-12-04 23:17:41 +08:00
Evan You
634519720a
fix(compiler-sfc): deindent pug/jade templates
...
close #3231
close #3842
close #7723
2023-12-01 16:45:53 +08:00
Evan You
2e65ea481f
fix(compiler-core): fix line/column tracking when fast forwarding
2023-11-27 14:49:13 +08:00
Evan You
37f9d3da8f
wip: compiler-sfc should not attach ast on template with src import
2023-11-25 16:18:29 +08:00
Evan You
e5afca6c1e
wip: treat template with preprocessor as plain text
2023-11-25 16:18:29 +08:00
Evan You
059caafc13
wip: pass all compiler-sfc tests
2023-11-25 16:18:29 +08:00
Evan You
19e17a951c
perf(compiler): use source-map-js
2023-04-09 16:50:20 +08:00
花果山大圣
a0c7f271a2
fix(compiler-sfc): require <template> or <script> in SFC ( #6781 )
...
fix #6676
2022-11-07 22:34:39 -05:00
Evan You
8dbecfcbb3
feat(compiler-sfc): add ignoreEmpty option for sfc parse method
2021-07-19 19:02:46 -04:00
Evan You
ec6abe8d5e
fix(compiler-sfc): fix whitespace preservation when block contains single self-closing tag
2021-07-19 18:54:35 -04:00
Cédric Exbrayat
b771fdbef9
perf(compiler-sfc): ignore empty blocks ( #3520 )
2021-07-19 17:24:40 -04:00
Evan You
b274b08f5f
fix(compiler-sfc): expose correct range for empty blocks
2021-07-19 17:05:37 -04:00
Evan You
540e26f49c
chore: only set slotted flag on sfc descriptor if style is scoped
2021-03-05 18:28:12 -05:00
Evan You
02cbbb718c
perf: support only attaching slot scope ids when necessary
...
This is done by adding the `slotted: false` option to:
- compiler-dom
- compiler-ssr
- compiler-sfc (forwarded to template compiler)
At runtime, only slotted component will render slot fragments with
slot scope Ids. For SSR, only slotted component will add slot scope Ids
to rendered slot content. This should improve both runtime performance
and reduce SSR rendered markup size.
Note: requires SFC tooling (e.g. `vue-loader` and `vite`) to pass on
the `slotted` option from the SFC descriptoer to the `compileTemplate`
call.
2021-03-05 18:28:12 -05:00
HcySunYang
6d5b623512
fix(compiler-sfc): the empty lang attribute should be treated as no lang specified ( #3051 )
2021-02-03 19:11:45 +01:00
meteorlxy
5b9b37fc9b
fix(compiler-sfc): should keep template nodes with no content ( #2468 )
...
close #2463
2020-12-04 18:23:01 -05:00
edison
5f2a8533ac
fix(compiler-sfc): fix parsing error when `lang=""` is used on plain element ( #2569 )
...
fix #2566
2020-11-30 14:45:26 -05:00
kazuya kawaguchi
619efd9ac5
fix(compiler-sfc): custom blocks sourcemap ( #1812 )
2020-08-14 17:47:28 -04:00
Evan You
03f924e48a
refactor(compiler-sfc): move sfc parse errors into return result
...
Also warn against `<script setup src>` usage
2020-07-15 16:00:53 -04:00
Evan You
1ad3f975ed
wip: parser support for script setup
2020-07-09 12:17:28 -04:00
Evan You
d10835aee7
fix(compiler-sfc): template with alt lang should be parsed as raw text
...
fix #1120
2020-05-07 11:08:17 -04:00
Dmitry Sharshakov
430d4e10bb
test(compiler-sfc): add real tests for source maps ( #704 )
2020-02-10 09:34:13 -05:00
Jason
2d56dfdc4f
fix(compiler-sfc): handle empty nodes with src attribute ( #695 )
2020-02-04 10:03:32 -05:00
Evan You
2569890e31
refactor: move mockWarn utility to @vue/shared
...
close #652
2020-01-22 09:29:45 -05:00
Evan You
d6275a3c31
fix(sfc): treat custom block content as raw text
2019-12-22 21:09:39 -05:00
Evan You
90ddb7c260
refactor: expose parse in compiler-dom, improve sfc parse error handling
2019-12-22 19:44:21 -05:00
likui
ef2786151e
feat(compiler-sfc): handle pad option ( #509 )
2019-12-02 10:43:30 -05:00
Evan You
020e109abd
chore: todos
2019-11-28 15:22:30 -05:00
likui
65118327ff
feat(compiler-sfc): gen source map for style and script block ( #497 )
2019-11-28 15:21:02 -05:00
likui
1efb35e324
fix(compiler-sfc): should ignore nodes with no children ( #464 )
2019-11-19 09:10:59 -05:00
likui
7f6abda6dd
feat(compiler-sfc): warn duplicate block ( #451 )
2019-11-14 11:50:13 -05:00