@rsbuild/plugin-vue2 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 CHANGED
@@ -123,9 +123,8 @@ function pluginVue2(options = {}) {
123
123
  const VUE_REGEXP = /\.vue$/;
124
124
  const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
125
125
  api.modifyRsbuildConfig((config) => {
126
- var _a;
127
- config.output || (config.output = {});
128
- (_a = config.output).cssModules || (_a.cssModules = {});
126
+ config.output ||= {};
127
+ config.output.cssModules ||= {};
129
128
  if (config.output.cssModules.auto === true) {
130
129
  config.output.cssModules.auto = (path, query) => {
131
130
  if (VUE_REGEXP.test(path)) {
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var __publicField = (obj, key, value) => {
15
15
  return value;
16
16
  };
17
17
 
18
- // ../../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
18
+ // ../../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
19
19
  import { fileURLToPath } from "url";
20
20
  import path from "path";
21
21
 
@@ -105,9 +105,8 @@ function pluginVue2(options = {}) {
105
105
  const VUE_REGEXP = /\.vue$/;
106
106
  const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
107
107
  api.modifyRsbuildConfig((config) => {
108
- var _a;
109
- config.output || (config.output = {});
110
- (_a = config.output).cssModules || (_a.cssModules = {});
108
+ config.output ||= {};
109
+ config.output.cssModules ||= {};
111
110
  if (config.output.cssModules.auto === true) {
112
111
  config.output.cssModules.auto = (path2, query) => {
113
112
  if (VUE_REGEXP.test(path2)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-vue2",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Vue 2 plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -25,16 +25,16 @@
25
25
  "dependencies": {
26
26
  "vue-loader": "^15.11.1",
27
27
  "webpack": "^5.91.0",
28
- "@rsbuild/shared": "0.7.1"
28
+ "@rsbuild/shared": "0.7.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^5.4.2",
32
32
  "webpack": "^5.91.0",
33
- "@rsbuild/core": "0.7.1",
34
- "@scripts/test-helper": "0.7.1"
33
+ "@rsbuild/core": "0.7.3",
34
+ "@scripts/test-helper": "0.7.3"
35
35
  },
36
36
  "peerDependencies": {
37
- "@rsbuild/core": "^0.7.1"
37
+ "@rsbuild/core": "^0.7.3"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",