Commit Graph

791 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng d28d57bd3f
Merge remote-tracking branch 'upstream/minor' 2023-12-01 08:16:50 +08:00
Evan You 2a507e32f0 feat(compiler-sfc): bump postcss-modules to v6 2023-11-30 16:37:40 +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 7d89887f71 release: v3.4.0-alpha.3 2023-11-28 08:26:01 +08:00
Evan You 5afd04cbb8 chore: Merge branch 'main' into minor 2023-11-28 08:14:04 +08:00
renovate[bot] 3a65134360
chore(deps): update all non-major dependencies (#9682)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 08:03:07 +08:00
renovate[bot] 31f6ebc4df
fix(deps): update compiler to ^7.23.4 (#9681)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-28 08:02:38 +08:00
Evan You ebaeb2e0aa release: v3.4.0-alpha.2 2023-11-27 17:26:22 +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 2e65ea481f fix(compiler-core): fix line/column tracking when fast forwarding 2023-11-27 14:49:13 +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
三咲智子 Kevin Deng bdbd524d59
Merge remote-tracking branch 'upstream/main' 2023-11-25 17:04:03 +08:00
Evan You ceec69c8cc fix: avoid confusing breakage in @vitejs/plugin-vue 2023-11-25 16:39:42 +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 b6886a80b1 wip: force re-parse on reused sfc template ast 2023-11-25 16:18:29 +08:00
Evan You b59eabdc0d refactor: use more efficient walk for importUsageCheck 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
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.
2023-11-25 16:18:29 +08:00
Evan You 069f838691 release: v3.3.9 2023-11-25 16:11:31 +08:00
三咲智子 Kevin Deng d21fd83a6d
Merge remote-tracking branch 'upstream/main' 2023-11-23 23:44:07 +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
Evan You 8fddb19c3a workflow: use workspace deps 2023-11-21 09:22:12 +08:00
三咲智子 Kevin Deng 717aad275d
Merge remote-tracking branch 'upstream/main' 2023-11-20 18:28:52 +08:00
renovate[bot] 32fb79df41
chore(deps): update all non-major dependencies (#9636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-20 17:38:13 +08:00
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>
2023-11-18 10:33:24 +08:00
三咲智子 Kevin Deng 135f5eb8e7
feat: init runtime vapor 2023-11-17 03:01:53 +08:00
三咲智子 Kevin Deng 83e618f316
docs: replace rollup-plugin-vue with vite version 2023-11-15 21:43:18 +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
renovate[bot] e422023686
chore(deps): update compiler to ^7.23.3 (#9590)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 15:45:51 +08:00
renovate[bot] 2b00fd9ad2
chore(deps): update all non-major dependencies (#9589)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-13 15:45:29 +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
edison 9e1b74bcd5
fix(compiler-sfc): support resolve extends interface for defineEmits (#8470)
close #8465
2023-11-10 16:00:04 +08:00
Tycho d5fd343555
refactor(compiler-sfc): reuse `forAliasRE` regex from compiler-core (#9568) 2023-11-10 14:22:00 +08:00
丶远方 9d0eba916f
fix(compiler-core): fix `resolveParserPlugins` decorators check (#9566)
close #9560
2023-11-09 14:32:08 +08:00
Evan You bc5846939c release: v3.3.8 2023-11-06 18:54:26 +08:00
edison b39fa1f815
fix(compiler-sfc): fix dynamic directive arguments usage check for slots (#9495)
close #9493
2023-11-06 17:46:48 +08:00
Evan You 462aeb3b60 fix(types): avoid exposing lru-cache types in generated dts
close #9521
2023-11-06 17:36:02 +08:00