@lynx-js/rspeedy 0.10.2 → 0.10.4
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/CHANGELOG.md +12 -0
- package/dist/index.js +6 -4
- package/dist/src_cli_build_ts.js +5 -3
- package/dist/src_cli_commands_ts.js +1 -1
- package/dist/src_cli_dev_ts.js +5 -3
- package/dist/src_cli_inspect_ts.js +5 -3
- package/dist/src_cli_preview_ts.js +5 -3
- package/dist/src_config_validate_ts.js +59 -27
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_index_ts.js +1 -2
- package/dist/src_plugins_rsdoctor_plugin_ts.js +13 -7
- package/dist/src_version_ts.js +1 -1
- package/package.json +4 -4
- package/dist/src_plugins_stats_plugin_ts.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.10.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump Rsbuild v1.4.12 with Rspack v1.4.11. ([#1326](https://github.com/lynx-family/lynx-stack/pull/1326))
|
|
8
|
+
|
|
9
|
+
## 0.10.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Should be able to override `performance.profile` when `DEBUG=rspeedy`. ([#1307](https://github.com/lynx-family/lynx-stack/pull/1307))
|
|
14
|
+
|
|
3
15
|
## 0.10.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var __webpack_modules__ = {
|
|
|
112
112
|
});
|
|
113
113
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
114
114
|
var package_namespaceObject = {
|
|
115
|
-
i8: "0.10.
|
|
115
|
+
i8: "0.10.4"
|
|
116
116
|
};
|
|
117
117
|
const version = package_namespaceObject.i8;
|
|
118
118
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -253,8 +253,9 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
253
253
|
})();
|
|
254
254
|
var external_node_path_ = __webpack_require__("node:path");
|
|
255
255
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
256
|
+
var debug = __webpack_require__("./src/debug.ts");
|
|
256
257
|
function applyDefaultRspeedyConfig(config) {
|
|
257
|
-
|
|
258
|
+
return (0, core_.mergeRsbuildConfig)({
|
|
258
259
|
mode: (()=>{
|
|
259
260
|
if (config.mode) return config.mode;
|
|
260
261
|
const nodeEnv = process.env['NODE_ENV'];
|
|
@@ -264,6 +265,9 @@ function applyDefaultRspeedyConfig(config) {
|
|
|
264
265
|
filename: getFilename(config.output?.filename),
|
|
265
266
|
inlineScripts: true
|
|
266
267
|
},
|
|
268
|
+
performance: {
|
|
269
|
+
profile: (0, debug.L1)() ? true : void 0
|
|
270
|
+
},
|
|
267
271
|
tools: {
|
|
268
272
|
rsdoctor: {
|
|
269
273
|
experiments: {
|
|
@@ -272,7 +276,6 @@ function applyDefaultRspeedyConfig(config) {
|
|
|
272
276
|
}
|
|
273
277
|
}
|
|
274
278
|
}, config);
|
|
275
|
-
return ret;
|
|
276
279
|
}
|
|
277
280
|
const DEFAULT_FILENAME = '[name].[platform].bundle';
|
|
278
281
|
function getFilename(filename) {
|
|
@@ -286,7 +289,6 @@ function getFilename(filename) {
|
|
|
286
289
|
template: finalFilename
|
|
287
290
|
};
|
|
288
291
|
}
|
|
289
|
-
var debug = __webpack_require__("./src/debug.ts");
|
|
290
292
|
const DEFAULT_ENTRY = './src/index.js';
|
|
291
293
|
function toRsbuildEntry(entry) {
|
|
292
294
|
if (void 0 === entry) {
|
package/dist/src_cli_build_ts.js
CHANGED
|
@@ -140,8 +140,9 @@ export const __webpack_modules__ = {
|
|
|
140
140
|
});
|
|
141
141
|
var external_node_path_ = __webpack_require__("node:path");
|
|
142
142
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
143
|
+
var debug = __webpack_require__("./src/debug.ts");
|
|
143
144
|
function applyDefaultRspeedyConfig(config) {
|
|
144
|
-
|
|
145
|
+
return (0, core_.mergeRsbuildConfig)({
|
|
145
146
|
mode: (()=>{
|
|
146
147
|
if (config.mode) return config.mode;
|
|
147
148
|
const nodeEnv = process.env['NODE_ENV'];
|
|
@@ -151,6 +152,9 @@ export const __webpack_modules__ = {
|
|
|
151
152
|
filename: getFilename(config.output?.filename),
|
|
152
153
|
inlineScripts: true
|
|
153
154
|
},
|
|
155
|
+
performance: {
|
|
156
|
+
profile: (0, debug.L1)() ? true : void 0
|
|
157
|
+
},
|
|
154
158
|
tools: {
|
|
155
159
|
rsdoctor: {
|
|
156
160
|
experiments: {
|
|
@@ -159,7 +163,6 @@ export const __webpack_modules__ = {
|
|
|
159
163
|
}
|
|
160
164
|
}
|
|
161
165
|
}, config);
|
|
162
|
-
return ret;
|
|
163
166
|
}
|
|
164
167
|
const DEFAULT_FILENAME = '[name].[platform].bundle';
|
|
165
168
|
function getFilename(filename) {
|
|
@@ -173,7 +176,6 @@ export const __webpack_modules__ = {
|
|
|
173
176
|
template: finalFilename
|
|
174
177
|
};
|
|
175
178
|
}
|
|
176
|
-
var debug = __webpack_require__("./src/debug.ts");
|
|
177
179
|
const DEFAULT_ENTRY = './src/index.js';
|
|
178
180
|
function toRsbuildEntry(entry) {
|
|
179
181
|
if (void 0 === entry) {
|
|
@@ -40,7 +40,7 @@ export const __webpack_modules__ = {
|
|
|
40
40
|
});
|
|
41
41
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
42
42
|
var package_namespaceObject = {
|
|
43
|
-
i8: "0.10.
|
|
43
|
+
i8: "0.10.4"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/dist/src_cli_dev_ts.js
CHANGED
|
@@ -183,8 +183,9 @@ export const __webpack_modules__ = {
|
|
|
183
183
|
});
|
|
184
184
|
var external_node_path_ = __webpack_require__("node:path");
|
|
185
185
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
186
|
+
var debug = __webpack_require__("./src/debug.ts");
|
|
186
187
|
function applyDefaultRspeedyConfig(config) {
|
|
187
|
-
|
|
188
|
+
return (0, core_.mergeRsbuildConfig)({
|
|
188
189
|
mode: (()=>{
|
|
189
190
|
if (config.mode) return config.mode;
|
|
190
191
|
const nodeEnv = process.env['NODE_ENV'];
|
|
@@ -194,6 +195,9 @@ export const __webpack_modules__ = {
|
|
|
194
195
|
filename: getFilename(config.output?.filename),
|
|
195
196
|
inlineScripts: true
|
|
196
197
|
},
|
|
198
|
+
performance: {
|
|
199
|
+
profile: (0, debug.L1)() ? true : void 0
|
|
200
|
+
},
|
|
197
201
|
tools: {
|
|
198
202
|
rsdoctor: {
|
|
199
203
|
experiments: {
|
|
@@ -202,7 +206,6 @@ export const __webpack_modules__ = {
|
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
208
|
}, config);
|
|
205
|
-
return ret;
|
|
206
209
|
}
|
|
207
210
|
const DEFAULT_FILENAME = '[name].[platform].bundle';
|
|
208
211
|
function getFilename(filename) {
|
|
@@ -216,7 +219,6 @@ export const __webpack_modules__ = {
|
|
|
216
219
|
template: finalFilename
|
|
217
220
|
};
|
|
218
221
|
}
|
|
219
|
-
var debug = __webpack_require__("./src/debug.ts");
|
|
220
222
|
const DEFAULT_ENTRY = './src/index.js';
|
|
221
223
|
function toRsbuildEntry(entry) {
|
|
222
224
|
if (void 0 === entry) {
|
|
@@ -143,8 +143,9 @@ export const __webpack_modules__ = {
|
|
|
143
143
|
});
|
|
144
144
|
var external_node_path_ = __webpack_require__("node:path");
|
|
145
145
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
146
|
+
var debug = __webpack_require__("./src/debug.ts");
|
|
146
147
|
function applyDefaultRspeedyConfig(config) {
|
|
147
|
-
|
|
148
|
+
return (0, core_.mergeRsbuildConfig)({
|
|
148
149
|
mode: (()=>{
|
|
149
150
|
if (config.mode) return config.mode;
|
|
150
151
|
const nodeEnv = process.env['NODE_ENV'];
|
|
@@ -154,6 +155,9 @@ export const __webpack_modules__ = {
|
|
|
154
155
|
filename: getFilename(config.output?.filename),
|
|
155
156
|
inlineScripts: true
|
|
156
157
|
},
|
|
158
|
+
performance: {
|
|
159
|
+
profile: (0, debug.L1)() ? true : void 0
|
|
160
|
+
},
|
|
157
161
|
tools: {
|
|
158
162
|
rsdoctor: {
|
|
159
163
|
experiments: {
|
|
@@ -162,7 +166,6 @@ export const __webpack_modules__ = {
|
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
168
|
}, config);
|
|
165
|
-
return ret;
|
|
166
169
|
}
|
|
167
170
|
const DEFAULT_FILENAME = '[name].[platform].bundle';
|
|
168
171
|
function getFilename(filename) {
|
|
@@ -176,7 +179,6 @@ export const __webpack_modules__ = {
|
|
|
176
179
|
template: finalFilename
|
|
177
180
|
};
|
|
178
181
|
}
|
|
179
|
-
var debug = __webpack_require__("./src/debug.ts");
|
|
180
182
|
const DEFAULT_ENTRY = './src/index.js';
|
|
181
183
|
function toRsbuildEntry(entry) {
|
|
182
184
|
if (void 0 === entry) {
|
|
@@ -145,8 +145,9 @@ export const __webpack_modules__ = {
|
|
|
145
145
|
});
|
|
146
146
|
var external_node_path_ = __webpack_require__("node:path");
|
|
147
147
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
148
|
+
var debug = __webpack_require__("./src/debug.ts");
|
|
148
149
|
function applyDefaultRspeedyConfig(config) {
|
|
149
|
-
|
|
150
|
+
return (0, core_.mergeRsbuildConfig)({
|
|
150
151
|
mode: (()=>{
|
|
151
152
|
if (config.mode) return config.mode;
|
|
152
153
|
const nodeEnv = process.env['NODE_ENV'];
|
|
@@ -156,6 +157,9 @@ export const __webpack_modules__ = {
|
|
|
156
157
|
filename: getFilename(config.output?.filename),
|
|
157
158
|
inlineScripts: true
|
|
158
159
|
},
|
|
160
|
+
performance: {
|
|
161
|
+
profile: (0, debug.L1)() ? true : void 0
|
|
162
|
+
},
|
|
159
163
|
tools: {
|
|
160
164
|
rsdoctor: {
|
|
161
165
|
experiments: {
|
|
@@ -164,7 +168,6 @@ export const __webpack_modules__ = {
|
|
|
164
168
|
}
|
|
165
169
|
}
|
|
166
170
|
}, config);
|
|
167
|
-
return ret;
|
|
168
171
|
}
|
|
169
172
|
const DEFAULT_FILENAME = '[name].[platform].bundle';
|
|
170
173
|
function getFilename(filename) {
|
|
@@ -178,7 +181,6 @@ export const __webpack_modules__ = {
|
|
|
178
181
|
template: finalFilename
|
|
179
182
|
};
|
|
180
183
|
}
|
|
181
|
-
var debug = __webpack_require__("./src/debug.ts");
|
|
182
184
|
const DEFAULT_ENTRY = './src/index.js';
|
|
183
185
|
function toRsbuildEntry(entry) {
|
|
184
186
|
if (void 0 === entry) {
|
|
@@ -1469,9 +1469,9 @@ export const __webpack_modules__ = {
|
|
|
1469
1469
|
if (void 0 === value) return true;
|
|
1470
1470
|
return "string" == typeof value || "boolean" == typeof value;
|
|
1471
1471
|
});
|
|
1472
|
-
const _io40 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
1472
|
+
const _io40 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6589"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1473
1473
|
if ([
|
|
1474
|
-
"__@toStringTag@
|
|
1474
|
+
"__@toStringTag@6589"
|
|
1475
1475
|
].some((prop)=>key === prop)) return true;
|
|
1476
1476
|
const value = input[key];
|
|
1477
1477
|
if (void 0 === value) return true;
|
|
@@ -3076,14 +3076,14 @@ export const __webpack_modules__ = {
|
|
|
3076
3076
|
if (void 0 === value) return true;
|
|
3077
3077
|
return false;
|
|
3078
3078
|
})));
|
|
3079
|
-
const _io148 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
3079
|
+
const _io148 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@6589"] && Object.keys(input).every((key)=>{
|
|
3080
3080
|
if ([
|
|
3081
3081
|
"BYTES_PER_ELEMENT",
|
|
3082
3082
|
"buffer",
|
|
3083
3083
|
"byteLength",
|
|
3084
3084
|
"byteOffset",
|
|
3085
3085
|
"length",
|
|
3086
|
-
"__@toStringTag@
|
|
3086
|
+
"__@toStringTag@6589"
|
|
3087
3087
|
].some((prop)=>key === prop)) return true;
|
|
3088
3088
|
const value = input[key];
|
|
3089
3089
|
if (void 0 === value) return true;
|
|
@@ -5719,7 +5719,7 @@ export const __webpack_modules__ = {
|
|
|
5719
5719
|
if (void 0 === value) return true;
|
|
5720
5720
|
return false;
|
|
5721
5721
|
}));
|
|
5722
|
-
const _io357 = (input, _exceptionable = true)=>(void 0 === input.html || "string" == typeof input.html) && null !== input.js && (void 0 === input.js || "function" == typeof input.js || "string" == typeof input.js) && null !== input.css && (void 0 === input.css || "function" == typeof input.css || "string" == typeof input.css) && null !== input.svg && (void 0 === input.svg || "function" == typeof input.svg || "string" == typeof input.svg) && null !== input.font && (void 0 === input.font || "function" == typeof input.font || "string" == typeof input.font) && null !== input.image && (void 0 === input.image || "function" == typeof input.image || "string" == typeof input.image) && null !== input.media && (void 0 === input.media || "function" == typeof input.media || "string" == typeof input.media) && null !== input.assets && (void 0 === input.assets || "function" == typeof input.assets || "string" == typeof input.assets) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5722
|
+
const _io357 = (input, _exceptionable = true)=>(void 0 === input.html || "string" == typeof input.html) && null !== input.js && (void 0 === input.js || "function" == typeof input.js || "string" == typeof input.js) && null !== input.css && (void 0 === input.css || "function" == typeof input.css || "string" == typeof input.css) && null !== input.svg && (void 0 === input.svg || "function" == typeof input.svg || "string" == typeof input.svg) && null !== input.font && (void 0 === input.font || "function" == typeof input.font || "string" == typeof input.font) && null !== input.image && (void 0 === input.image || "function" == typeof input.image || "string" == typeof input.image) && null !== input.media && (void 0 === input.media || "function" == typeof input.media || "string" == typeof input.media) && (void 0 === input.wasm || "string" == typeof input.wasm) && null !== input.assets && (void 0 === input.assets || "function" == typeof input.assets || "string" == typeof input.assets) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5723
5723
|
if ([
|
|
5724
5724
|
"html",
|
|
5725
5725
|
"js",
|
|
@@ -5728,6 +5728,7 @@ export const __webpack_modules__ = {
|
|
|
5728
5728
|
"font",
|
|
5729
5729
|
"image",
|
|
5730
5730
|
"media",
|
|
5731
|
+
"wasm",
|
|
5731
5732
|
"assets"
|
|
5732
5733
|
].some((prop)=>key === prop)) return true;
|
|
5733
5734
|
const value = input[key];
|
|
@@ -5800,9 +5801,10 @@ export const __webpack_modules__ = {
|
|
|
5800
5801
|
if (void 0 === value) return true;
|
|
5801
5802
|
return false;
|
|
5802
5803
|
}));
|
|
5803
|
-
const _io364 = (input, _exceptionable = true)=>(void 0 === input.minify || "boolean" == typeof input.minify) && null !== input.compress && (void 0 === input.compress || "boolean" == typeof input.compress || "object" == typeof input.compress && null !== input.compress && false === Array.isArray(input.compress) && _io365(input.compress, _exceptionable)) && null !== input.mangle && (void 0 === input.mangle || "boolean" == typeof input.mangle || "object" == typeof input.mangle && null !== input.mangle && false === Array.isArray(input.mangle) && _io366(input.mangle, _exceptionable)) && (void 0 === input.format || "object" == typeof input.format && null !== input.format && false === Array.isArray(input.format) && _io368(input.format, _exceptionable)) && (void 0 === input["module"] || "boolean" == typeof input["module"]) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5804
|
+
const _io364 = (input, _exceptionable = true)=>(void 0 === input.minify || "boolean" == typeof input.minify) && (void 0 === input.ecma || "string" == typeof input.ecma || "number" == typeof input.ecma) && null !== input.compress && (void 0 === input.compress || "boolean" == typeof input.compress || "object" == typeof input.compress && null !== input.compress && false === Array.isArray(input.compress) && _io365(input.compress, _exceptionable)) && null !== input.mangle && (void 0 === input.mangle || "boolean" == typeof input.mangle || "object" == typeof input.mangle && null !== input.mangle && false === Array.isArray(input.mangle) && _io366(input.mangle, _exceptionable)) && (void 0 === input.format || "object" == typeof input.format && null !== input.format && false === Array.isArray(input.format) && _io368(input.format, _exceptionable)) && (void 0 === input["module"] || "boolean" == typeof input["module"]) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5804
5805
|
if ([
|
|
5805
5806
|
"minify",
|
|
5807
|
+
"ecma",
|
|
5806
5808
|
"compress",
|
|
5807
5809
|
"mangle",
|
|
5808
5810
|
"format",
|
|
@@ -6280,11 +6282,13 @@ export const __webpack_modules__ = {
|
|
|
6280
6282
|
if (void 0 === value) return true;
|
|
6281
6283
|
return false;
|
|
6282
6284
|
}));
|
|
6283
|
-
const _io401 = (input, _exceptionable = true)=>(void 0 === input.pre || Array.isArray(input.pre) && input.pre.every((elem, _index328)=>"string" == typeof elem)) && (void 0 === input.post || Array.isArray(input.post) && input.post.every((elem, _index329)=>"string" == typeof elem)) && "string" == typeof input.name && (void 0 === input.remove || Array.isArray(input.remove) && input.remove.every((elem, _index330)=>"string" == typeof elem)) && true && (2 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6285
|
+
const _io401 = (input, _exceptionable = true)=>(void 0 === input.pre || Array.isArray(input.pre) && input.pre.every((elem, _index328)=>"string" == typeof elem)) && (void 0 === input.post || Array.isArray(input.post) && input.post.every((elem, _index329)=>"string" == typeof elem)) && "string" == typeof input.name && null !== input.apply && (void 0 === input.apply || "function" == typeof input.apply || "serve" === input.apply || "build" === input.apply) && (void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce) && (void 0 === input.remove || Array.isArray(input.remove) && input.remove.every((elem, _index330)=>"string" == typeof elem)) && true && (2 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6284
6286
|
if ([
|
|
6285
6287
|
"pre",
|
|
6286
6288
|
"post",
|
|
6287
6289
|
"name",
|
|
6290
|
+
"apply",
|
|
6291
|
+
"enforce",
|
|
6288
6292
|
"remove",
|
|
6289
6293
|
"setup"
|
|
6290
6294
|
].some((prop)=>key === prop)) return true;
|
|
@@ -6292,9 +6296,9 @@ export const __webpack_modules__ = {
|
|
|
6292
6296
|
if (void 0 === value) return true;
|
|
6293
6297
|
return false;
|
|
6294
6298
|
}));
|
|
6295
|
-
const _io402 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
6299
|
+
const _io402 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6589"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6296
6300
|
if ([
|
|
6297
|
-
"__@toStringTag@
|
|
6301
|
+
"__@toStringTag@6589"
|
|
6298
6302
|
].some((prop)=>key === prop)) return true;
|
|
6299
6303
|
const value = input[key];
|
|
6300
6304
|
if (void 0 === value) return true;
|
|
@@ -6883,18 +6887,18 @@ export const __webpack_modules__ = {
|
|
|
6883
6887
|
return false;
|
|
6884
6888
|
})();
|
|
6885
6889
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
6886
|
-
if (void 0 !== input["__@toStringTag@
|
|
6890
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _io148(input, _exceptionable);
|
|
6887
6891
|
if (void 0 !== input.pem) return _io149(input, _exceptionable);
|
|
6888
6892
|
return false;
|
|
6889
6893
|
})();
|
|
6890
6894
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
6891
|
-
if (void 0 !== input["__@toStringTag@
|
|
6895
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _io148(input, _exceptionable);
|
|
6892
6896
|
if (void 0 !== input.buf) return _io150(input, _exceptionable);
|
|
6893
6897
|
return false;
|
|
6894
6898
|
})();
|
|
6895
6899
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
6896
6900
|
if (void 0 !== input.name) return _io401(input, _exceptionable);
|
|
6897
|
-
if (void 0 !== input["__@toStringTag@
|
|
6901
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _io402(input, _exceptionable);
|
|
6898
6902
|
return false;
|
|
6899
6903
|
})();
|
|
6900
6904
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -9260,14 +9264,14 @@ export const __webpack_modules__ = {
|
|
|
9260
9264
|
}).every((flag)=>flag)
|
|
9261
9265
|
].every((flag)=>flag);
|
|
9262
9266
|
const _vo40 = (input, _path, _exceptionable = true)=>[
|
|
9263
|
-
"string" == typeof input["__@toStringTag@
|
|
9264
|
-
path: _path + "[\"__@toStringTag@
|
|
9267
|
+
"string" == typeof input["__@toStringTag@6589"] || _report(_exceptionable, {
|
|
9268
|
+
path: _path + "[\"__@toStringTag@6589\"]",
|
|
9265
9269
|
expected: "string",
|
|
9266
|
-
value: input["__@toStringTag@
|
|
9270
|
+
value: input["__@toStringTag@6589"]
|
|
9267
9271
|
}),
|
|
9268
9272
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
9269
9273
|
if ([
|
|
9270
|
-
"__@toStringTag@
|
|
9274
|
+
"__@toStringTag@6589"
|
|
9271
9275
|
].some((prop)=>key === prop)) return true;
|
|
9272
9276
|
const value = input[key];
|
|
9273
9277
|
if (void 0 === value) return true;
|
|
@@ -17820,10 +17824,10 @@ export const __webpack_modules__ = {
|
|
|
17820
17824
|
expected: "number",
|
|
17821
17825
|
value: input.length
|
|
17822
17826
|
}),
|
|
17823
|
-
"Uint8Array" === input["__@toStringTag@
|
|
17824
|
-
path: _path + "[\"__@toStringTag@
|
|
17827
|
+
"Uint8Array" === input["__@toStringTag@6589"] || _report(_exceptionable, {
|
|
17828
|
+
path: _path + "[\"__@toStringTag@6589\"]",
|
|
17825
17829
|
expected: "\"Uint8Array\"",
|
|
17826
|
-
value: input["__@toStringTag@
|
|
17830
|
+
value: input["__@toStringTag@6589"]
|
|
17827
17831
|
}),
|
|
17828
17832
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
17829
17833
|
if ([
|
|
@@ -17832,7 +17836,7 @@ export const __webpack_modules__ = {
|
|
|
17832
17836
|
"byteLength",
|
|
17833
17837
|
"byteOffset",
|
|
17834
17838
|
"length",
|
|
17835
|
-
"__@toStringTag@
|
|
17839
|
+
"__@toStringTag@6589"
|
|
17836
17840
|
].some((prop)=>key === prop)) return true;
|
|
17837
17841
|
const value = input[key];
|
|
17838
17842
|
if (void 0 === value) return true;
|
|
@@ -31793,6 +31797,11 @@ export const __webpack_modules__ = {
|
|
|
31793
31797
|
expected: "(string | undefined)",
|
|
31794
31798
|
value: input.media
|
|
31795
31799
|
})),
|
|
31800
|
+
void 0 === input.wasm || "string" == typeof input.wasm || _report(_exceptionable, {
|
|
31801
|
+
path: _path + ".wasm",
|
|
31802
|
+
expected: "(string | undefined)",
|
|
31803
|
+
value: input.wasm
|
|
31804
|
+
}),
|
|
31796
31805
|
(null !== input.assets || _report(_exceptionable, {
|
|
31797
31806
|
path: _path + ".assets",
|
|
31798
31807
|
expected: "(string | undefined)",
|
|
@@ -31811,6 +31820,7 @@ export const __webpack_modules__ = {
|
|
|
31811
31820
|
"font",
|
|
31812
31821
|
"image",
|
|
31813
31822
|
"media",
|
|
31823
|
+
"wasm",
|
|
31814
31824
|
"assets"
|
|
31815
31825
|
].some((prop)=>key === prop)) return true;
|
|
31816
31826
|
const value = input[key];
|
|
@@ -32150,6 +32160,11 @@ export const __webpack_modules__ = {
|
|
|
32150
32160
|
expected: "(boolean | undefined)",
|
|
32151
32161
|
value: input.minify
|
|
32152
32162
|
}),
|
|
32163
|
+
void 0 === input.ecma || "string" == typeof input.ecma || "number" == typeof input.ecma || _report(_exceptionable, {
|
|
32164
|
+
path: _path + ".ecma",
|
|
32165
|
+
expected: "(number | string | undefined)",
|
|
32166
|
+
value: input.ecma
|
|
32167
|
+
}),
|
|
32153
32168
|
(null !== input.compress || _report(_exceptionable, {
|
|
32154
32169
|
path: _path + ".compress",
|
|
32155
32170
|
expected: "(TerserCompressOptions.o1 | boolean | undefined)",
|
|
@@ -32193,6 +32208,7 @@ export const __webpack_modules__ = {
|
|
|
32193
32208
|
0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
32194
32209
|
if ([
|
|
32195
32210
|
"minify",
|
|
32211
|
+
"ecma",
|
|
32196
32212
|
"compress",
|
|
32197
32213
|
"mangle",
|
|
32198
32214
|
"format",
|
|
@@ -34649,6 +34665,20 @@ export const __webpack_modules__ = {
|
|
|
34649
34665
|
expected: "string",
|
|
34650
34666
|
value: input.name
|
|
34651
34667
|
}),
|
|
34668
|
+
(null !== input.apply || _report(_exceptionable, {
|
|
34669
|
+
path: _path + ".apply",
|
|
34670
|
+
expected: "(\"build\" | \"serve\" | undefined)",
|
|
34671
|
+
value: input.apply
|
|
34672
|
+
})) && (void 0 === input.apply || "function" == typeof input.apply || "serve" === input.apply || "build" === input.apply || _report(_exceptionable, {
|
|
34673
|
+
path: _path + ".apply",
|
|
34674
|
+
expected: "(\"build\" | \"serve\" | undefined)",
|
|
34675
|
+
value: input.apply
|
|
34676
|
+
})),
|
|
34677
|
+
void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce || _report(_exceptionable, {
|
|
34678
|
+
path: _path + ".enforce",
|
|
34679
|
+
expected: "(\"post\" | \"pre\" | undefined)",
|
|
34680
|
+
value: input.enforce
|
|
34681
|
+
}),
|
|
34652
34682
|
void 0 === input.remove || (Array.isArray(input.remove) || _report(_exceptionable, {
|
|
34653
34683
|
path: _path + ".remove",
|
|
34654
34684
|
expected: "(Array<string> | undefined)",
|
|
@@ -34668,6 +34698,8 @@ export const __webpack_modules__ = {
|
|
|
34668
34698
|
"pre",
|
|
34669
34699
|
"post",
|
|
34670
34700
|
"name",
|
|
34701
|
+
"apply",
|
|
34702
|
+
"enforce",
|
|
34671
34703
|
"remove",
|
|
34672
34704
|
"setup"
|
|
34673
34705
|
].some((prop)=>key === prop)) return true;
|
|
@@ -34681,14 +34713,14 @@ export const __webpack_modules__ = {
|
|
|
34681
34713
|
}).every((flag)=>flag)
|
|
34682
34714
|
].every((flag)=>flag);
|
|
34683
34715
|
const _vo402 = (input, _path, _exceptionable = true)=>[
|
|
34684
|
-
"string" == typeof input["__@toStringTag@
|
|
34685
|
-
path: _path + "[\"__@toStringTag@
|
|
34716
|
+
"string" == typeof input["__@toStringTag@6589"] || _report(_exceptionable, {
|
|
34717
|
+
path: _path + "[\"__@toStringTag@6589\"]",
|
|
34686
34718
|
expected: "string",
|
|
34687
|
-
value: input["__@toStringTag@
|
|
34719
|
+
value: input["__@toStringTag@6589"]
|
|
34688
34720
|
}),
|
|
34689
34721
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
34690
34722
|
if ([
|
|
34691
|
-
"__@toStringTag@
|
|
34723
|
+
"__@toStringTag@6589"
|
|
34692
34724
|
].some((prop)=>key === prop)) return true;
|
|
34693
34725
|
const value = input[key];
|
|
34694
34726
|
if (void 0 === value) return true;
|
|
@@ -37425,7 +37457,7 @@ export const __webpack_modules__ = {
|
|
|
37425
37457
|
});
|
|
37426
37458
|
})();
|
|
37427
37459
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
37428
|
-
if (void 0 !== input["__@toStringTag@
|
|
37460
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _vo148(input, _path, _exceptionable);
|
|
37429
37461
|
if (void 0 !== input.pem) return _vo149(input, _path, _exceptionable);
|
|
37430
37462
|
return _report(_exceptionable, {
|
|
37431
37463
|
path: _path,
|
|
@@ -37434,7 +37466,7 @@ export const __webpack_modules__ = {
|
|
|
37434
37466
|
});
|
|
37435
37467
|
})();
|
|
37436
37468
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
37437
|
-
if (void 0 !== input["__@toStringTag@
|
|
37469
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _vo148(input, _path, _exceptionable);
|
|
37438
37470
|
if (void 0 !== input.buf) return _vo150(input, _path, _exceptionable);
|
|
37439
37471
|
return _report(_exceptionable, {
|
|
37440
37472
|
path: _path,
|
|
@@ -37444,7 +37476,7 @@ export const __webpack_modules__ = {
|
|
|
37444
37476
|
})();
|
|
37445
37477
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
37446
37478
|
if (void 0 !== input.name) return _vo401(input, _path, _exceptionable);
|
|
37447
|
-
if (void 0 !== input["__@toStringTag@
|
|
37479
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _vo402(input, _path, _exceptionable);
|
|
37448
37480
|
return _report(_exceptionable, {
|
|
37449
37481
|
path: _path,
|
|
37450
37482
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
|
@@ -19,11 +19,11 @@ export const __webpack_modules__ = {
|
|
|
19
19
|
config,
|
|
20
20
|
debug: _debug_js__WEBPACK_IMPORTED_MODULE_1__.fF,
|
|
21
21
|
async exit (code) {
|
|
22
|
-
const { exit } = await
|
|
22
|
+
const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
|
|
23
23
|
return exit(code);
|
|
24
24
|
},
|
|
25
25
|
logger: _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger,
|
|
26
|
-
version: _version_js__WEBPACK_IMPORTED_MODULE_2__.
|
|
26
|
+
version: _version_js__WEBPACK_IMPORTED_MODULE_2__.version
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -14,8 +14,7 @@ export const __webpack_modules__ = {
|
|
|
14
14
|
Promise.all([
|
|
15
15
|
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
|
|
16
16
|
__webpack_require__.e("src_plugins_inspect_plugin_ts")
|
|
17
|
-
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts")).then(({ pluginInspect })=>pluginInspect(config))
|
|
18
|
-
__webpack_require__.e("src_plugins_stats_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/stats.plugin.ts")).then(({ pluginStats })=>pluginStats())
|
|
17
|
+
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts")).then(({ pluginInspect })=>pluginInspect(config))
|
|
19
18
|
]);
|
|
20
19
|
rsbuildInstance.addPlugins(await Promise.all(debugPlugins));
|
|
21
20
|
}
|
|
@@ -7,10 +7,8 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginRsdoctor: ()=>pluginRsdoctor
|
|
9
9
|
});
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
13
|
-
}
|
|
10
|
+
var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
|
|
11
|
+
var _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/is-ci.ts");
|
|
14
12
|
function pluginRsdoctor(options) {
|
|
15
13
|
return {
|
|
16
14
|
name: 'lynx:rsbuild:rsdoctor',
|
|
@@ -27,7 +25,7 @@ export const __webpack_modules__ = {
|
|
|
27
25
|
if (registered) continue;
|
|
28
26
|
config.plugins ??= [];
|
|
29
27
|
const defaultOptions = {
|
|
30
|
-
disableClientServer:
|
|
28
|
+
disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.y)(),
|
|
31
29
|
supports: {
|
|
32
30
|
banner: true
|
|
33
31
|
},
|
|
@@ -42,12 +40,20 @@ export const __webpack_modules__ = {
|
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
|
-
config.plugins.push(new RsdoctorRspackPlugin((0,
|
|
43
|
+
config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
|
|
46
44
|
}
|
|
47
|
-
|
|
45
|
+
_rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
|
|
48
46
|
});
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
49
|
}
|
|
50
|
+
},
|
|
51
|
+
"./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
52
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
53
|
+
y: ()=>isCI
|
|
54
|
+
});
|
|
55
|
+
function isCI() {
|
|
56
|
+
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
};
|
package/dist/src_version_ts.js
CHANGED
|
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
|
|
|
10
10
|
});
|
|
11
11
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
12
12
|
var package_namespaceObject = {
|
|
13
|
-
i8: "0.10.
|
|
13
|
+
i8: "0.10.4"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"README.md"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rsbuild/core": "1.4.
|
|
49
|
+
"@rsbuild/core": "1.4.12",
|
|
50
50
|
"@rsbuild/plugin-css-minimizer": "1.0.2",
|
|
51
|
-
"@rsdoctor/rspack-plugin": "1.1.
|
|
51
|
+
"@rsdoctor/rspack-plugin": "1.1.10",
|
|
52
52
|
"@lynx-js/chunk-loading-webpack-plugin": "^0.3.0",
|
|
53
53
|
"@lynx-js/webpack-dev-transport": "^0.2.0",
|
|
54
54
|
"@lynx-js/websocket": "^0.0.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@microsoft/api-extractor": "7.52.
|
|
57
|
+
"@microsoft/api-extractor": "7.52.10",
|
|
58
58
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
59
59
|
"@rsbuild/webpack": "1.3.2",
|
|
60
60
|
"@samchon/openapi": "4.3.2",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const __webpack_ids__ = [
|
|
2
|
-
"src_plugins_stats_plugin_ts"
|
|
3
|
-
];
|
|
4
|
-
export const __webpack_modules__ = {
|
|
5
|
-
"./src/plugins/stats.plugin.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
|
-
__webpack_require__.r(__webpack_exports__);
|
|
7
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
8
|
-
pluginStats: ()=>pluginStats
|
|
9
|
-
});
|
|
10
|
-
function pluginStats() {
|
|
11
|
-
return {
|
|
12
|
-
name: 'lynx:rsbuild:stats',
|
|
13
|
-
setup (api) {
|
|
14
|
-
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig(config, {
|
|
15
|
-
performance: {
|
|
16
|
-
profile: true
|
|
17
|
-
}
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|