@rsbuild/plugin-vue 1.2.8 → 1.2.9
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.cjs +8 -5
- package/dist/index.d.ts +15 -20
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const __rslib_import_meta_url__ = "u" < typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
3
3
|
var __webpack_require__ = {};
|
|
4
|
-
__webpack_require__.d = (exports1,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key) && Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get"), define(values, "value");
|
|
9
12
|
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
|
|
10
13
|
"u" > typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
11
14
|
value: 'Module'
|
package/dist/index.d.ts
CHANGED
|
@@ -2,31 +2,26 @@ import type { RsbuildPlugin, Rspack } from '@rsbuild/core';
|
|
|
2
2
|
import { type VueLoaderOptions } from 'rspack-vue-loader';
|
|
3
3
|
export type SplitVueChunkOptions = {
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
vue?: boolean;
|
|
5
|
+
* Whether to enable split chunking for Vue-related dependencies (e.g., vue, vue-loader).
|
|
6
|
+
* @default true
|
|
7
|
+
*/ vue?: boolean;
|
|
9
8
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
router?: boolean;
|
|
9
|
+
* Whether to enable split chunking for vue-router.
|
|
10
|
+
* @default true
|
|
11
|
+
*/ router?: boolean;
|
|
14
12
|
};
|
|
15
13
|
export type PluginVueOptions = {
|
|
16
14
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
test?: Rspack.RuleSetCondition;
|
|
15
|
+
* Test condition to match Vue files.
|
|
16
|
+
* @default /\.vue$/
|
|
17
|
+
*/ test?: Rspack.RuleSetCondition;
|
|
21
18
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
vueLoaderOptions?: VueLoaderOptions;
|
|
19
|
+
* Options passed to `vue-loader`.
|
|
20
|
+
* @see https://vue-loader.vuejs.org/
|
|
21
|
+
*/ vueLoaderOptions?: VueLoaderOptions;
|
|
26
22
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
splitChunks?: SplitVueChunkOptions;
|
|
23
|
+
* This option is used to control the split chunks behavior.
|
|
24
|
+
*/ splitChunks?: SplitVueChunkOptions;
|
|
30
25
|
};
|
|
31
|
-
export declare const PLUGIN_VUE_NAME =
|
|
26
|
+
export declare const PLUGIN_VUE_NAME = 'rsbuild:vue';
|
|
32
27
|
export declare function pluginVue(options?: PluginVueOptions): RsbuildPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Vue 3 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"repository": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@rsbuild/core-v1": "npm:@rsbuild/core@^1.7.5",
|
|
29
|
-
"@rslib/core": "0.
|
|
30
|
-
"@types/node": "^24.12.
|
|
29
|
+
"@rslib/core": "0.22.0",
|
|
30
|
+
"@types/node": "^24.12.4",
|
|
31
31
|
"typescript": "^6.0.3",
|
|
32
32
|
"vue": "^3.5.34",
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
33
|
+
"@rsbuild/core": "2.0.9",
|
|
34
|
+
"@scripts/test-helper": "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
|