@modern-js/utils 3.9.2 → 3.10.0
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/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.10.0",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"module": "./dist/esm/index.mjs",
|
|
@@ -142,17 +142,16 @@
|
|
|
142
142
|
"rslog": "^1.3.2"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
145
|
-
"@rslib/core": "1.0.0",
|
|
146
145
|
"@types/node": "^20",
|
|
147
|
-
"happy-dom": "^20.
|
|
146
|
+
"happy-dom": "^20.14.6",
|
|
148
147
|
"typescript": "^5",
|
|
149
148
|
"@modern-js/rslib": "2.68.10",
|
|
150
|
-
"@modern-js/types": "3.
|
|
149
|
+
"@modern-js/types": "3.10.0",
|
|
151
150
|
"@scripts/rstest-config": "2.66.0"
|
|
152
151
|
},
|
|
153
152
|
"peerDependencies": {
|
|
154
|
-
"react": "^19.
|
|
155
|
-
"react-dom": "^19.
|
|
153
|
+
"react": "^19.3.0",
|
|
154
|
+
"react-dom": "^19.3.0"
|
|
156
155
|
},
|
|
157
156
|
"peerDependenciesMeta": {
|
|
158
157
|
"react": {
|
|
@@ -164,8 +163,8 @@
|
|
|
164
163
|
},
|
|
165
164
|
"sideEffects": false,
|
|
166
165
|
"scripts": {
|
|
167
|
-
"dev": "
|
|
168
|
-
"build": "
|
|
166
|
+
"dev": "rs lib --watch",
|
|
167
|
+
"build": "rs lib",
|
|
169
168
|
"test": "rstest --passWithNoTests"
|
|
170
169
|
}
|
|
171
170
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { rslibConfig } from '@modern-js/rslib';
|
|
2
|
-
import {
|
|
2
|
+
import { define } from 'rstack';
|
|
3
|
+
import type { RslibConfig, Rspack } from 'rstack/lib';
|
|
3
4
|
|
|
4
5
|
const dependencies = [
|
|
5
6
|
// zero dependency
|
|
@@ -158,7 +159,7 @@ const lib: RslibConfig['lib'] = rslibConfig.lib?.map(config => {
|
|
|
158
159
|
return config;
|
|
159
160
|
});
|
|
160
161
|
|
|
161
|
-
|
|
162
|
+
define.lib({
|
|
162
163
|
...rslibConfig,
|
|
163
164
|
lib,
|
|
164
165
|
});
|