@rsbuild/plugin-vue2 1.0.1-beta.4 → 1.0.1-beta.5

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
@@ -131,9 +131,7 @@ function pluginVue2(options = {}) {
131
131
  setup(api) {
132
132
  const VUE_REGEXP = /\.vue$/;
133
133
  const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
134
- api.modifyRsbuildConfig((config) => {
135
- config.output ||= {};
136
- config.output.cssModules ||= {};
134
+ api.modifyEnvironmentConfig((config) => {
137
135
  if (config.output.cssModules.auto === true) {
138
136
  config.output.cssModules.auto = (path, query) => {
139
137
  if (VUE_REGEXP.test(path)) {
package/dist/index.js CHANGED
@@ -112,9 +112,7 @@ function pluginVue2(options = {}) {
112
112
  setup(api) {
113
113
  const VUE_REGEXP = /\.vue$/;
114
114
  const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
115
- api.modifyRsbuildConfig((config) => {
116
- config.output ||= {};
117
- config.output.cssModules ||= {};
115
+ api.modifyEnvironmentConfig((config) => {
118
116
  if (config.output.cssModules.auto === true) {
119
117
  config.output.cssModules.auto = (path2, query) => {
120
118
  if (VUE_REGEXP.test(path2)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-vue2",
3
- "version": "1.0.1-beta.4",
3
+ "version": "1.0.1-beta.5",
4
4
  "description": "Vue 2 plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -29,8 +29,8 @@
29
29
  "devDependencies": {
30
30
  "typescript": "^5.5.2",
31
31
  "webpack": "^5.93.0",
32
- "@rsbuild/core": "1.0.1-beta.4",
33
- "@scripts/test-helper": "1.0.1-beta.4"
32
+ "@rsbuild/core": "1.0.1-beta.5",
33
+ "@scripts/test-helper": "1.0.1-beta.5"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@rsbuild/core": "^1.0.1-beta.0"