@rsbuild/plugin-vue 0.7.6 → 0.7.8
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 +4 -2
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
PLUGIN_VUE_NAME: () => PLUGIN_VUE_NAME,
|
|
33
34
|
pluginVue: () => pluginVue
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -75,9 +76,10 @@ var applySplitChunksRule = (api, options = {
|
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
// src/index.ts
|
|
79
|
+
var PLUGIN_VUE_NAME = "rsbuild:vue";
|
|
78
80
|
function pluginVue(options = {}) {
|
|
79
81
|
return {
|
|
80
|
-
name:
|
|
82
|
+
name: PLUGIN_VUE_NAME,
|
|
81
83
|
setup(api) {
|
|
82
84
|
const VUE_REGEXP = /\.vue$/;
|
|
83
85
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
@@ -127,5 +129,6 @@ function pluginVue(options = {}) {
|
|
|
127
129
|
}
|
|
128
130
|
// Annotate the CommonJS export names for ESM import in node:
|
|
129
131
|
0 && (module.exports = {
|
|
132
|
+
PLUGIN_VUE_NAME,
|
|
130
133
|
pluginVue
|
|
131
134
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ type PluginVueOptions = {
|
|
|
24
24
|
*/
|
|
25
25
|
splitChunks?: SplitVueChunkOptions;
|
|
26
26
|
};
|
|
27
|
+
declare const PLUGIN_VUE_NAME = "rsbuild:vue";
|
|
27
28
|
declare function pluginVue(options?: PluginVueOptions): RsbuildPlugin;
|
|
28
29
|
|
|
29
|
-
export { type PluginVueOptions, type SplitVueChunkOptions, pluginVue };
|
|
30
|
+
export { PLUGIN_VUE_NAME, type PluginVueOptions, type SplitVueChunkOptions, pluginVue };
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.
|
|
12
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.5.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
|
|
@@ -56,9 +56,10 @@ var applySplitChunksRule = (api, options = {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
// src/index.ts
|
|
59
|
+
var PLUGIN_VUE_NAME = "rsbuild:vue";
|
|
59
60
|
function pluginVue(options = {}) {
|
|
60
61
|
return {
|
|
61
|
-
name:
|
|
62
|
+
name: PLUGIN_VUE_NAME,
|
|
62
63
|
setup(api) {
|
|
63
64
|
const VUE_REGEXP = /\.vue$/;
|
|
64
65
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
@@ -107,5 +108,6 @@ function pluginVue(options = {}) {
|
|
|
107
108
|
};
|
|
108
109
|
}
|
|
109
110
|
export {
|
|
111
|
+
PLUGIN_VUE_NAME,
|
|
110
112
|
pluginVue
|
|
111
113
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "Vue 3 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"vue-loader": "^17.4.0",
|
|
27
|
-
"webpack": "^5.
|
|
28
|
-
"@rsbuild/shared": "0.7.
|
|
27
|
+
"webpack": "^5.92.0",
|
|
28
|
+
"@rsbuild/shared": "0.7.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
32
|
"vue": "^3.4.19",
|
|
33
|
-
"webpack": "^5.
|
|
34
|
-
"@rsbuild/core": "0.7.
|
|
35
|
-
"@scripts/test-helper": "0.7.
|
|
33
|
+
"webpack": "^5.92.0",
|
|
34
|
+
"@rsbuild/core": "0.7.8",
|
|
35
|
+
"@scripts/test-helper": "0.7.8"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@rsbuild/core": "^0.7.
|
|
38
|
+
"@rsbuild/core": "^0.7.8"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|