@rsbuild/plugin-source-build 0.4.15 → 0.5.1
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 +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function pluginSourceBuild(options) {
|
|
|
77
77
|
config.source.include = [...config.source.include ?? [], ...includes];
|
|
78
78
|
});
|
|
79
79
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
80
|
-
[CHAIN_ID.RULE.TS, CHAIN_ID.RULE.JS]
|
|
80
|
+
for (const ruleId of [CHAIN_ID.RULE.TS, CHAIN_ID.RULE.JS]) {
|
|
81
81
|
if (chain.module.rules.get(ruleId)) {
|
|
82
82
|
const rule = chain.module.rule(ruleId);
|
|
83
83
|
rule.resolve.mainFields.merge(
|
|
@@ -89,7 +89,7 @@ function pluginSourceBuild(options) {
|
|
|
89
89
|
conditionNames: ["...", sourceField]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
}
|
|
92
|
+
}
|
|
93
93
|
});
|
|
94
94
|
const getReferences = async () => {
|
|
95
95
|
const refers = projects.map((project) => import_node_path.default.join(project.dir, import_shared.TS_CONFIG_FILE)).filter((filePath) => import_node_fs.default.existsSync(filePath));
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire } from 'module';
|
|
|
2
2
|
var require = createRequire(import.meta['url']);
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.48.
|
|
5
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.48.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
7
7
|
import path from "path";
|
|
8
8
|
|
|
@@ -52,7 +52,7 @@ function pluginSourceBuild(options) {
|
|
|
52
52
|
config.source.include = [...config.source.include ?? [], ...includes];
|
|
53
53
|
});
|
|
54
54
|
api.modifyBundlerChain((chain, { CHAIN_ID }) => {
|
|
55
|
-
[CHAIN_ID.RULE.TS, CHAIN_ID.RULE.JS]
|
|
55
|
+
for (const ruleId of [CHAIN_ID.RULE.TS, CHAIN_ID.RULE.JS]) {
|
|
56
56
|
if (chain.module.rules.get(ruleId)) {
|
|
57
57
|
const rule = chain.module.rule(ruleId);
|
|
58
58
|
rule.resolve.mainFields.merge(
|
|
@@ -64,7 +64,7 @@ function pluginSourceBuild(options) {
|
|
|
64
64
|
conditionNames: ["...", sourceField]
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|
|
68
68
|
});
|
|
69
69
|
const getReferences = async () => {
|
|
70
70
|
const refers = projects.map((project) => path2.join(project.dir, TS_CONFIG_FILE)).filter((filePath) => fs.existsSync(filePath));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-source-build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Source build plugin of Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rsbuild/monorepo-utils": "0.
|
|
27
|
-
"@rsbuild/shared": "0.
|
|
26
|
+
"@rsbuild/monorepo-utils": "0.5.1",
|
|
27
|
+
"@rsbuild/shared": "0.5.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/core": "^7.23.2",
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
|
-
"@rsbuild/core": "0.
|
|
33
|
-
"@rsbuild/plugin-babel": "0.
|
|
34
|
-
"@scripts/test-helper": "0.
|
|
32
|
+
"@rsbuild/core": "0.5.1",
|
|
33
|
+
"@rsbuild/plugin-babel": "0.5.1",
|
|
34
|
+
"@scripts/test-helper": "0.5.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@rsbuild/core": "^0.
|
|
37
|
+
"@rsbuild/core": "^0.5.1"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|