三咲智子 Kevin Deng
736db791a4
Merge remote-tracking branch 'upstream/main'
2024-01-19 16:29:21 +08:00
Evan You
75e866bd4e
fix(compiler-sfc): fix type resolution for symlinked node_modules structure w/ pnpm
...
close #10121
2024-01-18 13:52:42 +08:00
三咲智子 Kevin Deng
af9f892afa
Merge remote-tracking branch 'upstream/main'
2024-01-14 23:33:08 +08:00
三咲智子 Kevin Deng
48bf8e4c70
fix(compiler-sfc): enable prefixIdentifiers by default when reparsing on consumed AST ( #10105 )
2024-01-14 09:36:04 +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
bceccf9e21
chore(build): rename __NODE_JS__ build flag to __CJS__
2024-01-11 18:24:21 +08:00
三咲智子 Kevin Deng
c9fe3f12e7
Merge tag 'v3.4.5'
2024-01-04 17:43:25 +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
三咲智子 Kevin Deng
e971b0699b
Merge remote-tracking branch 'upstream/main'
2024-01-04 16:25:58 +08:00
Evan You
71d3121b72
fix(compiler-sfc): fix scss source map regression
...
close #9970
close #9969
2024-01-03 17:45:57 +08:00
Evan You
d94d8d4bff
fix(compiler-sfc): use compilerOptions when re-parsing consumed AST
...
fixes hydration error for custom elements
2024-01-02 21:38:13 +08:00
三咲智子 Kevin Deng
3d3d08d0f1
Merge remote-tracking branch 'upstream/minor'
2023-12-31 18:51:34 +08:00
Evan You
b8d58ec4f4
fix(compiler-sfc): respect sfc parse options in cache key
2023-12-30 20:38:58 +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
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
Rizumu Ayaka
a82d070890
Merge remote-tracking branch 'upstream/minor'
2023-12-29 21:03:21 +08:00
三咲智子 Kevin Deng
116c3f37ae
Merge remote-tracking branch 'upstream/minor'
2023-12-26 23:47:18 +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
25c726eca8
feat(compiler-sfc): export aggregated error messages for compiler-core and compiler-dom
2023-12-26 15:06:56 +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
8f339ea144
chore: reuse descriptor ast in compileScript inlineTemplate mode by default
2023-12-19 18:06:04 +08:00
三咲智子 Kevin Deng
597eae423b
Merge remote-tracking branch 'upstream/minor'
2023-12-16 16:12:55 +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
丶远方
9d1ca320c4
refactor(compiler-sfc): avoid unnecessary switch case fallthrough ( #8998 )
2023-12-11 18:23:02 +08:00
三咲智子 Kevin Deng
cf77435338
refactor(compiler-core): reuse unwrapTS utility function ( #9795 )
2023-12-11 10:46:28 +08:00
三咲智子 Kevin Deng
5b2bd1df78
feat(compiler-sfc): support import attributes and `using` syntax ( #8786 )
2023-12-08 15:22:27 +08:00
三咲智子 Kevin Deng
c695fdc1de
Merge remote-tracking branch 'upstream/minor'
2023-12-06 18:50:31 +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
0ba131a6de
feat(compiler-sfc): analyze import usage in template via AST ( #9729 )
...
close #8897
close nuxt/nuxt#22416
2023-12-05 00:13: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
Evan You
f12db7fb56
fix(compiler-sfc): avoid passing forEach index to genMap
2023-12-04 15:43:29 +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
三咲智子 Kevin Deng
4936d2e11a
fix(compiler-sfc): throw error when failing to load TS during type resolution ( #8883 )
2023-11-30 18:41:21 +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
三咲智子 Kevin Deng
377723d8b2
Merge remote-tracking branch 'upstream/minor'
2023-11-29 21:10:26 +08:00
三咲智子 Kevin Deng
55ef2f0c5f
fix(compiler-sfc): vue import
2023-11-29 20:58:10 +08:00
ZHAO Jin-Xiang
fff7b864f4
feat: use enum to replace const enum ( #9261 )
...
close #1228
2023-11-29 12:24:50 +08:00
三咲智子 Kevin Deng
4549e28665
fix: playground
2023-11-29 02:38:01 +08:00
Evan You
fb619cf9a4
fix(compiler-sfc): fix ast reuse for ssr
2023-11-27 15:38:30 +08:00
Evan You
678378afd5
fix(compiler-sfc): use correct compiler when re-parsing in ssr mode
2023-11-27 15:06:07 +08:00
Evan You
50cde7cfbc
perf(compiler-sfc): use faster source map addMapping
2023-11-27 14:42:12 +08:00
Evan You
f15d2f6cf6
perf: avoid sfc source map unnecessary serialization and parsing
2023-11-27 12:26:51 +08:00
Evan You
08f0baa2ad
refactor: preserve source location convention in sfc mode for base parser
...
For compatibility w/ usage like https://github.com/vue-macros/vue-macros/blob/main/packages/setup-block/src/core/index.ts
2023-11-25 18:07:29 +08:00