@lynx-js/rspeedy 0.10.0 → 0.10.2
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 +17 -0
- package/dist/index.js +6 -1
- package/dist/src_cli_build_ts.js +5 -0
- package/dist/src_cli_commands_ts.js +1 -1
- package/dist/src_cli_dev_ts.js +5 -0
- package/dist/src_cli_inspect_ts.js +6 -1
- package/dist/src_cli_preview_ts.js +5 -0
- package/dist/src_config_validate_ts.js +1905 -1856
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_dev_plugin_ts.js +12 -18
- package/dist/src_plugins_index_ts.js +1 -1
- package/dist/src_plugins_rsdoctor_plugin_ts.js +7 -13
- package/dist/src_plugins_swc_plugin_ts.js +8 -5
- package/dist/src_plugins_target_plugin_ts.js +5 -5
- package/dist/src_version_ts.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump Rsbuild v1.4.6 with Rspack v1.4.8. ([#1282](https://github.com/lynx-family/lynx-stack/pull/1282))
|
|
8
|
+
|
|
9
|
+
## 0.10.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix `rspeedy build --mode development` failed. ([#1252](https://github.com/lynx-family/lynx-stack/pull/1252))
|
|
14
|
+
|
|
15
|
+
- Bump Rsbuild v1.4.5 with Rspack v1.4.5 ([#1239](https://github.com/lynx-family/lynx-stack/pull/1239))
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`0a3c89d`](https://github.com/lynx-family/lynx-stack/commit/0a3c89d5776009d1f32d444e77be834fa2b79645)]:
|
|
18
|
+
- @lynx-js/webpack-dev-transport@0.2.0
|
|
19
|
+
|
|
3
20
|
## 0.10.0
|
|
4
21
|
|
|
5
22
|
### Minor 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.2"
|
|
116
116
|
};
|
|
117
117
|
const version = package_namespaceObject.i8;
|
|
118
118
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -255,6 +255,11 @@ var external_node_path_ = __webpack_require__("node:path");
|
|
|
255
255
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
256
256
|
function applyDefaultRspeedyConfig(config) {
|
|
257
257
|
const ret = (0, core_.mergeRsbuildConfig)({
|
|
258
|
+
mode: (()=>{
|
|
259
|
+
if (config.mode) return config.mode;
|
|
260
|
+
const nodeEnv = process.env['NODE_ENV'];
|
|
261
|
+
return 'production' === nodeEnv || 'development' === nodeEnv ? nodeEnv : 'none';
|
|
262
|
+
})(),
|
|
258
263
|
output: {
|
|
259
264
|
filename: getFilename(config.output?.filename),
|
|
260
265
|
inlineScripts: true
|
package/dist/src_cli_build_ts.js
CHANGED
|
@@ -142,6 +142,11 @@ export const __webpack_modules__ = {
|
|
|
142
142
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
143
143
|
function applyDefaultRspeedyConfig(config) {
|
|
144
144
|
const ret = (0, core_.mergeRsbuildConfig)({
|
|
145
|
+
mode: (()=>{
|
|
146
|
+
if (config.mode) return config.mode;
|
|
147
|
+
const nodeEnv = process.env['NODE_ENV'];
|
|
148
|
+
return 'production' === nodeEnv || 'development' === nodeEnv ? nodeEnv : 'none';
|
|
149
|
+
})(),
|
|
145
150
|
output: {
|
|
146
151
|
filename: getFilename(config.output?.filename),
|
|
147
152
|
inlineScripts: true
|
|
@@ -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.2"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/dist/src_cli_dev_ts.js
CHANGED
|
@@ -185,6 +185,11 @@ export const __webpack_modules__ = {
|
|
|
185
185
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
186
186
|
function applyDefaultRspeedyConfig(config) {
|
|
187
187
|
const ret = (0, core_.mergeRsbuildConfig)({
|
|
188
|
+
mode: (()=>{
|
|
189
|
+
if (config.mode) return config.mode;
|
|
190
|
+
const nodeEnv = process.env['NODE_ENV'];
|
|
191
|
+
return 'production' === nodeEnv || 'development' === nodeEnv ? nodeEnv : 'none';
|
|
192
|
+
})(),
|
|
188
193
|
output: {
|
|
189
194
|
filename: getFilename(config.output?.filename),
|
|
190
195
|
inlineScripts: true
|
|
@@ -125,7 +125,7 @@ export const __webpack_modules__ = {
|
|
|
125
125
|
const { createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_3__.S)(cwd, inspectOptions);
|
|
126
126
|
const rspeedy = await (0, _create_rspeedy_js__WEBPACK_IMPORTED_MODULE_2__.S)(createRspeedyOptions);
|
|
127
127
|
await rspeedy.inspectConfig({
|
|
128
|
-
mode: inspectOptions.mode ??
|
|
128
|
+
mode: inspectOptions.mode ?? rspeedy.getRspeedyConfig().mode ?? 'development',
|
|
129
129
|
verbose: inspectOptions.verbose ?? false,
|
|
130
130
|
outputPath: inspectOptions.output,
|
|
131
131
|
writeToDisk: true
|
|
@@ -145,6 +145,11 @@ export const __webpack_modules__ = {
|
|
|
145
145
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
146
146
|
function applyDefaultRspeedyConfig(config) {
|
|
147
147
|
const ret = (0, core_.mergeRsbuildConfig)({
|
|
148
|
+
mode: (()=>{
|
|
149
|
+
if (config.mode) return config.mode;
|
|
150
|
+
const nodeEnv = process.env['NODE_ENV'];
|
|
151
|
+
return 'production' === nodeEnv || 'development' === nodeEnv ? nodeEnv : 'none';
|
|
152
|
+
})(),
|
|
148
153
|
output: {
|
|
149
154
|
filename: getFilename(config.output?.filename),
|
|
150
155
|
inlineScripts: true
|
|
@@ -147,6 +147,11 @@ export const __webpack_modules__ = {
|
|
|
147
147
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
148
148
|
function applyDefaultRspeedyConfig(config) {
|
|
149
149
|
const ret = (0, core_.mergeRsbuildConfig)({
|
|
150
|
+
mode: (()=>{
|
|
151
|
+
if (config.mode) return config.mode;
|
|
152
|
+
const nodeEnv = process.env['NODE_ENV'];
|
|
153
|
+
return 'production' === nodeEnv || 'development' === nodeEnv ? nodeEnv : 'none';
|
|
154
|
+
})(),
|
|
150
155
|
output: {
|
|
151
156
|
filename: getFilename(config.output?.filename),
|
|
152
157
|
inlineScripts: true
|