@rstest/adapter-rsbuild 0.2.3 → 0.2.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.js +5 -3
- package/package.json +26 -26
package/dist/index.js
CHANGED
|
@@ -6,14 +6,14 @@ function toRstestConfig({ environmentName, rsbuildConfig: rawRsbuildConfig, modi
|
|
|
6
6
|
const finalBuildConfig = modifyRsbuildConfig ? modifyRsbuildConfig(rsbuildConfig) : rsbuildConfig;
|
|
7
7
|
const { rspack, swc, bundlerChain } = finalBuildConfig.tools || {};
|
|
8
8
|
const { cssModules, target, module } = finalBuildConfig.output || {};
|
|
9
|
-
const { decorators, define, include, exclude, tsconfigPath } = finalBuildConfig.source || {};
|
|
9
|
+
const { assetsInclude, decorators, define, include, exclude, tsconfigPath, transformImport } = finalBuildConfig.source || {};
|
|
10
10
|
return {
|
|
11
11
|
root: finalBuildConfig.root,
|
|
12
12
|
name: environmentName,
|
|
13
13
|
plugins: [
|
|
14
14
|
...finalBuildConfig.plugins || [],
|
|
15
15
|
{
|
|
16
|
-
name: 'remove-useless-plugins',
|
|
16
|
+
name: 'rsbuild-adapter:remove-useless-plugins',
|
|
17
17
|
remove: [
|
|
18
18
|
'rsbuild:type-check'
|
|
19
19
|
],
|
|
@@ -21,11 +21,13 @@ function toRstestConfig({ environmentName, rsbuildConfig: rawRsbuildConfig, modi
|
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
source: {
|
|
24
|
+
assetsInclude,
|
|
24
25
|
decorators,
|
|
25
26
|
define,
|
|
26
27
|
include,
|
|
27
28
|
exclude,
|
|
28
|
-
tsconfigPath
|
|
29
|
+
tsconfigPath,
|
|
30
|
+
transformImport
|
|
29
31
|
},
|
|
30
32
|
resolve: finalBuildConfig.resolve,
|
|
31
33
|
output: {
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rstest/adapter-rsbuild",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Rstest adapter for rsbuild configuration",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rstest",
|
|
7
|
+
"rsbuild",
|
|
8
|
+
"adapter",
|
|
9
|
+
"configuration"
|
|
10
|
+
],
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/web-infra-dev/rstest/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/web-infra-dev/rstest",
|
|
17
|
+
"directory": "packages/adapter-rsbuild"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
5
20
|
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
21
|
"exports": {
|
|
9
22
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
12
25
|
}
|
|
13
26
|
},
|
|
27
|
+
"main": "dist/index.js",
|
|
28
|
+
"types": "dist/index.d.ts",
|
|
14
29
|
"files": [
|
|
15
30
|
"dist"
|
|
16
31
|
],
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"license": "MIT",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@rsbuild/core": "2.0.0-rc.0",
|
|
34
|
+
"@rslib/core": "0.20.2",
|
|
35
|
+
"@rstest/core": "0.9.6",
|
|
36
|
+
"@rstest/tsconfig": "0.0.1"
|
|
37
|
+
},
|
|
24
38
|
"peerDependencies": {
|
|
25
39
|
"@rsbuild/core": "*",
|
|
26
40
|
"@rstest/core": ">=0.7.7"
|
|
27
41
|
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@rsbuild/core": "2.0.0-beta.9",
|
|
30
|
-
"@rslib/core": "0.20.0",
|
|
31
|
-
"@rstest/tsconfig": "0.0.1",
|
|
32
|
-
"@rstest/core": "0.9.3"
|
|
33
|
-
},
|
|
34
42
|
"publishConfig": {
|
|
35
43
|
"access": "public"
|
|
36
44
|
},
|
|
37
|
-
"bugs": {
|
|
38
|
-
"url": "https://github.com/web-infra-dev/rstest/issues"
|
|
39
|
-
},
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "https://github.com/web-infra-dev/rstest",
|
|
43
|
-
"directory": "packages/adapter-rsbuild"
|
|
44
|
-
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "rslib build",
|
|
47
47
|
"dev": "rslib build --watch",
|