@esmx/rspack 3.0.0-rc.10 → 3.0.0-rc.12
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/LICENSE +21 -0
- package/dist/app.mjs +4 -1
- package/package.json +20 -15
- package/src/app.ts +4 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Vanelink
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/app.mjs
CHANGED
|
@@ -104,11 +104,14 @@ function rewriteBuild(esmx, options = {}) {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
await createRsBuild([
|
|
107
|
+
const ok = await createRsBuild([
|
|
108
108
|
generateBuildConfig(esmx, options, "client"),
|
|
109
109
|
generateBuildConfig(esmx, options, "server"),
|
|
110
110
|
generateBuildConfig(esmx, options, "node")
|
|
111
111
|
]).build();
|
|
112
|
+
if (!ok) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
112
115
|
esmx.writeSync(
|
|
113
116
|
esmx.resolvePath("dist/index.js"),
|
|
114
117
|
`
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esmx/rspack",
|
|
3
3
|
"description": "A high-performance Rspack integration for Esmx microfrontend framework, providing module federation and SSR capabilities.",
|
|
4
|
-
"author": {
|
|
5
|
-
"name": "lzxb",
|
|
6
|
-
"url": "https://github.com/lzxb"
|
|
7
|
-
},
|
|
8
4
|
"contributors": [
|
|
5
|
+
{
|
|
6
|
+
"name": "lzxb",
|
|
7
|
+
"url": "https://github.com/lzxb"
|
|
8
|
+
},
|
|
9
9
|
{
|
|
10
10
|
"name": "RockShi1994",
|
|
11
11
|
"url": "https://github.com/RockShi1994"
|
|
@@ -13,16 +13,20 @@
|
|
|
13
13
|
{
|
|
14
14
|
"name": "jerrychan7",
|
|
15
15
|
"url": "https://github.com/jerrychan7"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "wesloong",
|
|
19
|
+
"url": "https://github.com/wesloong"
|
|
16
20
|
}
|
|
17
21
|
],
|
|
18
22
|
"repository": {
|
|
19
23
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/esmnext/esmx.git",
|
|
21
25
|
"directory": "packages/rspack"
|
|
22
26
|
},
|
|
23
|
-
"homepage": "https://github.com/
|
|
27
|
+
"homepage": "https://github.com/esmnext/esmx",
|
|
24
28
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/
|
|
29
|
+
"url": "https://github.com/esmnext/esmx/issues"
|
|
26
30
|
},
|
|
27
31
|
"template": "library-node",
|
|
28
32
|
"license": "MIT",
|
|
@@ -56,10 +60,10 @@
|
|
|
56
60
|
}
|
|
57
61
|
},
|
|
58
62
|
"dependencies": {
|
|
59
|
-
"@esmx/import": "3.0.0-rc.
|
|
60
|
-
"@esmx/rspack-module-link-plugin": "3.0.0-rc.
|
|
61
|
-
"@npmcli/arborist": "^
|
|
62
|
-
"@rspack/core": "1.
|
|
63
|
+
"@esmx/import": "3.0.0-rc.12",
|
|
64
|
+
"@esmx/rspack-module-link-plugin": "3.0.0-rc.12",
|
|
65
|
+
"@npmcli/arborist": "^9.0.1",
|
|
66
|
+
"@rspack/core": "1.3.0",
|
|
63
67
|
"css-loader": "^7.1.2",
|
|
64
68
|
"less-loader": "^12.2.0",
|
|
65
69
|
"node-polyfill-webpack-plugin": "^4.1.0",
|
|
@@ -72,8 +76,9 @@
|
|
|
72
76
|
},
|
|
73
77
|
"devDependencies": {
|
|
74
78
|
"@biomejs/biome": "1.9.4",
|
|
75
|
-
"@esmx/core": "3.0.0-rc.
|
|
76
|
-
"@esmx/lint": "3.0.0-rc.
|
|
79
|
+
"@esmx/core": "3.0.0-rc.12",
|
|
80
|
+
"@esmx/lint": "3.0.0-rc.12",
|
|
81
|
+
"@gez/lint": "3.0.0-rc.9",
|
|
77
82
|
"@types/node": "22.13.10",
|
|
78
83
|
"@types/npmcli__arborist": "^5.6.11",
|
|
79
84
|
"@types/pacote": "^11.1.8",
|
|
@@ -85,7 +90,7 @@
|
|
|
85
90
|
"unbuild": "2.0.0",
|
|
86
91
|
"vitest": "3.0.8"
|
|
87
92
|
},
|
|
88
|
-
"version": "3.0.0-rc.
|
|
93
|
+
"version": "3.0.0-rc.12",
|
|
89
94
|
"type": "module",
|
|
90
95
|
"private": false,
|
|
91
96
|
"exports": {
|
|
@@ -104,5 +109,5 @@
|
|
|
104
109
|
"template",
|
|
105
110
|
"public"
|
|
106
111
|
],
|
|
107
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "7d2c2fc4fe2cc98ebdbc12560f19637ca04398e5"
|
|
108
113
|
}
|
package/src/app.ts
CHANGED
|
@@ -293,11 +293,14 @@ function rewriteBuild(esmx: Esmx, options: RspackAppOptions = {}) {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
await createRsBuild([
|
|
296
|
+
const ok = await createRsBuild([
|
|
297
297
|
generateBuildConfig(esmx, options, 'client'),
|
|
298
298
|
generateBuildConfig(esmx, options, 'server'),
|
|
299
299
|
generateBuildConfig(esmx, options, 'node')
|
|
300
300
|
]).build();
|
|
301
|
+
if (!ok) {
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
301
304
|
esmx.writeSync(
|
|
302
305
|
esmx.resolvePath('dist/index.js'),
|
|
303
306
|
`
|