Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit934d5f8

Browse files
authored
feat: Vite 4 support (#177)
1 parentfeb52d6 commit934d5f8

File tree

34 files changed

+1551
-1209
lines changed

34 files changed

+1551
-1209
lines changed

‎.changeset/long-schools-cry.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@vue-macros/better-define':minor
3+
'@vue-macros/define-model':minor
4+
'unplugin-vue-define-options':minor
5+
'@vue-macros/define-props':minor
6+
'@vue-macros/define-render':minor
7+
'@vue-macros/define-slots':minor
8+
'@vue-macros/hoist-static':minor
9+
'unplugin-vue-macros':minor
10+
'@vue-macros/named-template':minor
11+
'@vue-macros/setup-component':minor
12+
'@vue-macros/setup-sfc':minor
13+
'@vue-macros/short-emits':minor
14+
'@vue-macros/nuxt':patch
15+
'@vue-macros/volar':patch
16+
---
17+
18+
Support Vite 4
19+
Drop Rollup 2

‎.github/renovate.json5‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,7 @@
1212

1313
{
1414
matchUpdateTypes:['major'],
15-
matchPackageNames:[
16-
'vue',
17-
18-
// wait Vite 4
19-
'rollup',
20-
'@rollup/pluginutils',
21-
'@rollup/plugin-node-resolve',
22-
],
23-
enabled:false,
24-
},
25-
{
26-
matchUpdateTypes:['minor'],
27-
matchPackageNames:['unplugin-combine'],
15+
matchPackageNames:['vue'],
2816
enabled:false,
2917
},
3018
],

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ English | [简体中文](./README-zh-CN.md)
2323
- ✨ Explore and extend more macros and syntax sugar to Vue.
2424
- 💚 Supports both Vue 2.7 and Vue 3 out-of-the-box.
2525
- 🦾 Full TypeScript / Volar support.
26-
- ⚡️ Supports Vite, Nuxt, Webpack, Vue CLI, Rollup, esbuild and more, powered by [unplugin](https://github.com/unjs/unplugin).
26+
- ⚡️ Supports Vite, Nuxt, Webpack, Vue CLI, Rollup 3, esbuild and more, powered by [unplugin](https://github.com/unjs/unplugin).
2727

2828
##Installation
2929

‎docs/guide/bundler-integration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default defineConfig({
5454

5555
:::
5656

57-
::: code-group-item Rollup (first-class support)
57+
::: code-group-item Rollup3(first-class support)
5858

5959
```ts
6060
// rollup.config.js

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ features:
2626
details:Full TypeScript and Volar support.
2727
-icon:⚡️
2828
title:Multiple bundlers are supported
29-
details:Supports Vite, Nuxt, Webpack, Vue CLI, Rollup, esbuild and more, powered by unplugin.
29+
details:Supports Vite, Nuxt, Webpack, Vue CLI, Rollup 3, esbuild and more, powered by unplugin.
3030
---

‎docs/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"serve":"vitepress serve"
99
},
1010
"devDependencies": {
11-
"@vitejs/plugin-vue-jsx":"^2.1.1",
11+
"@vitejs/plugin-vue-jsx":"^3.0.0",
1212
"markdown-it-container":"^3.0.0",
1313
"unocss":"^0.47.5",
1414
"unplugin-vue-define-options":"*",
1515
"vite-plugin-pwa":"^0.13.3",
16-
"vitepress":"1.0.0-alpha.29",
16+
"vitepress":"1.0.0-alpha.31",
1717
"vue":"^3.2.45"
1818
}
1919
}

‎package.json‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,27 @@
2828
"@babel/types":"^7.20.5",
2929
"@changesets/changelog-github":"^0.4.7",
3030
"@changesets/cli":"^2.25.2",
31-
"@pnpm/find-workspace-packages":"^5.0.13",
31+
"@pnpm/find-workspace-packages":"^5.0.14",
3232
"@pnpm/logger":"^5.0.0",
3333
"@sxzz/eslint-config":"^2.4.4",
34-
"@types/node":"18.11.10",
35-
"@vitest/coverage-c8":"^0.25.3",
36-
"@vitest/ui":"^0.25.3",
34+
"@types/node":"18.11.13",
35+
"@vitest/coverage-c8":"^0.25.7",
36+
"@vitest/ui":"^0.25.7",
3737
"@vue-macros/test-utils":"workspace:*",
3838
"eslint":"^8.29.0",
3939
"eslint-define-config":"^1.12.0",
4040
"expect-type":"^0.15.0",
4141
"fast-glob":"^3.2.12",
42+
"hookable":"^5.4.2",
4243
"npm-run-all":"^4.1.5",
4344
"tsup":"^6.5.0",
4445
"tsx":"^3.12.1",
4546
"turbo":"^1.6.3",
46-
"typescript":"^4.9.3",
47-
"vite":"^3.2.4",
48-
"vitest":"^0.25.3",
49-
"vue":"^3.2.45"
47+
"typescript":"^4.9.4",
48+
"vite":"^4.0.0",
49+
"vitest":"^0.25.7",
50+
"vue":"^3.2.45",
51+
"webpack":"^5.75.0"
5052
},
5153
"engines": {
5254
"node":">=14.19.0"

‎packages/better-define/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
"dev":"DEV=1 tsup"
6565
},
6666
"dependencies": {
67-
"@rollup/pluginutils":"^4.2.1",
67+
"@rollup/pluginutils":"^5.0.2",
6868
"@vue-macros/api":"workspace:~",
6969
"@vue-macros/common":"workspace:~",
7070
"unplugin":"^1.0.0"
7171
},
7272
"devDependencies": {
73-
"rollup":"^2.79.1"
73+
"rollup":"^3.7.3"
7474
},
7575
"engines": {
7676
"node":">=14.19.0"

‎packages/define-model/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
}
7777
},
7878
"dependencies": {
79-
"@rollup/pluginutils":"^4.2.1",
79+
"@rollup/pluginutils":"^5.0.2",
8080
"@vue-macros/common":"workspace:~",
81-
"ast-walker-scope":"^0.3.0",
81+
"ast-walker-scope":"^0.3.1",
8282
"unplugin":"^1.0.0"
8383
},
8484
"devDependencies": {

‎packages/define-options/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you support this feature, feel free to hit like 👍 or comment on [RFC Discu
1717
- ✨ With this macro, you can use Options API in Vue`<script setup>`.
1818
- 💚 Supports both Vue 2.7 and Vue 3 out-of-the-box.
1919
- 🦾 Full TypeScript support.
20-
- ⚡️ Supports Vite, Nuxt, Webpack, Vue CLI, Rollup, esbuild and more, powered by <ahref="https://github.com/unjs/unplugin">unplugin</a>.
20+
- ⚡️ Supports Vite, Nuxt, Webpack, Vue CLI, Rollup 3, esbuild and more, powered by <ahref="https://github.com/unjs/unplugin">unplugin</a>.
2121

2222
###See Also
2323

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp