Commit Graph

94 Commits

Author SHA1 Message Date
lsdsjy 83d95351a9
fix(compiler-sfc): check template `ref` usage, (#12985)
close #12984
2023-12-07 14:14:27 +08:00
Evan You 25f97a5033 fix(compiler-sfc): fix rewriteDefault edge cases
close #13060
close #12892
close #12906
2023-12-06 17:25:12 +08:00
Evan You 10c2a87c70 chore(deps): bump @babel/parser 2023-12-06 17:09:56 +08:00
Grigorii K. Shartsev 45d6ad6645
chore(compiler-sfc): specify prettier version (#13053)
close: #13052
2023-12-06 15:49:41 +08:00
Evan You d30f6fd25f test: fix tests 2023-12-06 15:21:00 +08:00
Evan You 81598ea2f3 release: v2.7.15 2023-10-23 15:55:40 +08:00
Evan You af9a10f3c1 chore: update snapshots 2023-10-23 15:15:18 +08:00
Liu Bo 51fef2ca69
fix(compiler-sfc): add semicolon after `defineProps` statement (#12879) 2023-10-23 15:09:23 +08:00
webfansplz b8c8b3fc7a
fix(compiler-sfc): Resolve object expression parsing errors in `v-on` (#12862) 2023-10-23 15:08:58 +08:00
webfansplz d27c128b7c
fix(compiler-sfc): fix macro usage in multi-variable declaration (#12873) 2023-10-23 15:08:34 +08:00
webfansplz bb59751dd4
fix(compiler-sfc): Optimize the value of emitIdentifier (#12851) 2023-10-23 15:08:17 +08:00
Evan You 9dd006b481 release: v2.7.14 2022-11-09 20:39:52 +08:00
a161803398 5e3d4e90cd
fix(compiler-sfc): fix template usage check edge case for v-slot destructured default value (#12842)
fix #12841
2022-11-09 04:52:35 -05:00
webfansplz a5afc4d0a4
chore: fix typo (#12863) 2022-11-09 09:07:36 +01:00
Evan You df281b0e4c release: v2.7.13 2022-10-14 11:41:56 +08:00
Evan You 4cad410071 release: v2.7.12 2022-10-12 21:41:36 +08:00
Evan You c61395d3f1 release: v2.7.11 2022-10-11 19:13:06 +08:00
Evan You cc14d4452c chore: bump build deps 2022-10-11 17:39:59 +08:00
Evan You 0d6d972b32 fix(compiler-sfc): export parseComponent for compat with fork-ts-checker-webpack-plugin
fix #12719
2022-10-11 14:58:24 +08:00
Evan You fb13930096 fix(sfc): prune returned bindings for non-TS as well
In Vue 3, pruning is only done for TS to produce valid code and
tree-shaking is done by inlining the template for production.
In Vue 2 we do not inline the template in production, so return binding
pruning is needed in all cases.

fix #12765
2022-10-11 14:10:48 +08:00
Evan You 2f335b2f9d fix(sfc): remove sfc scoped deep syntax deprecation warnings 2022-10-11 11:41:31 +08:00
Evan You ee57d9fd1d release: v2.7.10 2022-08-23 09:29:42 +08:00
Evan You 46ca7bcddc fix(compiler-sfc): avoid deindent when lang is jsx/tsx
fix #12755
2022-08-23 09:18:36 +08:00
Evan You 15618888cb release: v2.7.9 2022-08-19 12:27:12 +08:00
林烁壕 5221d4d3b6
fix(compiler-sfc): rewriteDefault for class with decorators (#12747) 2022-08-18 04:01:00 -04:00
Jonas 5c742eb2e0
fix(compiler-sfc): allow full hostnames in asset url base (#12732)
fix #12731
2022-08-14 21:37:08 -04:00
Evan You 1d8b892fcd release: v2.7.8 2022-07-22 11:24:39 +08:00
troy351 135d07442a
chore(sfc): remove useless vue-template-es2015-compiler (#12677) 2022-07-19 23:16:01 -04:00
Evan You fc16281cf5 release: v2.7.7 2022-07-16 22:45:31 +08:00
Evan You 7d4a7722e3 release: v2.7.6 2022-07-15 17:12:28 +08:00
Evan You cdd2df6171 release: v2.7.5 2022-07-13 11:08:37 +08:00
Evan You 018d29af5f release: v2.7.4 2022-07-08 15:46:21 +08:00
Evan You b70a2585fc fix(compiler-sfc): use safer deindent default for compatibility with previous behavior 2022-07-08 09:45:37 +08:00
Evan You 15e6f1dee4 release: v2.7.3 2022-07-06 13:16:22 +08:00
Evan You e244687135 release: v2.7.2 2022-07-05 10:54:47 +08:00
Evan You 1294385300 fix(compiler-sfc): preserve old deindent behavior for pug
fix #12611
2022-07-05 10:33:20 +08:00
Evan You 427028ad89 release: v2.7.1 2022-07-04 18:38:35 +08:00
Evan You caceece8fa fix(compiler-sfc): fix template usage check edge case for v-on statements
fix #12591
2022-07-04 11:38:48 +08:00
webfansplz 6f0d2e6985
chore(compiler-sfc): replace `substr` with `slice` (#12564) 2022-07-03 23:26:18 -04:00
Evan You 1e3a0ceb26 release: v2.7.0 2022-07-01 12:22:26 +08:00
Evan You 326d24a4e4 fix(sfc): only include legacy decorator parser plugin when new plugin is not used 2022-07-01 12:16:56 +08:00
Evan You 0ea6c366f5 release: v2.7.0-beta.8 2022-06-28 10:00:08 +08:00
Evan You 008d78bd72 fix(compiler-sfc): should transform non relative paths when base option is present
fix https://github.com/vitejs/vite-plugin-vue2/issues/14
2022-06-28 09:57:19 +08:00
Evan You bf64c4da5c release: v2.7.0-beta.7 2022-06-27 15:00:30 +08:00
Evan You 20e7e7e138 release: v2.7.0-beta.6 2022-06-26 16:41:54 +08:00
Evan You 530b56a36e release: v2.7.0-beta.5 2022-06-22 10:22:49 +08:00
Evan You a122bd25c3 release: v2.7.0-beta.4 2022-06-21 10:51:19 +08:00
Evan You 9b9f2bf1c8 fix(compiler-sfc): properly handle shorthand property in template expressions
fix #12566
2022-06-21 09:41:30 +08:00
Evan You de03f69cd6 release: v2.7.0-beta.3 2022-06-20 16:34:23 +08:00
Evan You 0f2cede374 build: move cssVars logic into compiler-sfc entry 2022-06-20 16:10:14 +08:00