@rsbuild/plugin-vue 0.7.1 → 0.7.3
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 +2 -3
- package/dist/index.js +3 -4
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -83,7 +83,6 @@ function pluginVue(options = {}) {
|
|
|
83
83
|
const VUE_REGEXP = /\.vue$/;
|
|
84
84
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
85
85
|
api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
|
|
86
|
-
var _a;
|
|
87
86
|
const extraConfig = {
|
|
88
87
|
source: {
|
|
89
88
|
define: {
|
|
@@ -95,8 +94,8 @@ function pluginVue(options = {}) {
|
|
|
95
94
|
}
|
|
96
95
|
};
|
|
97
96
|
const merged = mergeRsbuildConfig(extraConfig, config);
|
|
98
|
-
merged.output
|
|
99
|
-
|
|
97
|
+
merged.output ||= {};
|
|
98
|
+
merged.output.cssModules ||= {};
|
|
100
99
|
if (merged.output.cssModules.auto === true) {
|
|
101
100
|
merged.output.cssModules.auto = (path, query) => {
|
|
102
101
|
if (VUE_REGEXP.test(path)) {
|
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.
|
|
12
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.51.0_eslint@9.4.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
|
|
|
@@ -64,7 +64,6 @@ function pluginVue(options = {}) {
|
|
|
64
64
|
const VUE_REGEXP = /\.vue$/;
|
|
65
65
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
66
66
|
api.modifyRsbuildConfig((config, { mergeRsbuildConfig }) => {
|
|
67
|
-
var _a;
|
|
68
67
|
const extraConfig = {
|
|
69
68
|
source: {
|
|
70
69
|
define: {
|
|
@@ -76,8 +75,8 @@ function pluginVue(options = {}) {
|
|
|
76
75
|
}
|
|
77
76
|
};
|
|
78
77
|
const merged = mergeRsbuildConfig(extraConfig, config);
|
|
79
|
-
merged.output
|
|
80
|
-
|
|
78
|
+
merged.output ||= {};
|
|
79
|
+
merged.output.cssModules ||= {};
|
|
81
80
|
if (merged.output.cssModules.auto === true) {
|
|
82
81
|
merged.output.cssModules.auto = (path2, query) => {
|
|
83
82
|
if (VUE_REGEXP.test(path2)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Vue 3 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"vue-loader": "^17.4.0",
|
|
27
27
|
"webpack": "^5.91.0",
|
|
28
|
-
"@rsbuild/shared": "0.7.
|
|
28
|
+
"@rsbuild/shared": "0.7.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
32
|
"vue": "^3.4.19",
|
|
33
33
|
"webpack": "^5.91.0",
|
|
34
|
-
"@rsbuild/core": "0.7.
|
|
35
|
-
"@scripts/test-helper": "0.7.
|
|
34
|
+
"@rsbuild/core": "0.7.3",
|
|
35
|
+
"@scripts/test-helper": "0.7.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@rsbuild/core": "^0.7.
|
|
38
|
+
"@rsbuild/core": "^0.7.3"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|