@esmx/rspack 3.0.0-rc.55 → 3.0.0-rc.57
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.
|
@@ -102,10 +102,10 @@ function createModuleLinkConfig(esmx, buildTarget) {
|
|
|
102
102
|
}
|
|
103
103
|
const exports = {};
|
|
104
104
|
for (const [name, item] of Object.entries(esmx.moduleConfig.exports)) {
|
|
105
|
-
if (item.
|
|
105
|
+
if (item.entryPoints[buildTarget]) {
|
|
106
106
|
exports[name] = {
|
|
107
107
|
rewrite: item.rewrite,
|
|
108
|
-
file: item.
|
|
108
|
+
file: item.entryPoints[buildTarget]
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
}
|
package/dist/rspack/config.mjs
CHANGED
|
@@ -110,10 +110,10 @@ function createModuleLinkPlugin(esmx, buildTarget) {
|
|
|
110
110
|
}
|
|
111
111
|
const exports = {};
|
|
112
112
|
for (const [name, item] of Object.entries(esmx.moduleConfig.exports)) {
|
|
113
|
-
if (item.
|
|
113
|
+
if (item.entryPoints[buildTarget]) {
|
|
114
114
|
exports[name] = {
|
|
115
115
|
rewrite: item.rewrite,
|
|
116
|
-
file: item.
|
|
116
|
+
file: item.entryPoints[buildTarget]
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
}
|
package/package.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
],
|
|
45
45
|
"scripts": {
|
|
46
46
|
"lint:js": "biome check --write --no-errors-on-unmatched",
|
|
47
|
-
"lint:css": "
|
|
47
|
+
"lint:css": "pnpm run lint:js",
|
|
48
48
|
"lint:type": "tsc --noEmit",
|
|
49
49
|
"test": "vitest run --pass-with-no-tests",
|
|
50
50
|
"coverage": "vitest run --coverage --pass-with-no-tests",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@esmx/import": "3.0.0-rc.
|
|
67
|
-
"@esmx/rspack-module-link-plugin": "3.0.0-rc.
|
|
66
|
+
"@esmx/import": "3.0.0-rc.57",
|
|
67
|
+
"@esmx/rspack-module-link-plugin": "3.0.0-rc.57",
|
|
68
68
|
"@npmcli/arborist": "^9.0.1",
|
|
69
69
|
"@rspack/core": "1.4.8",
|
|
70
70
|
"css-loader": "^7.1.2",
|
|
@@ -80,18 +80,18 @@
|
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@biomejs/biome": "1.9.4",
|
|
83
|
-
"@esmx/core": "3.0.0-rc.
|
|
83
|
+
"@esmx/core": "3.0.0-rc.57",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"@types/npmcli__arborist": "^6.3.1",
|
|
86
86
|
"@types/pacote": "^11.1.8",
|
|
87
87
|
"@types/webpack-hot-middleware": "^2.25.9",
|
|
88
88
|
"@types/webpack-node-externals": "^3.0.4",
|
|
89
89
|
"@vitest/coverage-v8": "3.2.4",
|
|
90
|
-
"typescript": "5.
|
|
91
|
-
"unbuild": "3.
|
|
90
|
+
"typescript": "5.9.2",
|
|
91
|
+
"unbuild": "3.6.0",
|
|
92
92
|
"vitest": "3.2.4"
|
|
93
93
|
},
|
|
94
|
-
"version": "3.0.0-rc.
|
|
94
|
+
"version": "3.0.0-rc.57",
|
|
95
95
|
"type": "module",
|
|
96
96
|
"private": false,
|
|
97
97
|
"exports": {
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"template",
|
|
111
111
|
"public"
|
|
112
112
|
],
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "bb3fbfa6de4906b7e98bc387c3e1d8e0c3164ac7"
|
|
114
114
|
}
|
|
@@ -155,10 +155,10 @@ function createModuleLinkConfig(esmx: Esmx, buildTarget: BuildTarget) {
|
|
|
155
155
|
|
|
156
156
|
const exports: Record<string, { rewrite: boolean; file: string }> = {};
|
|
157
157
|
for (const [name, item] of Object.entries(esmx.moduleConfig.exports)) {
|
|
158
|
-
if (item.
|
|
158
|
+
if (item.entryPoints[buildTarget]) {
|
|
159
159
|
exports[name] = {
|
|
160
160
|
rewrite: item.rewrite,
|
|
161
|
-
file: item.
|
|
161
|
+
file: item.entryPoints[buildTarget]
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
}
|
package/src/rspack/config.ts
CHANGED
|
@@ -144,10 +144,10 @@ function createModuleLinkPlugin(esmx: Esmx, buildTarget: BuildTarget): Plugin {
|
|
|
144
144
|
}
|
|
145
145
|
> = {};
|
|
146
146
|
for (const [name, item] of Object.entries(esmx.moduleConfig.exports)) {
|
|
147
|
-
if (item.
|
|
147
|
+
if (item.entryPoints[buildTarget]) {
|
|
148
148
|
exports[name] = {
|
|
149
149
|
rewrite: item.rewrite,
|
|
150
|
-
file: item.
|
|
150
|
+
file: item.entryPoints[buildTarget]
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
}
|