@lynx-js/rspeedy 0.9.8 → 0.9.9
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 +8 -0
- package/dist/cli/start.js +18 -18
- package/dist/index.js +11 -11
- package/dist/register/hooks.js +16 -16
- package/dist/register/index.js +3 -3
- package/dist/src_cli_build_ts.js +3 -3
- package/dist/src_cli_commands_ts.js +3 -3
- package/dist/src_cli_dev_ts.js +3 -3
- package/dist/src_cli_inspect_ts.js +3 -3
- package/dist/src_cli_preview_ts.js +3 -3
- package/dist/src_config_validate_ts.js +2297 -1962
- package/dist/src_plugins_dev_plugin_ts.js +2 -2
- package/dist/src_plugins_emitOnErrors_plugin_ts.js +21 -0
- package/dist/src_plugins_index_ts.js +2 -1
- package/dist/src_version_ts.js +3 -3
- package/dist/{vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-b558be.js → vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc.js} +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.9.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Set `optimization.emitOnErrors` when `DEBUG` is enabled. ([#1000](https://github.com/lynx-family/lynx-stack/pull/1000))
|
|
8
|
+
|
|
9
|
+
This is useful for debugging PrimJS Syntax error.
|
|
10
|
+
|
|
3
11
|
## 0.9.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cli/start.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
4
|
+
import { logger } from "@rsbuild/core";
|
|
5
5
|
var __webpack_modules__ = {
|
|
6
6
|
"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
|
|
7
7
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
@@ -115,20 +115,20 @@ const label = picocolors_default().bgCyan('lynx');
|
|
|
115
115
|
const debug = (message)=>{
|
|
116
116
|
if (isDebug()) {
|
|
117
117
|
const result = 'string' == typeof message ? message : message();
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
logger.level = 'verbose';
|
|
119
|
+
logger.debug(`${label} ${result}`);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
function tryGetPackageFolderFor(resolvedFileOrFolderPath) {
|
|
123
|
-
if (
|
|
124
|
-
const parentFolder =
|
|
123
|
+
if (existsSync(join(resolvedFileOrFolderPath, 'package.json'))) return resolvedFileOrFolderPath;
|
|
124
|
+
const parentFolder = dirname(resolvedFileOrFolderPath);
|
|
125
125
|
if (!parentFolder || parentFolder === resolvedFileOrFolderPath) return;
|
|
126
126
|
return tryGetPackageFolderFor(parentFolder);
|
|
127
127
|
}
|
|
128
128
|
function tryStartLocalRspeedy(root = process.cwd()) {
|
|
129
129
|
if (process.argv.includes("--unmanaged")) {
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
logger.info(`Bypassing the Rspeedy version selector because ${JSON.stringify("--unmanaged")} was specified.`);
|
|
131
|
+
logger.info();
|
|
132
132
|
return false;
|
|
133
133
|
}
|
|
134
134
|
debug(`Searching for a locally installed version of Rspeedy. Use the ${JSON.stringify("--unmanaged")} flag if you want to avoid this.`);
|
|
@@ -138,8 +138,8 @@ function tryStartLocalRspeedy(root = process.cwd()) {
|
|
|
138
138
|
let rspeedyEntryPoint;
|
|
139
139
|
let packageJson;
|
|
140
140
|
try {
|
|
141
|
-
const packageJsonPath =
|
|
142
|
-
const packageJsonContent =
|
|
141
|
+
const packageJsonPath = join(projectFolder, 'package.json');
|
|
142
|
+
const packageJsonContent = readFileSync(packageJsonPath).toString();
|
|
143
143
|
try {
|
|
144
144
|
packageJson = JSON.parse(packageJsonContent);
|
|
145
145
|
} catch (error) {
|
|
@@ -149,12 +149,12 @@ function tryStartLocalRspeedy(root = process.cwd()) {
|
|
|
149
149
|
debug('The project does not have a dependency on Rspeedy');
|
|
150
150
|
return false;
|
|
151
151
|
}
|
|
152
|
-
const rspeedyFolder =
|
|
153
|
-
rspeedyEntryPoint =
|
|
154
|
-
if (!
|
|
152
|
+
const rspeedyFolder = join(projectFolder, 'node_modules', ..."@lynx-js/rspeedy".split('/'));
|
|
153
|
+
rspeedyEntryPoint = join(rspeedyFolder, 'dist', 'cli', 'main.js');
|
|
154
|
+
if (!existsSync(rspeedyEntryPoint)) {
|
|
155
155
|
debug(`Unable to find rspeedy entry point: ${rspeedyEntryPoint}, trying the legacy location.`);
|
|
156
|
-
rspeedyEntryPoint =
|
|
157
|
-
if (!
|
|
156
|
+
rspeedyEntryPoint = join(rspeedyFolder, 'lib', 'cli', 'main.js');
|
|
157
|
+
if (!existsSync(rspeedyEntryPoint)) {
|
|
158
158
|
debug(`Unable to find rspeedy entry point: ${rspeedyEntryPoint}, using the unmanaged version.`);
|
|
159
159
|
return false;
|
|
160
160
|
}
|
|
@@ -163,7 +163,7 @@ function tryStartLocalRspeedy(root = process.cwd()) {
|
|
|
163
163
|
throw new Error(`Error probing for local rspeedy version: ${error.message}`);
|
|
164
164
|
}
|
|
165
165
|
debug(`found rspeedy entry point at ${rspeedyEntryPoint}`);
|
|
166
|
-
return import(
|
|
166
|
+
return import(pathToFileURL(rspeedyEntryPoint).toString()).then(({ main })=>main(process.argv));
|
|
167
167
|
}
|
|
168
168
|
debug(`no project folder found from ${process.cwd()}`);
|
|
169
169
|
return false;
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import external_node_fs_default from "node:fs";
|
|
8
|
+
import { pathToFileURL } from "node:url";
|
|
9
|
+
import { register } from "@lynx-js/rspeedy/register";
|
|
10
10
|
var __webpack_modules__ = {
|
|
11
11
|
"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
|
|
12
12
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
@@ -106,13 +106,13 @@ var __webpack_modules__ = {
|
|
|
106
106
|
},
|
|
107
107
|
"./src/version.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
108
108
|
__webpack_require__.d(__webpack_exports__, {
|
|
109
|
+
Q0: ()=>core_.version,
|
|
109
110
|
_A: ()=>rspackVersion,
|
|
110
|
-
i8: ()=>version
|
|
111
|
-
Q0: ()=>core_.version
|
|
111
|
+
i8: ()=>version
|
|
112
112
|
});
|
|
113
113
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
114
114
|
var package_namespaceObject = {
|
|
115
|
-
i8: "0.9.
|
|
115
|
+
i8: "0.9.9"
|
|
116
116
|
};
|
|
117
117
|
const version = package_namespaceObject.i8;
|
|
118
118
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -419,7 +419,7 @@ async function createRspeedy({ cwd = process.cwd(), rspeedyConfig = {}, loadEnv
|
|
|
419
419
|
async inspectConfig (options) {
|
|
420
420
|
const result = await inspectConfig(options);
|
|
421
421
|
const { inspectRspeedyConfig } = await Promise.all([
|
|
422
|
-
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-
|
|
422
|
+
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
|
|
423
423
|
__webpack_require__.e("src_plugins_inspect_plugin_ts")
|
|
424
424
|
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
|
|
425
425
|
await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);
|
|
@@ -439,7 +439,7 @@ const resolveConfigPath = (root, customConfig)=>{
|
|
|
439
439
|
if (customConfig) {
|
|
440
440
|
(0, debug.fF)(`load custom config file ${customConfig} from ${root}`);
|
|
441
441
|
const customConfigPath = (0, external_node_path_.isAbsolute)(customConfig) ? customConfig : (0, external_node_path_.join)(root, customConfig);
|
|
442
|
-
if (
|
|
442
|
+
if (external_node_fs_default.existsSync(customConfigPath)) return customConfigPath;
|
|
443
443
|
throw new Error(`Cannot find config file: ${picocolors_default().dim(customConfigPath)}`);
|
|
444
444
|
}
|
|
445
445
|
const CONFIG_FILES = [
|
|
@@ -451,7 +451,7 @@ const resolveConfigPath = (root, customConfig)=>{
|
|
|
451
451
|
for (const file of CONFIG_FILES){
|
|
452
452
|
(0, debug.fF)(`load default config file ${file} from ${root}`);
|
|
453
453
|
const configFile = (0, external_node_path_.join)(root, file);
|
|
454
|
-
if (
|
|
454
|
+
if (external_node_fs_default.existsSync(configFile)) {
|
|
455
455
|
(0, debug.fF)(`default config ${configFile} found`);
|
|
456
456
|
return configFile;
|
|
457
457
|
}
|
|
@@ -464,8 +464,8 @@ const resolveConfigPath = (root, customConfig)=>{
|
|
|
464
464
|
async function loadConfig(loadConfigOptions) {
|
|
465
465
|
let { configPath } = loadConfigOptions;
|
|
466
466
|
if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
|
|
467
|
-
const specifier =
|
|
468
|
-
const unregister = shouldUseNativeImport(configPath) ? ()=>void 0 :
|
|
467
|
+
const specifier = pathToFileURL(configPath).toString();
|
|
468
|
+
const unregister = shouldUseNativeImport(configPath) ? ()=>void 0 : register();
|
|
469
469
|
try {
|
|
470
470
|
const [exports, { validate }] = await Promise.all([
|
|
471
471
|
import(`${specifier}?t=${Date.now()}`),
|
package/dist/register/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { URL } from "node:url";
|
|
2
|
+
import external_typescript_default from "typescript";
|
|
3
3
|
const FLAG_REPLACE_WITH_OPEN_PAREN = 1;
|
|
4
4
|
const FLAG_REPLACE_WITH_CLOSE_PAREN = 2;
|
|
5
5
|
const FLAG_REPLACE_WITH_SEMI = 3;
|
|
@@ -67,17 +67,17 @@ class BlankString {
|
|
|
67
67
|
return out + input.slice(previousEnd);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
const SK =
|
|
70
|
+
const SK = external_typescript_default.SyntaxKind;
|
|
71
71
|
const VISIT_BLANKED = "";
|
|
72
72
|
const VISITED_JS = null;
|
|
73
73
|
const languageOptions = {
|
|
74
|
-
languageVersion:
|
|
75
|
-
impliedNodeFormat:
|
|
74
|
+
languageVersion: external_typescript_default.ScriptTarget.ESNext,
|
|
75
|
+
impliedNodeFormat: external_typescript_default.ModuleKind.ESNext
|
|
76
76
|
};
|
|
77
|
-
const scanner =
|
|
78
|
-
if (
|
|
79
|
-
languageOptions.jsDocParsingMode =
|
|
80
|
-
scanner.setJSDocParsingMode(
|
|
77
|
+
const scanner = external_typescript_default.createScanner(external_typescript_default.ScriptTarget.ESNext, true, external_typescript_default.LanguageVariant.Standard);
|
|
78
|
+
if (external_typescript_default.JSDocParsingMode) {
|
|
79
|
+
languageOptions.jsDocParsingMode = external_typescript_default.JSDocParsingMode.ParseNone;
|
|
80
|
+
scanner.setJSDocParsingMode(external_typescript_default.JSDocParsingMode.ParseNone);
|
|
81
81
|
}
|
|
82
82
|
let src = "";
|
|
83
83
|
let str = new BlankString("");
|
|
@@ -86,7 +86,7 @@ let onError;
|
|
|
86
86
|
let seenJS = false;
|
|
87
87
|
let parentStatement;
|
|
88
88
|
function tsBlankSpace(input, onErrorArg) {
|
|
89
|
-
return blankSourceFile(
|
|
89
|
+
return blankSourceFile(external_typescript_default.createSourceFile("input.ts", input, languageOptions, false, external_typescript_default.ScriptKind.TS), onErrorArg);
|
|
90
90
|
}
|
|
91
91
|
function blankSourceFile(source, onErrorArg) {
|
|
92
92
|
try {
|
|
@@ -110,7 +110,7 @@ function blankSourceFile(source, onErrorArg) {
|
|
|
110
110
|
}
|
|
111
111
|
function visitUnknownNodeArray(nodes) {
|
|
112
112
|
if (0 === nodes.length) return VISITED_JS;
|
|
113
|
-
return visitNodeArray(nodes,
|
|
113
|
+
return visitNodeArray(nodes, external_typescript_default.isStatement(nodes[0]), false);
|
|
114
114
|
}
|
|
115
115
|
function visitNodeArray(nodes, isStatementLike, isFunctionBody) {
|
|
116
116
|
const previousParentStatement = parentStatement;
|
|
@@ -371,7 +371,7 @@ function visitImportDeclaration(node) {
|
|
|
371
371
|
return VISIT_BLANKED;
|
|
372
372
|
}
|
|
373
373
|
const { namedBindings } = node.importClause;
|
|
374
|
-
if (namedBindings &&
|
|
374
|
+
if (namedBindings && external_typescript_default.isNamedImports(namedBindings)) {
|
|
375
375
|
const elements = namedBindings.elements;
|
|
376
376
|
for(let i = 0; i < elements.length; i++){
|
|
377
377
|
const e = elements[i];
|
|
@@ -387,7 +387,7 @@ function visitExportDeclaration(node) {
|
|
|
387
387
|
return VISIT_BLANKED;
|
|
388
388
|
}
|
|
389
389
|
const { exportClause } = node;
|
|
390
|
-
if (exportClause &&
|
|
390
|
+
if (exportClause && external_typescript_default.isNamedExports(exportClause)) {
|
|
391
391
|
const elements = exportClause.elements;
|
|
392
392
|
for(let i = 0; i < elements.length; i++){
|
|
393
393
|
const e = elements[i];
|
|
@@ -405,7 +405,7 @@ function visitExportAssignment(node) {
|
|
|
405
405
|
return VISITED_JS;
|
|
406
406
|
}
|
|
407
407
|
function visitModule(node) {
|
|
408
|
-
if (node.flags &
|
|
408
|
+
if (node.flags & external_typescript_default.NodeFlags.GlobalAugmentation || node.flags & external_typescript_default.NodeFlags.Namespace && (node.modifiers && modifiersContainsDeclare(node.modifiers) || !valueNamespaceWorker(node)) || node.name.kind === SK.StringLiteral) {
|
|
409
409
|
blankStatement(node);
|
|
410
410
|
return VISIT_BLANKED;
|
|
411
411
|
}
|
|
@@ -432,7 +432,7 @@ function valueNamespaceWorker(node) {
|
|
|
432
432
|
}
|
|
433
433
|
case SK.ModuleDeclaration:
|
|
434
434
|
{
|
|
435
|
-
if (!(node.flags &
|
|
435
|
+
if (!(node.flags & external_typescript_default.NodeFlags.Namespace)) return true;
|
|
436
436
|
const { body } = node;
|
|
437
437
|
if (!body) return false;
|
|
438
438
|
if (body.kind === SK.ModuleDeclaration) return valueNamespaceWorker(body);
|
|
@@ -544,7 +544,7 @@ function onMessage(message) {
|
|
|
544
544
|
function parseURL(url) {
|
|
545
545
|
if (null == url) return null;
|
|
546
546
|
try {
|
|
547
|
-
return new
|
|
547
|
+
return new URL(url, 'file://');
|
|
548
548
|
} catch {
|
|
549
549
|
return null;
|
|
550
550
|
}
|
package/dist/register/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import external_node_module_default from "node:module";
|
|
2
2
|
function register() {
|
|
3
|
-
if (!
|
|
3
|
+
if (!external_node_module_default.register) throw new Error([
|
|
4
4
|
`This version of Node.js (${process.version}) does not support module.register(). You can either:`,
|
|
5
5
|
" - Upgrade to Node.js v18.19 or v20.6 and above",
|
|
6
6
|
" - Use `lynx.config.js` instead of `lynx.config.ts`"
|
|
7
7
|
].join('\n'));
|
|
8
8
|
const { port1, port2 } = new MessageChannel();
|
|
9
|
-
|
|
9
|
+
external_node_module_default.register(`./hooks.js?${Date.now()}`, import.meta.url, {
|
|
10
10
|
parentURL: import.meta.url,
|
|
11
11
|
data: {
|
|
12
12
|
port: port2
|
package/dist/src_cli_build_ts.js
CHANGED
|
@@ -15,7 +15,7 @@ export const __webpack_modules__ = {
|
|
|
15
15
|
async function build(cwd, buildOptions) {
|
|
16
16
|
const shouldExit = 'true' !== process.env['RSDOCTOR'] || (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_4__.y)();
|
|
17
17
|
try {
|
|
18
|
-
const { createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_3__.
|
|
18
|
+
const { createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_3__.S)(cwd, buildOptions);
|
|
19
19
|
const rspeedy = await (0, _create_rspeedy_js__WEBPACK_IMPORTED_MODULE_2__.S)(createRspeedyOptions);
|
|
20
20
|
await rspeedy.build();
|
|
21
21
|
} catch (error) {
|
|
@@ -27,7 +27,7 @@ export const __webpack_modules__ = {
|
|
|
27
27
|
},
|
|
28
28
|
"./src/cli/init.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
29
29
|
__webpack_require__.d(__webpack_exports__, {
|
|
30
|
-
|
|
30
|
+
S: ()=>init
|
|
31
31
|
});
|
|
32
32
|
var external_node_fs_ = __webpack_require__("node:fs");
|
|
33
33
|
var external_node_path_ = __webpack_require__("node:path");
|
|
@@ -306,7 +306,7 @@ export const __webpack_modules__ = {
|
|
|
306
306
|
async inspectConfig (options) {
|
|
307
307
|
const result = await inspectConfig(options);
|
|
308
308
|
const { inspectRspeedyConfig } = await Promise.all([
|
|
309
|
-
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-
|
|
309
|
+
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
|
|
310
310
|
__webpack_require__.e("src_plugins_inspect_plugin_ts")
|
|
311
311
|
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
|
|
312
312
|
await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);
|
|
@@ -34,13 +34,13 @@ export const __webpack_modules__ = {
|
|
|
34
34
|
},
|
|
35
35
|
"./src/version.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
36
36
|
__webpack_require__.d(__webpack_exports__, {
|
|
37
|
-
rsbuildVersion: ()=>core_.version,
|
|
38
37
|
version: ()=>version,
|
|
39
|
-
rspackVersion: ()=>rspackVersion
|
|
38
|
+
rspackVersion: ()=>rspackVersion,
|
|
39
|
+
rsbuildVersion: ()=>core_.version
|
|
40
40
|
});
|
|
41
41
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
42
42
|
var package_namespaceObject = {
|
|
43
|
-
i8: "0.9.
|
|
43
|
+
i8: "0.9.9"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/dist/src_cli_dev_ts.js
CHANGED
|
@@ -17,7 +17,7 @@ export const __webpack_modules__ = {
|
|
|
17
17
|
async function dev(cwd, devOptions) {
|
|
18
18
|
let onBeforeRestart = [];
|
|
19
19
|
try {
|
|
20
|
-
const { rspeedyConfig, configPath, createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_4__.
|
|
20
|
+
const { rspeedyConfig, configPath, createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_4__.S)(cwd, devOptions);
|
|
21
21
|
const watchedFiles = [
|
|
22
22
|
configPath
|
|
23
23
|
];
|
|
@@ -70,7 +70,7 @@ export const __webpack_modules__ = {
|
|
|
70
70
|
},
|
|
71
71
|
"./src/cli/init.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
72
72
|
__webpack_require__.d(__webpack_exports__, {
|
|
73
|
-
|
|
73
|
+
S: ()=>init
|
|
74
74
|
});
|
|
75
75
|
var external_node_fs_ = __webpack_require__("node:fs");
|
|
76
76
|
var external_node_path_ = __webpack_require__("node:path");
|
|
@@ -349,7 +349,7 @@ export const __webpack_modules__ = {
|
|
|
349
349
|
async inspectConfig (options) {
|
|
350
350
|
const result = await inspectConfig(options);
|
|
351
351
|
const { inspectRspeedyConfig } = await Promise.all([
|
|
352
|
-
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-
|
|
352
|
+
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
|
|
353
353
|
__webpack_require__.e("src_plugins_inspect_plugin_ts")
|
|
354
354
|
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
|
|
355
355
|
await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);
|
|
@@ -4,7 +4,7 @@ export const __webpack_ids__ = [
|
|
|
4
4
|
export const __webpack_modules__ = {
|
|
5
5
|
"./src/cli/init.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
|
-
|
|
7
|
+
S: ()=>init
|
|
8
8
|
});
|
|
9
9
|
var external_node_fs_ = __webpack_require__("node:fs");
|
|
10
10
|
var external_node_path_ = __webpack_require__("node:path");
|
|
@@ -122,7 +122,7 @@ export const __webpack_modules__ = {
|
|
|
122
122
|
var _init_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/cli/init.ts");
|
|
123
123
|
async function inspect(cwd, inspectOptions) {
|
|
124
124
|
try {
|
|
125
|
-
const { createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_3__.
|
|
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
128
|
mode: inspectOptions.mode ?? process.env['NODE_ENV'] ?? 'development',
|
|
@@ -309,7 +309,7 @@ export const __webpack_modules__ = {
|
|
|
309
309
|
async inspectConfig (options) {
|
|
310
310
|
const result = await inspectConfig(options);
|
|
311
311
|
const { inspectRspeedyConfig } = await Promise.all([
|
|
312
|
-
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-
|
|
312
|
+
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
|
|
313
313
|
__webpack_require__.e("src_plugins_inspect_plugin_ts")
|
|
314
314
|
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
|
|
315
315
|
await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);
|
|
@@ -4,7 +4,7 @@ export const __webpack_ids__ = [
|
|
|
4
4
|
export const __webpack_modules__ = {
|
|
5
5
|
"./src/cli/init.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
|
-
|
|
7
|
+
S: ()=>init
|
|
8
8
|
});
|
|
9
9
|
var external_node_fs_ = __webpack_require__("node:fs");
|
|
10
10
|
var external_node_path_ = __webpack_require__("node:path");
|
|
@@ -125,7 +125,7 @@ export const __webpack_modules__ = {
|
|
|
125
125
|
var _init_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./src/cli/init.ts");
|
|
126
126
|
async function preview(cwd, previewOptions) {
|
|
127
127
|
try {
|
|
128
|
-
const { createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_4__.
|
|
128
|
+
const { createRspeedyOptions } = await (0, _init_js__WEBPACK_IMPORTED_MODULE_4__.S)(cwd, previewOptions);
|
|
129
129
|
const rspeedy = await (0, _create_rspeedy_js__WEBPACK_IMPORTED_MODULE_3__.S)(createRspeedyOptions);
|
|
130
130
|
await rspeedy.initConfigs();
|
|
131
131
|
const { distPath } = rspeedy.context;
|
|
@@ -311,7 +311,7 @@ export const __webpack_modules__ = {
|
|
|
311
311
|
async inspectConfig (options) {
|
|
312
312
|
const result = await inspectConfig(options);
|
|
313
313
|
const { inspectRspeedyConfig } = await Promise.all([
|
|
314
|
-
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-
|
|
314
|
+
__webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
|
|
315
315
|
__webpack_require__.e("src_plugins_inspect_plugin_ts")
|
|
316
316
|
]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
|
|
317
317
|
await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);
|