@rsbuild/plugin-vue2 0.7.6 → 0.7.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.cjs +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -35,6 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
// src/index.ts
|
|
36
36
|
var src_exports = {};
|
|
37
37
|
__export(src_exports, {
|
|
38
|
+
PLUGIN_VUE2_NAME: () => PLUGIN_VUE2_NAME,
|
|
38
39
|
pluginVue2: () => pluginVue2
|
|
39
40
|
});
|
|
40
41
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -115,9 +116,10 @@ var applySplitChunksRule = (api, options = {
|
|
|
115
116
|
};
|
|
116
117
|
|
|
117
118
|
// src/index.ts
|
|
119
|
+
var PLUGIN_VUE2_NAME = "rsbuild:vue2";
|
|
118
120
|
function pluginVue2(options = {}) {
|
|
119
121
|
return {
|
|
120
|
-
name:
|
|
122
|
+
name: PLUGIN_VUE2_NAME,
|
|
121
123
|
setup(api) {
|
|
122
124
|
const VUE_REGEXP = /\.vue$/;
|
|
123
125
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
@@ -160,5 +162,6 @@ function pluginVue2(options = {}) {
|
|
|
160
162
|
}
|
|
161
163
|
// Annotate the CommonJS export names for ESM import in node:
|
|
162
164
|
0 && (module.exports = {
|
|
165
|
+
PLUGIN_VUE2_NAME,
|
|
163
166
|
pluginVue2
|
|
164
167
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ type PluginVueOptions = {
|
|
|
24
24
|
*/
|
|
25
25
|
splitChunks?: SplitVueChunkOptions;
|
|
26
26
|
};
|
|
27
|
+
declare const PLUGIN_VUE2_NAME = "rsbuild:vue2";
|
|
27
28
|
declare function pluginVue2(options?: PluginVueOptions): RsbuildPlugin;
|
|
28
29
|
|
|
29
|
-
export { type PluginVueOptions, type SplitVueChunkOptions, pluginVue2 };
|
|
30
|
+
export { PLUGIN_VUE2_NAME, type PluginVueOptions, type SplitVueChunkOptions, pluginVue2 };
|
package/dist/index.js
CHANGED
|
@@ -97,9 +97,10 @@ var applySplitChunksRule = (api, options = {
|
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
// src/index.ts
|
|
100
|
+
var PLUGIN_VUE2_NAME = "rsbuild:vue2";
|
|
100
101
|
function pluginVue2(options = {}) {
|
|
101
102
|
return {
|
|
102
|
-
name:
|
|
103
|
+
name: PLUGIN_VUE2_NAME,
|
|
103
104
|
setup(api) {
|
|
104
105
|
const VUE_REGEXP = /\.vue$/;
|
|
105
106
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
@@ -141,5 +142,6 @@ function pluginVue2(options = {}) {
|
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
144
|
export {
|
|
145
|
+
PLUGIN_VUE2_NAME,
|
|
144
146
|
pluginVue2
|
|
145
147
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue2",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Vue 2 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"vue-loader": "^15.11.1",
|
|
27
|
-
"webpack": "^5.
|
|
28
|
-
"@rsbuild/shared": "0.7.
|
|
27
|
+
"webpack": "^5.92.0",
|
|
28
|
+
"@rsbuild/shared": "0.7.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
|
-
"webpack": "^5.
|
|
33
|
-
"@rsbuild/core": "0.7.
|
|
34
|
-
"@scripts/test-helper": "0.7.
|
|
32
|
+
"webpack": "^5.92.0",
|
|
33
|
+
"@rsbuild/core": "0.7.7",
|
|
34
|
+
"@scripts/test-helper": "0.7.7"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^0.7.
|
|
37
|
+
"@rsbuild/core": "^0.7.7"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|