@rsbuild/plugin-vue 0.7.1 → 0.7.2

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 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 || (merged.output = {});
99
- (_a = merged.output).cssModules || (_a.cssModules = {});
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.50.0_eslint@9.3.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
12
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.50.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 || (merged.output = {});
80
- (_a = merged.output).cssModules || (_a.cssModules = {});
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.1",
3
+ "version": "0.7.2",
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.1"
28
+ "@rsbuild/shared": "0.7.2"
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.1",
35
- "@scripts/test-helper": "0.7.1"
34
+ "@rsbuild/core": "0.7.2",
35
+ "@scripts/test-helper": "0.7.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@rsbuild/core": "^0.7.1"
38
+ "@rsbuild/core": "^0.7.2"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public",