@rsbuild/plugin-vue2 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,26 @@ import { RsbuildPlugin } from '@rsbuild/core';
|
|
|
2
2
|
import { VueLoaderOptions } from 'vue-loader';
|
|
3
3
|
|
|
4
4
|
type SplitVueChunkOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to enable split chunking for Vue-related dependencies (e.g., vue, vue-loader).
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
5
9
|
vue?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to enable split chunking for vue-router.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
6
14
|
router?: boolean;
|
|
7
15
|
};
|
|
8
16
|
type PluginVueOptions = {
|
|
17
|
+
/**
|
|
18
|
+
* Options passed to `vue-loader`.
|
|
19
|
+
* @see https://vue-loader.vuejs.org/
|
|
20
|
+
*/
|
|
9
21
|
vueLoaderOptions?: VueLoaderOptions;
|
|
22
|
+
/**
|
|
23
|
+
* This option is used to control the split chunks behavior.
|
|
24
|
+
*/
|
|
10
25
|
splitChunks?: SplitVueChunkOptions;
|
|
11
26
|
};
|
|
12
27
|
declare function pluginVue2(options?: PluginVueOptions): RsbuildPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue2",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Vue 2 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"vue-loader": "^15.11.1",
|
|
27
27
|
"webpack": "^5.89.0",
|
|
28
|
-
"@rsbuild/shared": "0.3.
|
|
28
|
+
"@rsbuild/shared": "0.3.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
32
|
"webpack": "^5.89.0",
|
|
33
|
-
"@rsbuild/core": "0.3.
|
|
34
|
-
"@scripts/test-helper": "0.3.
|
|
33
|
+
"@rsbuild/core": "0.3.7",
|
|
34
|
+
"@scripts/test-helper": "0.3.7"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^0.3.
|
|
37
|
+
"@rsbuild/core": "^0.3.7"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|