@rsbuild/plugin-vue 1.0.1-beta.0 → 1.0.1-beta.10
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
|
@@ -87,7 +87,7 @@ function pluginVue(options = {}) {
|
|
|
87
87
|
setup(api) {
|
|
88
88
|
const VUE_REGEXP = /\.vue$/;
|
|
89
89
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
90
|
-
api.
|
|
90
|
+
api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => {
|
|
91
91
|
const extraConfig = {
|
|
92
92
|
source: {
|
|
93
93
|
define: {
|
|
@@ -98,9 +98,7 @@ function pluginVue(options = {}) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
const merged =
|
|
102
|
-
merged.output ||= {};
|
|
103
|
-
merged.output.cssModules ||= {};
|
|
101
|
+
const merged = mergeEnvironmentConfig(extraConfig, config);
|
|
104
102
|
if (merged.output.cssModules.auto === true) {
|
|
105
103
|
merged.output.cssModules.auto = (path, query) => {
|
|
106
104
|
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.57.1_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
|
|
@@ -67,7 +67,7 @@ function pluginVue(options = {}) {
|
|
|
67
67
|
setup(api) {
|
|
68
68
|
const VUE_REGEXP = /\.vue$/;
|
|
69
69
|
const CSS_MODULES_REGEX = /\.modules?\.\w+$/i;
|
|
70
|
-
api.
|
|
70
|
+
api.modifyEnvironmentConfig((config, { mergeEnvironmentConfig }) => {
|
|
71
71
|
const extraConfig = {
|
|
72
72
|
source: {
|
|
73
73
|
define: {
|
|
@@ -78,9 +78,7 @@ function pluginVue(options = {}) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
const merged =
|
|
82
|
-
merged.output ||= {};
|
|
83
|
-
merged.output.cssModules ||= {};
|
|
81
|
+
const merged = mergeEnvironmentConfig(extraConfig, config);
|
|
84
82
|
if (merged.output.cssModules.auto === true) {
|
|
85
83
|
merged.output.cssModules.auto = (path2, query) => {
|
|
86
84
|
if (VUE_REGEXP.test(path2)) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"//":"This file is for making TypeScript work with moduleResolution node16+.","version":"1.0.0"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-vue",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.10",
|
|
4
4
|
"description": "Vue 3 plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -12,15 +12,16 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
15
|
+
"types": "./dist-types/index.d.ts",
|
|
16
16
|
"import": "./dist/index.js",
|
|
17
17
|
"require": "./dist/index.cjs"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"main": "./dist/index.cjs",
|
|
21
|
-
"types": "./dist/index.d.ts",
|
|
21
|
+
"types": "./dist-types/index.d.ts",
|
|
22
22
|
"files": [
|
|
23
|
-
"dist"
|
|
23
|
+
"dist",
|
|
24
|
+
"dist-types"
|
|
24
25
|
],
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"vue-loader": "^17.4.0",
|
|
@@ -30,11 +31,11 @@
|
|
|
30
31
|
"typescript": "^5.5.2",
|
|
31
32
|
"vue": "^3.4.19",
|
|
32
33
|
"webpack": "^5.93.0",
|
|
33
|
-
"@rsbuild/core": "1.0.1-beta.
|
|
34
|
-
"@scripts/test-helper": "1.0.1-beta.
|
|
34
|
+
"@rsbuild/core": "1.0.1-beta.10",
|
|
35
|
+
"@scripts/test-helper": "1.0.1-beta.10"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^1.0.1-beta.
|
|
38
|
+
"@rsbuild/core": "^1.0.1-beta.10"
|
|
38
39
|
},
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public",
|
|
File without changes
|
|
File without changes
|