@lynx-js/rspeedy-canary 0.10.5-canary-20250803-e3e395d8 → 0.10.6-canary-20250805-c071a441
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 +7 -1
- package/dist/index.js +10 -4
- package/dist/src_cli_build_ts.js +9 -3
- package/dist/src_cli_commands_ts.js +1 -1
- package/dist/src_cli_dev_ts.js +9 -3
- package/dist/src_cli_inspect_ts.js +9 -3
- package/dist/src_cli_preview_ts.js +9 -3
- package/dist/src_config_validate_ts.js +2204 -396
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_rsdoctor_plugin_ts.js +7 -13
- package/dist/src_version_ts.js +1 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.10.
|
|
3
|
+
## 0.10.6-canary-20250805112817-c071a441a54ab2cbbdde723e7546afa534d13c10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix deno compatibility ([#1412](https://github.com/lynx-family/lynx-stack/pull/1412))
|
|
8
|
+
|
|
9
|
+
## 0.10.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
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.5"
|
|
116
116
|
};
|
|
117
117
|
const version = package_namespaceObject.i8;
|
|
118
118
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -472,8 +472,9 @@ async function loadConfig(loadConfigOptions) {
|
|
|
472
472
|
let { configPath } = loadConfigOptions;
|
|
473
473
|
if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
|
|
474
474
|
const specifier = pathToFileURL(configPath).toString();
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
let unregister;
|
|
476
|
+
unregister = shouldUseNativeImport(configPath) ? ()=>{} : register({
|
|
477
|
+
load: !hasNativeTSSupport(),
|
|
477
478
|
resolve: true
|
|
478
479
|
});
|
|
479
480
|
try {
|
|
@@ -491,9 +492,10 @@ async function loadConfig(loadConfigOptions) {
|
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
494
|
function shouldUseNativeImport(configPath) {
|
|
494
|
-
return isJavaScriptPath(configPath) ||
|
|
495
|
+
return isJavaScriptPath(configPath) || isDeno();
|
|
495
496
|
}
|
|
496
497
|
function hasNativeTSSupport() {
|
|
498
|
+
if (isDeno()) return true;
|
|
497
499
|
if (process.features.typescript) return true;
|
|
498
500
|
if (false === process.features.typescript) return false;
|
|
499
501
|
const { NODE_OPTIONS } = process.env;
|
|
@@ -508,6 +510,10 @@ function isJavaScriptPath(configPath) {
|
|
|
508
510
|
'.cjs'
|
|
509
511
|
].includes(ext);
|
|
510
512
|
}
|
|
513
|
+
function isDeno() {
|
|
514
|
+
if ('undefined' != typeof Deno || process.versions?.deno) return true;
|
|
515
|
+
return false;
|
|
516
|
+
}
|
|
511
517
|
var version = __webpack_require__("./src/version.ts");
|
|
512
518
|
var __webpack_exports__logger = core_.logger;
|
|
513
519
|
var __webpack_exports__rsbuildVersion = version.Q0;
|
package/dist/src_cli_build_ts.js
CHANGED
|
@@ -66,8 +66,9 @@ export const __webpack_modules__ = {
|
|
|
66
66
|
let { configPath } = loadConfigOptions;
|
|
67
67
|
if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
|
|
68
68
|
const specifier = (0, external_node_url_.pathToFileURL)(configPath).toString();
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
let unregister;
|
|
70
|
+
unregister = shouldUseNativeImport(configPath) ? ()=>{} : (0, register_.register)({
|
|
71
|
+
load: !hasNativeTSSupport(),
|
|
71
72
|
resolve: true
|
|
72
73
|
});
|
|
73
74
|
try {
|
|
@@ -85,9 +86,10 @@ export const __webpack_modules__ = {
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
function shouldUseNativeImport(configPath) {
|
|
88
|
-
return isJavaScriptPath(configPath) ||
|
|
89
|
+
return isJavaScriptPath(configPath) || isDeno();
|
|
89
90
|
}
|
|
90
91
|
function hasNativeTSSupport() {
|
|
92
|
+
if (isDeno()) return true;
|
|
91
93
|
if (process.features.typescript) return true;
|
|
92
94
|
if (false === process.features.typescript) return false;
|
|
93
95
|
const { NODE_OPTIONS } = process.env;
|
|
@@ -102,6 +104,10 @@ export const __webpack_modules__ = {
|
|
|
102
104
|
'.cjs'
|
|
103
105
|
].includes(ext);
|
|
104
106
|
}
|
|
107
|
+
function isDeno() {
|
|
108
|
+
if ('undefined' != typeof Deno || process.versions?.deno) return true;
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
105
111
|
async function init(cwd, options) {
|
|
106
112
|
const { content: rspeedyConfig, configPath } = await loadConfig({
|
|
107
113
|
cwd,
|
|
@@ -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.5"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/dist/src_cli_dev_ts.js
CHANGED
|
@@ -109,8 +109,9 @@ export const __webpack_modules__ = {
|
|
|
109
109
|
let { configPath } = loadConfigOptions;
|
|
110
110
|
if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
|
|
111
111
|
const specifier = (0, external_node_url_.pathToFileURL)(configPath).toString();
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
let unregister;
|
|
113
|
+
unregister = shouldUseNativeImport(configPath) ? ()=>{} : (0, register_.register)({
|
|
114
|
+
load: !hasNativeTSSupport(),
|
|
114
115
|
resolve: true
|
|
115
116
|
});
|
|
116
117
|
try {
|
|
@@ -128,9 +129,10 @@ export const __webpack_modules__ = {
|
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
function shouldUseNativeImport(configPath) {
|
|
131
|
-
return isJavaScriptPath(configPath) ||
|
|
132
|
+
return isJavaScriptPath(configPath) || isDeno();
|
|
132
133
|
}
|
|
133
134
|
function hasNativeTSSupport() {
|
|
135
|
+
if (isDeno()) return true;
|
|
134
136
|
if (process.features.typescript) return true;
|
|
135
137
|
if (false === process.features.typescript) return false;
|
|
136
138
|
const { NODE_OPTIONS } = process.env;
|
|
@@ -145,6 +147,10 @@ export const __webpack_modules__ = {
|
|
|
145
147
|
'.cjs'
|
|
146
148
|
].includes(ext);
|
|
147
149
|
}
|
|
150
|
+
function isDeno() {
|
|
151
|
+
if ('undefined' != typeof Deno || process.versions?.deno) return true;
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
148
154
|
async function init(cwd, options) {
|
|
149
155
|
const { content: rspeedyConfig, configPath } = await loadConfig({
|
|
150
156
|
cwd,
|
|
@@ -43,8 +43,9 @@ export const __webpack_modules__ = {
|
|
|
43
43
|
let { configPath } = loadConfigOptions;
|
|
44
44
|
if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
|
|
45
45
|
const specifier = (0, external_node_url_.pathToFileURL)(configPath).toString();
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
let unregister;
|
|
47
|
+
unregister = shouldUseNativeImport(configPath) ? ()=>{} : (0, register_.register)({
|
|
48
|
+
load: !hasNativeTSSupport(),
|
|
48
49
|
resolve: true
|
|
49
50
|
});
|
|
50
51
|
try {
|
|
@@ -62,9 +63,10 @@ export const __webpack_modules__ = {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
function shouldUseNativeImport(configPath) {
|
|
65
|
-
return isJavaScriptPath(configPath) ||
|
|
66
|
+
return isJavaScriptPath(configPath) || isDeno();
|
|
66
67
|
}
|
|
67
68
|
function hasNativeTSSupport() {
|
|
69
|
+
if (isDeno()) return true;
|
|
68
70
|
if (process.features.typescript) return true;
|
|
69
71
|
if (false === process.features.typescript) return false;
|
|
70
72
|
const { NODE_OPTIONS } = process.env;
|
|
@@ -79,6 +81,10 @@ export const __webpack_modules__ = {
|
|
|
79
81
|
'.cjs'
|
|
80
82
|
].includes(ext);
|
|
81
83
|
}
|
|
84
|
+
function isDeno() {
|
|
85
|
+
if ('undefined' != typeof Deno || process.versions?.deno) return true;
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
82
88
|
async function init(cwd, options) {
|
|
83
89
|
const { content: rspeedyConfig, configPath } = await loadConfig({
|
|
84
90
|
cwd,
|
|
@@ -43,8 +43,9 @@ export const __webpack_modules__ = {
|
|
|
43
43
|
let { configPath } = loadConfigOptions;
|
|
44
44
|
if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
|
|
45
45
|
const specifier = (0, external_node_url_.pathToFileURL)(configPath).toString();
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
let unregister;
|
|
47
|
+
unregister = shouldUseNativeImport(configPath) ? ()=>{} : (0, register_.register)({
|
|
48
|
+
load: !hasNativeTSSupport(),
|
|
48
49
|
resolve: true
|
|
49
50
|
});
|
|
50
51
|
try {
|
|
@@ -62,9 +63,10 @@ export const __webpack_modules__ = {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
function shouldUseNativeImport(configPath) {
|
|
65
|
-
return isJavaScriptPath(configPath) ||
|
|
66
|
+
return isJavaScriptPath(configPath) || isDeno();
|
|
66
67
|
}
|
|
67
68
|
function hasNativeTSSupport() {
|
|
69
|
+
if (isDeno()) return true;
|
|
68
70
|
if (process.features.typescript) return true;
|
|
69
71
|
if (false === process.features.typescript) return false;
|
|
70
72
|
const { NODE_OPTIONS } = process.env;
|
|
@@ -79,6 +81,10 @@ export const __webpack_modules__ = {
|
|
|
79
81
|
'.cjs'
|
|
80
82
|
].includes(ext);
|
|
81
83
|
}
|
|
84
|
+
function isDeno() {
|
|
85
|
+
if ('undefined' != typeof Deno || process.versions?.deno) return true;
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
82
88
|
async function init(cwd, options) {
|
|
83
89
|
const { content: rspeedyConfig, configPath } = await loadConfig({
|
|
84
90
|
cwd,
|