yangxiuxiu
0cef65cee4
fix(compiler-sfc): fix defineModel coercion for boolean + string union types ( #9603 )
...
close #9587
close #10676
2024-04-15 21:18:59 +08:00
Doctor Wu
54a6afa75a
fix(compiler-sfc): fix universal selector scope ( #10551 )
...
close #10548
2024-04-15 19:36:13 +08:00
edison
e5919d4658
fix(compile-sfc): analyze v-bind shorthand usage in template ( #10518 )
...
close #10515
2024-04-15 16:32:04 +08:00
liudaodanOo
34106bc9c7
fix(compiler-sfc): also search for `.tsx` when type import's extension is omitted ( #10637 )
...
Co-authored-by: liuxiaofei <liuxfb@digiwin.com>
Closes #10635
2024-04-09 16:14:11 +08:00
Doctor Wu
660cadc7aa
fix(compiler-sfc): :is() and :where() in compound selectors ( #10522 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
Closes #10511
2024-03-25 14:12:33 +08:00
Doctor Wu
e76d7430aa
fix(compiler-sfc): use options module name if options provide runtimeModuleName options ( #10457 )
...
close #10454
2024-03-06 10:45:42 +08:00
三咲智子 Kevin Deng
1f6a1102aa
test: clean snapshot
2024-02-28 15:19:24 +08:00
Evan You
c60479146a
dx(defineModel): warn against reference of setup scope variables in defineModel options
...
close #10093
2024-01-12 22:07:16 +08:00
Evan You
b20350ded5
fix(compiler-sfc): fix co-usage of defineModel transform options and props destructure
...
close #9972
2024-01-04 17:07:29 +08:00
Evan You
ae60a91cc2
fix(compiler-sfc): fix sfc template unref rewrite for class instantiation
...
close #6483
close #6491
2024-01-04 15:58:13 +08:00
edison
7dbdb3edf0
fix(compiler-ssr): fix node clone edge case caused by AST reuse ( #9983 )
...
close #9981
2024-01-04 10:52:09 +08:00
Evan You
274f6f71fc
test: test case for sfc parse options cache invalidation
2023-12-30 21:09:15 +08:00
Evan You
c3fd577177
chore: fix snapshot
2023-12-30 18:57:22 +08:00
Evan You
dce99c12df
fix(compiler-sfc): fix dev regression for dot / namespace component usage
...
close #9947
2023-12-30 18:20:14 +08:00
Evan You
63c3e621ce
test: split import usage check tests into dedicated file
2023-12-30 18:13:35 +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
Evan You
a772031ea8
feat(defineModel): support modifiers and transformers
2023-12-26 22:13:04 +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
5ec937723a
chore: Merge branch 'main' into minor
2023-12-24 22:50:06 +08:00
Evan You
a8d0b1b38b
fix(compiler-sfc): fix type resolution for shared type w/ different generic parameters
...
close #9871
2023-12-23 00:44:26 +08:00
Evan You
7aa3f250f2
fix(compiler-core): fix parsing `<script setup>` generics with >
...
close #9890
2023-12-22 22:49:30 +08:00
edison
eb51b23d85
fix(compile-sfc): fix identifier prefixing edge case caused by reused AST ( #9867 )
...
close #9853
close #9863
2023-12-19 18:04:36 +08:00
三咲智子 Kevin Deng
ef688ba92b
feat(compiler-sfc): promote defineModel stable ( #9598 )
2023-12-12 17:28:40 +08:00
Evan You
982a145d38
chore: Merge branch 'main' into minor
2023-12-11 22:03:28 +08:00
三咲智子 Kevin Deng
aa954b969b
test: update snapshot
2023-12-08 18:16:22 +08:00
三咲智子 Kevin Deng
5b2bd1df78
feat(compiler-sfc): support import attributes and `using` syntax ( #8786 )
2023-12-08 15:22:27 +08:00
白雾三语
d74d364d62
fix(custom-element): correctly handle number type props in prod ( #8989 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-06 08:16:16 +01:00
Evan You
a817883c26
chore: Merge branch 'main' into minor
2023-12-05 10:54:20 +08:00
Evan You
e2f2b75b62
chore(deps): bump vitest to 1.0
2023-12-05 10:48:04 +08:00
Evan You
e12b10ac3e
chore: Merge branch 'main' into minor
2023-12-04 23:17:41 +08:00
yangxiuxiu
c3e2c556b5
fix(compiler-sfc): fix :where and :is selector in scoped mode with multiple selectors ( #9735 )
...
close #9707
2023-12-04 16:53:21 +08:00
edison
eb5e307c0b
fix(compiler-sfc): support inferring generic types ( #8511 )
...
close #8482
2023-12-01 21:21:12 +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
e8bbc946cb
feat(compiler-sfc): analyze import usage in template via AST ( #9729 )
...
close #8897
close nuxt/nuxt#22416
2023-12-01 11:14:48 +08:00
edison
8d74ca0e6f
fix(compiler-sfc): generate more treeshaking friendly code ( #9507 )
...
close #9500
2023-12-01 02:52:26 +08:00
edison
5199a12f88
fix(cssVars): cssVar names should be double-escaped when generating code for ssr ( #8824 )
...
close #7823
2023-11-30 18:35:20 +08:00
Evan You
fb619cf9a4
fix(compiler-sfc): fix ast reuse for ssr
2023-11-27 15:38:30 +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
e8e3ec6ca7
perf(compiler-sfc): remove magic-string trim on script
...
magic-string's trim method uses a regex check for aborting which turns
out to be extremely expensive - it cna take up to 10% time in total SFC
compilation! The usage here is purely aesthetic so simply removing it
for a big perf gain is well worth it.
2023-11-25 16:18:29 +08:00
Evan You
79d3cc6cec
wip: should not reuse AST when using custom compiler
2023-11-25 16:18:29 +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
5fc695be26
wip: support reusing template ast from sfc descriptor
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
三咲智子 Kevin Deng
79b8a0905b
feat!: remove reactivity transform ( #9321 )
...
BREAKING CHANGE: Reactivity Transform was marked deprecated in 3.3 and is now removed in 3.4. This change does not require a major due to the feature being experimental. Users who wish to continue using the feature can do so via the external plugin at https://vue-macros.dev/features/reactivity-transform.html
2023-11-21 18:06:42 +08:00
Evan You
1ea775633d
chore: Merge branch 'main' into minor
2023-11-21 09:48:26 +08:00
Bogdan Kolesnyk
f18a174979
fix(compiler-sfc): malformed filename on windows using path.posix.join() ( #9478 )
...
Closes : #8671 , #9583
Not fixed with: #9446
Related: #9473
2023-11-13 15:48:25 +08:00
Cong
3227e50b32
fix(compiler-sfc): support `:is` and `:where` selector in scoped css rewrite ( #8929 )
2023-11-10 16:44:53 +08:00
Cong
c6083dcad3
fix(compiler-sfc): support `:is` and `:where` selector in scoped css rewrite ( #8929 )
2023-11-10 16:44:08 +08:00
auvred
3e08d246df
fix(compiler-sfc): consistently escape type-only prop names ( #8654 )
...
close #8635
close #8910
close vitejs/vite-plugin-vue#184
2023-11-10 16:23:47 +08:00