Skip to content

Commit 8ab0e6f

Browse files
authored
fix(deps): upgrade rsbuild-plugin-unplugin-vue (#1540)
1 parent 7d4acc8 commit 8ab0e6f

8 files changed

Lines changed: 462 additions & 358 deletions

File tree

examples/vue-component-bundle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"@rslib/core": "workspace:*",
13-
"rsbuild-plugin-unplugin-vue": "^0.1.0",
13+
"rsbuild-plugin-unplugin-vue": "^0.2.0",
1414
"typescript": "^5.9.3",
1515
"vue": "^3.5.30",
1616
"vue-tsc": "^3.2.5"

examples/vue-component-bundleless/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@storybook/addon-docs": "^10.2.19",
1919
"@storybook/addon-onboarding": "^10.2.19",
2020
"@storybook/vue3": "^10.2.19",
21-
"rsbuild-plugin-unplugin-vue": "^0.1.0",
21+
"rsbuild-plugin-unplugin-vue": "^0.2.0",
2222
"storybook": "^10.2.19",
2323
"storybook-addon-rslib": "^3.3.2",
2424
"storybook-vue3-rsbuild": "^3.3.2",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"scripts": {
55
"build": "pnpm --filter \"./packages/*\" run build",
6-
"build:examples": "pnpm --filter \"@examples/*\" --filter \"!@examples/vue-component-*\" run build",
6+
"build:examples": "pnpm --filter \"@examples/*\" run build",
77
"change": "changeset",
88
"changeset": "changeset",
99
"check-dependency-version": "check-dependency-version-consistency . && echo",

packages/create-rslib/template-vue-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@rslib/core": "workspace:*",
21-
"rsbuild-plugin-unplugin-vue": "^0.1.0",
21+
"rsbuild-plugin-unplugin-vue": "^0.2.0",
2222
"vue": "^3.5.30"
2323
},
2424
"peerDependencies": {

packages/create-rslib/template-vue-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@rslib/core": "workspace:*",
21-
"rsbuild-plugin-unplugin-vue": "^0.1.0",
21+
"rsbuild-plugin-unplugin-vue": "^0.2.0",
2222
"typescript": "^5.9.3",
2323
"vue": "^3.5.30",
2424
"vue-tsc": "^3.2.5"

pnpm-lock.yaml

Lines changed: 443 additions & 336 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/vue/index.test.ts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { beforeAll, describe, expect, test } from '@rstest/core';
44
import { buildAndGetResults, type BuildResult } from 'test-helper';
55

66
// '__file' path can't be normalized on win32.
7-
describe.runIf(platform() !== 'win32').skip('ESM', async () => {
7+
describe.runIf(platform() !== 'win32')('ESM', async () => {
88
let jsResult: BuildResult;
99
let cssResult: BuildResult;
1010

@@ -140,13 +140,16 @@ describe.runIf(platform() !== 'win32').skip('ESM', async () => {
140140
test('bundleless', async () => {
141141
expect(jsResult.contents.esm0).toMatchInlineSnapshot(`
142142
{
143-
"<ROOT>/tests/integration/vue/dist/bundleless/Button/Button.js": "import "./style.css";
144-
import { createElementBlock, openBlock, ref, toDisplayString } from "vue";
145-
const _00_2Fplugin_vue_2Fexport_helper = (sfc, props)=>{
143+
"<ROOT>/tests/integration/vue/dist/bundleless/544.js": "const _00_2Fplugin_vue_2Fexport_helper = (sfc, props)=>{
146144
const target = sfc.__vccOpts || sfc;
147145
for (const [key, val] of props)target[key] = val;
148146
return target;
149147
};
148+
export { _00_2Fplugin_vue_2Fexport_helper };
149+
",
150+
"<ROOT>/tests/integration/vue/dist/bundleless/Button/Button.js": "import "./style.css";
151+
import { createElementBlock, openBlock, ref, toDisplayString } from "vue";
152+
import { _00_2Fplugin_vue_2Fexport_helper } from "../544.js";
150153
const _sfc_main = {
151154
__name: 'Button',
152155
setup (__props, { expose: __expose }) {
@@ -179,17 +182,12 @@ describe.runIf(platform() !== 'win32').skip('ESM', async () => {
179182
"<ROOT>/tests/integration/vue/src/Button/Button.vue"
180183
]
181184
]);
182-
export { Button as default };
185+
export default Button;
183186
",
184-
"<ROOT>/tests/integration/vue/dist/bundleless/Button/index.js": "import Button from "./Button.js";
185-
export { Button as default };
187+
"<ROOT>/tests/integration/vue/dist/bundleless/Button/index.js": "export { default } from "./Button.js";
186188
",
187189
"<ROOT>/tests/integration/vue/dist/bundleless/Card.js": "import { createElementBlock, openBlock, ref, toDisplayString } from "vue";
188-
const _00_2Fplugin_vue_2Fexport_helper = (sfc, props)=>{
189-
const target = sfc.__vccOpts || sfc;
190-
for (const [key, val] of props)target[key] = val;
191-
return target;
192-
};
190+
import { _00_2Fplugin_vue_2Fexport_helper } from "./544.js";
193191
const _sfc_main = {
194192
__name: 'Card',
195193
setup (__props, { expose: __expose }) {
@@ -222,11 +220,10 @@ describe.runIf(platform() !== 'win32').skip('ESM', async () => {
222220
"<ROOT>/tests/integration/vue/src/Card.vue"
223221
]
224222
]);
225-
export { Card as default };
223+
export default Card;
226224
",
227-
"<ROOT>/tests/integration/vue/dist/bundleless/index.js": "import Button from "./Button/index.js";
228-
import Card from "./Card.js";
229-
export { Button, Card };
225+
"<ROOT>/tests/integration/vue/dist/bundleless/index.js": "export { default as Button } from "./Button/index.js";
226+
export { default as Card } from "./Card.js";
230227
",
231228
}
232229
`);

tests/integration/vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"devDependencies": {
77
"@rsbuild/plugin-less": "^1.6.2",
8-
"rsbuild-plugin-unplugin-vue": "^0.1.0",
8+
"rsbuild-plugin-unplugin-vue": "^0.2.0",
99
"vue": "^3.5.30"
1010
},
1111
"peerDependencies": {

0 commit comments

Comments
 (0)