@lynx-js/rspeedy 0.9.7 → 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 CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 0.9.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Fix the "SyntaxError: invalid redefinition of parameter name" error. ([#949](https://github.com/lynx-family/lynx-stack/pull/949))
16
+
17
+ Remove the default `output.iife: false` from Rspack.
18
+
3
19
  ## 0.9.7
4
20
 
5
21
  ### Patch Changes
package/dist/cli/start.js CHANGED
@@ -1,7 +1,7 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
2
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
3
- import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
4
- import * as __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__ from "@rsbuild/core";
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
- __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.logger.level = 'verbose';
119
- __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.logger.debug(`${label} ${result}`);
118
+ logger.level = 'verbose';
119
+ logger.debug(`${label} ${result}`);
120
120
  }
121
121
  };
122
122
  function tryGetPackageFolderFor(resolvedFileOrFolderPath) {
123
- if (__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.existsSync(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join(resolvedFileOrFolderPath, 'package.json'))) return resolvedFileOrFolderPath;
124
- const parentFolder = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.dirname(resolvedFileOrFolderPath);
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
- __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.logger.info(`Bypassing the Rspeedy version selector because ${JSON.stringify("--unmanaged")} was specified.`);
131
- __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.logger.info();
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 = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join(projectFolder, 'package.json');
142
- const packageJsonContent = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.readFileSync(packageJsonPath).toString();
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 = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join(projectFolder, 'node_modules', ..."@lynx-js/rspeedy".split('/'));
153
- rspeedyEntryPoint = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join(rspeedyFolder, 'dist', 'cli', 'main.js');
154
- if (!__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.existsSync(rspeedyEntryPoint)) {
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 = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join(rspeedyFolder, 'lib', 'cli', 'main.js');
157
- if (!__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.existsSync(rspeedyEntryPoint)) {
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((0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.pathToFileURL)(rspeedyEntryPoint).toString()).then(({ main })=>main(process.argv));
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 * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
8
- import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
9
- import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_rspeedy_register_78d0d330__ from "@lynx-js/rspeedy/register";
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.7"
115
+ i8: "0.9.9"
116
116
  };
117
117
  const version = package_namespaceObject.i8;
118
118
  const rspackVersion = core_.rspack.rspackVersion;
@@ -349,8 +349,10 @@ function toRsbuildConfig(config) {
349
349
  polyfill: 'off',
350
350
  sourceMap: config.output?.sourceMap
351
351
  },
352
+ resolve: {
353
+ alias: config.source?.alias
354
+ },
352
355
  source: {
353
- alias: config.source?.alias,
354
356
  assetsInclude: config.source?.assetsInclude,
355
357
  decorators: config.source?.decorators,
356
358
  define: config.source?.define,
@@ -417,7 +419,7 @@ async function createRspeedy({ cwd = process.cwd(), rspeedyConfig = {}, loadEnv
417
419
  async inspectConfig (options) {
418
420
  const result = await inspectConfig(options);
419
421
  const { inspectRspeedyConfig } = await Promise.all([
420
- __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-b558be"),
422
+ __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
421
423
  __webpack_require__.e("src_plugins_inspect_plugin_ts")
422
424
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
423
425
  await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);
@@ -437,7 +439,7 @@ const resolveConfigPath = (root, customConfig)=>{
437
439
  if (customConfig) {
438
440
  (0, debug.fF)(`load custom config file ${customConfig} from ${root}`);
439
441
  const customConfigPath = (0, external_node_path_.isAbsolute)(customConfig) ? customConfig : (0, external_node_path_.join)(root, customConfig);
440
- if (__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].existsSync(customConfigPath)) return customConfigPath;
442
+ if (external_node_fs_default.existsSync(customConfigPath)) return customConfigPath;
441
443
  throw new Error(`Cannot find config file: ${picocolors_default().dim(customConfigPath)}`);
442
444
  }
443
445
  const CONFIG_FILES = [
@@ -449,7 +451,7 @@ const resolveConfigPath = (root, customConfig)=>{
449
451
  for (const file of CONFIG_FILES){
450
452
  (0, debug.fF)(`load default config file ${file} from ${root}`);
451
453
  const configFile = (0, external_node_path_.join)(root, file);
452
- if (__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].existsSync(configFile)) {
454
+ if (external_node_fs_default.existsSync(configFile)) {
453
455
  (0, debug.fF)(`default config ${configFile} found`);
454
456
  return configFile;
455
457
  }
@@ -462,8 +464,8 @@ const resolveConfigPath = (root, customConfig)=>{
462
464
  async function loadConfig(loadConfigOptions) {
463
465
  let { configPath } = loadConfigOptions;
464
466
  if (!configPath || !(0, external_node_path_.isAbsolute)(configPath)) configPath = resolveConfigPath(loadConfigOptions.cwd ?? process.cwd(), configPath);
465
- const specifier = (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.pathToFileURL)(configPath).toString();
466
- const unregister = shouldUseNativeImport(configPath) ? ()=>void 0 : (0, __WEBPACK_EXTERNAL_MODULE__lynx_js_rspeedy_register_78d0d330__.register)();
467
+ const specifier = pathToFileURL(configPath).toString();
468
+ const unregister = shouldUseNativeImport(configPath) ? ()=>void 0 : register();
467
469
  try {
468
470
  const [exports, { validate }] = await Promise.all([
469
471
  import(`${specifier}?t=${Date.now()}`),
@@ -1,5 +1,5 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
2
- import * as __WEBPACK_EXTERNAL_MODULE_typescript__ from "typescript";
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 = __WEBPACK_EXTERNAL_MODULE_typescript__["default"].SyntaxKind;
70
+ const SK = external_typescript_default.SyntaxKind;
71
71
  const VISIT_BLANKED = "";
72
72
  const VISITED_JS = null;
73
73
  const languageOptions = {
74
- languageVersion: __WEBPACK_EXTERNAL_MODULE_typescript__["default"].ScriptTarget.ESNext,
75
- impliedNodeFormat: __WEBPACK_EXTERNAL_MODULE_typescript__["default"].ModuleKind.ESNext
74
+ languageVersion: external_typescript_default.ScriptTarget.ESNext,
75
+ impliedNodeFormat: external_typescript_default.ModuleKind.ESNext
76
76
  };
77
- const scanner = __WEBPACK_EXTERNAL_MODULE_typescript__["default"].createScanner(__WEBPACK_EXTERNAL_MODULE_typescript__["default"].ScriptTarget.ESNext, true, __WEBPACK_EXTERNAL_MODULE_typescript__["default"].LanguageVariant.Standard);
78
- if (__WEBPACK_EXTERNAL_MODULE_typescript__["default"].JSDocParsingMode) {
79
- languageOptions.jsDocParsingMode = __WEBPACK_EXTERNAL_MODULE_typescript__["default"].JSDocParsingMode.ParseNone;
80
- scanner.setJSDocParsingMode(__WEBPACK_EXTERNAL_MODULE_typescript__["default"].JSDocParsingMode.ParseNone);
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(__WEBPACK_EXTERNAL_MODULE_typescript__["default"].createSourceFile("input.ts", input, languageOptions, false, __WEBPACK_EXTERNAL_MODULE_typescript__["default"].ScriptKind.TS), onErrorArg);
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, __WEBPACK_EXTERNAL_MODULE_typescript__["default"].isStatement(nodes[0]), false);
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 && __WEBPACK_EXTERNAL_MODULE_typescript__["default"].isNamedImports(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 && __WEBPACK_EXTERNAL_MODULE_typescript__["default"].isNamedExports(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 & __WEBPACK_EXTERNAL_MODULE_typescript__["default"].NodeFlags.GlobalAugmentation || node.flags & __WEBPACK_EXTERNAL_MODULE_typescript__["default"].NodeFlags.Namespace && (node.modifiers && modifiersContainsDeclare(node.modifiers) || !valueNamespaceWorker(node)) || node.name.kind === SK.StringLiteral) {
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 & __WEBPACK_EXTERNAL_MODULE_typescript__["default"].NodeFlags.Namespace)) return true;
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 __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.URL(url, 'file://');
547
+ return new URL(url, 'file://');
548
548
  } catch {
549
549
  return null;
550
550
  }
@@ -1,12 +1,12 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
1
+ import external_node_module_default from "node:module";
2
2
  function register() {
3
- if (!__WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__["default"].register) throw new Error([
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
- __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__["default"].register(`./hooks.js?${Date.now()}`, import.meta.url, {
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
@@ -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__.init)(cwd, buildOptions);
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
- init: ()=>init
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");
@@ -236,8 +236,10 @@ export const __webpack_modules__ = {
236
236
  polyfill: 'off',
237
237
  sourceMap: config.output?.sourceMap
238
238
  },
239
+ resolve: {
240
+ alias: config.source?.alias
241
+ },
239
242
  source: {
240
- alias: config.source?.alias,
241
243
  assetsInclude: config.source?.assetsInclude,
242
244
  decorators: config.source?.decorators,
243
245
  define: config.source?.define,
@@ -304,7 +306,7 @@ export const __webpack_modules__ = {
304
306
  async inspectConfig (options) {
305
307
  const result = await inspectConfig(options);
306
308
  const { inspectRspeedyConfig } = await Promise.all([
307
- __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-b558be"),
309
+ __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
308
310
  __webpack_require__.e("src_plugins_inspect_plugin_ts")
309
311
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
310
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.7"
43
+ i8: "0.9.9"
44
44
  };
45
45
  const version = package_namespaceObject.i8;
46
46
  const rspackVersion = core_.rspack.rspackVersion;
@@ -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__.init)(cwd, devOptions);
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
- init: ()=>init
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");
@@ -279,8 +279,10 @@ export const __webpack_modules__ = {
279
279
  polyfill: 'off',
280
280
  sourceMap: config.output?.sourceMap
281
281
  },
282
+ resolve: {
283
+ alias: config.source?.alias
284
+ },
282
285
  source: {
283
- alias: config.source?.alias,
284
286
  assetsInclude: config.source?.assetsInclude,
285
287
  decorators: config.source?.decorators,
286
288
  define: config.source?.define,
@@ -347,7 +349,7 @@ export const __webpack_modules__ = {
347
349
  async inspectConfig (options) {
348
350
  const result = await inspectConfig(options);
349
351
  const { inspectRspeedyConfig } = await Promise.all([
350
- __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-b558be"),
352
+ __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
351
353
  __webpack_require__.e("src_plugins_inspect_plugin_ts")
352
354
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
353
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
- init: ()=>init
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__.init)(cwd, inspectOptions);
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',
@@ -239,8 +239,10 @@ export const __webpack_modules__ = {
239
239
  polyfill: 'off',
240
240
  sourceMap: config.output?.sourceMap
241
241
  },
242
+ resolve: {
243
+ alias: config.source?.alias
244
+ },
242
245
  source: {
243
- alias: config.source?.alias,
244
246
  assetsInclude: config.source?.assetsInclude,
245
247
  decorators: config.source?.decorators,
246
248
  define: config.source?.define,
@@ -307,7 +309,7 @@ export const __webpack_modules__ = {
307
309
  async inspectConfig (options) {
308
310
  const result = await inspectConfig(options);
309
311
  const { inspectRspeedyConfig } = await Promise.all([
310
- __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-b558be"),
312
+ __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
311
313
  __webpack_require__.e("src_plugins_inspect_plugin_ts")
312
314
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
313
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
- init: ()=>init
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__.init)(cwd, previewOptions);
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;
@@ -241,8 +241,10 @@ export const __webpack_modules__ = {
241
241
  polyfill: 'off',
242
242
  sourceMap: config.output?.sourceMap
243
243
  },
244
+ resolve: {
245
+ alias: config.source?.alias
246
+ },
244
247
  source: {
245
- alias: config.source?.alias,
246
248
  assetsInclude: config.source?.assetsInclude,
247
249
  decorators: config.source?.decorators,
248
250
  define: config.source?.define,
@@ -309,7 +311,7 @@ export const __webpack_modules__ = {
309
311
  async inspectConfig (options) {
310
312
  const result = await inspectConfig(options);
311
313
  const { inspectRspeedyConfig } = await Promise.all([
312
- __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-b558be"),
314
+ __webpack_require__.e("vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"),
313
315
  __webpack_require__.e("src_plugins_inspect_plugin_ts")
314
316
  ]).then(__webpack_require__.bind(__webpack_require__, "./src/plugins/inspect.plugin.ts"));
315
317
  await inspectRspeedyConfig(rspeedyConfig, external_node_path_["default"].resolve(options.outputPath ?? rspeedy.context.distPath, '.rsbuild/rspeedy.config.js'), options.verbose ?? false);