@lynx-js/rspeedy 0.14.1 → 0.14.3

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.
@@ -162,7 +162,10 @@ async function findIp(family, isInternal = false) {
162
162
  import("node:os")
163
163
  ]);
164
164
  let host;
165
- const networks = Object.values(os.networkInterfaces()).flatMap((networks)=>networks ?? []).filter((network)=>{
165
+ const networks = Object.entries(os.networkInterfaces()).flatMap(([name, networks])=>(networks ?? []).map((network)=>({
166
+ name,
167
+ network
168
+ }))).filter(({ network })=>{
166
169
  if (!network || !network.address) return false;
167
170
  if (network.family !== `IP${family}`) return false;
168
171
  if (network.internal !== isInternal) return false;
@@ -170,13 +173,36 @@ async function findIp(family, isInternal = false) {
170
173
  const range = ipaddr.parse(network.address).range();
171
174
  if ('ipv4Mapped' !== range && 'uniqueLocal' !== range) return false;
172
175
  }
173
- return network.address;
174
- });
176
+ return true;
177
+ }).sort((left, right)=>getNetworkPriority(left.name, left.network.address) - getNetworkPriority(right.name, right.network.address));
175
178
  if (networks.length > 0) {
176
- host = networks[0].address;
179
+ host = networks[0].network.address;
177
180
  if (host.includes(':')) host = `[${host}]`;
178
181
  }
179
182
  if (!host) throw new Error("No valid IP found");
180
183
  return host;
181
184
  }
185
+ function getNetworkPriority(name, address) {
186
+ const normalizedName = name.toLowerCase();
187
+ if (isPreferredInterface(normalizedName) && !isLinkLocalIpv4(address)) return 0;
188
+ if (!isVirtualInterface(normalizedName) && !isLinkLocalIpv4(address)) return 1;
189
+ if (!isVirtualInterface(normalizedName)) return 2;
190
+ return 3;
191
+ }
192
+ function isPreferredInterface(name) {
193
+ return /^(?:en\d+|eth\d+|eno\d+|enp\w+|wl\w+)$/.test(name);
194
+ }
195
+ function isVirtualInterface(name) {
196
+ return [
197
+ 'utun',
198
+ 'tun',
199
+ 'tap',
200
+ 'awdl',
201
+ 'llw',
202
+ 'lo'
203
+ ].some((prefix)=>name.startsWith(prefix));
204
+ }
205
+ function isLinkLocalIpv4(address) {
206
+ return address.startsWith('169.254.');
207
+ }
182
208
  export { pluginDev };
package/dist/index.d.ts CHANGED
@@ -20,8 +20,10 @@ import type { CreateRsbuildOptions } from '@rsbuild/core';
20
20
  import type { DataUriLimit } from '@rsbuild/core';
21
21
  import type { DistPathConfig } from '@rsbuild/core';
22
22
  import type { InlineChunkConfig } from '@rsbuild/core';
23
+ import type { Linter } from '@rsdoctor/types';
23
24
  import { logger } from '@rsbuild/core';
24
25
  import type { PerformanceConfig } from '@rsbuild/core';
26
+ import type { Plugin } from '@rsdoctor/types';
25
27
  import type { ProxyConfig } from '@rsbuild/core';
26
28
  import type { RsbuildConfig } from '@rsbuild/core';
27
29
  import type { RsbuildInstance } from '@rsbuild/core';
@@ -29,7 +31,6 @@ import { RsbuildPlugin } from '@rsbuild/core';
29
31
  import { RsbuildPluginAPI } from '@rsbuild/core';
30
32
  import type { RsbuildPlugins } from '@rsbuild/core';
31
33
  import { version as rsbuildVersion } from '@rsbuild/core';
32
- import type { RsdoctorRspackPlugin } from '@rsdoctor/rspack-plugin';
33
34
  import { Rspack } from '@rsbuild/core';
34
35
  import { rspack } from '@rsbuild/core';
35
36
  import type { ServerConfig } from '@rsbuild/core';
@@ -367,7 +368,7 @@ export declare interface Config {
367
368
  *
368
369
  * If the value of `mode` is `'development'`:
369
370
  *
370
- * - Enable HMR and register the {@link https://rspack.dev/plugins/webpack/hot-module-replacement-plugin | HotModuleReplacementPlugin}.
371
+ * - Enable HMR and register the {@link https://rspack.rs/plugins/webpack/hot-module-replacement-plugin | HotModuleReplacementPlugin}.
371
372
  *
372
373
  * - Generate JavaScript source maps, but do not generate CSS source maps. See {@link Output.sourceMap} for details.
373
374
  *
@@ -383,7 +384,7 @@ export declare interface Config {
383
384
  *
384
385
  * If the value of `mode` is `'production'`:
385
386
  *
386
- * - Enable JavaScript code minification and register the {@link https://rspack.dev/plugins/rspack/swc-js-minimizer-rspack-plugin | SwcJsMinimizerRspackPlugin}.
387
+ * - Enable JavaScript code minification and register the {@link https://rspack.rs/plugins/rspack/swc-js-minimizer-rspack-plugin | SwcJsMinimizerRspackPlugin}.
387
388
  *
388
389
  * - Generated JavaScript and CSS filenames will have hash suffixes, see {@link Output.filenameHash}.
389
390
  *
@@ -442,7 +443,7 @@ export declare interface Config {
442
443
  * @defaultValue undefined
443
444
  *
444
445
  * @remarks
445
- * Rspeedy use the plugin APIs from {@link https://rsbuild.dev/plugins/dev/index | Rsbuild}. See the corresponding document for developing a plugin.
446
+ * Rspeedy uses the plugin APIs from {@link https://rsbuild.rs/plugins/dev/index | Rsbuild}. See the corresponding document for developing a plugin.
446
447
  */
447
448
  plugins?: RsbuildPlugins | undefined;
448
449
  }
@@ -530,9 +531,9 @@ export declare interface CreateRspeedyOptions {
530
531
  */
531
532
  rspeedyConfig?: Config;
532
533
  /**
533
- * Rspeedy automatically loads the .env file by default, utilizing the [Rsbuild API](https://rsbuild.dev/api/javascript-api/core#load-env-variables).
534
+ * Rspeedy automatically loads the .env file by default, utilizing the [Rsbuild API](https://rsbuild.rs/api/javascript-api/core#load-env-variables).
534
535
  * You can use the environment variables defined in the .env file within your code by accessing them via `import.meta.env.FOO` or `process.env.Foo`.
535
- * @see https://rsbuild.dev/guide/advanced/env-vars#env-file
536
+ * @see https://rsbuild.rs/guide/advanced/env-vars#env-file
536
537
  * @defaultValue true
537
538
  */
538
539
  loadEnv?: CreateRsbuildOptions['loadEnv'];
@@ -540,7 +541,7 @@ export declare interface CreateRspeedyOptions {
540
541
  * Only build specified environments.
541
542
  * For example, passing `['lynx']` will only build the `lynx` environment.
542
543
  * If not specified or passing an empty array, all environments will be built.
543
- * @see https://rsbuild.dev/guide/advanced/environments#build-specified-environment
544
+ * @see https://rsbuild.rs/guide/advanced/environments#build-specified-environment
544
545
  * @defaultValue []
545
546
  */
546
547
  environment?: CreateRsbuildOptions['environment'];
@@ -1127,7 +1128,7 @@ export declare interface Dev {
1127
1128
  *
1128
1129
  * During `rspeedy dev`, if this option is not set to `false`, the dev plugin normalizes it to `http://<detected-host>:<port>/` and appends `server.base` when configured.
1129
1130
  *
1130
- * The functionality of {@link Dev.assetPrefix} is basically the same as the {@link https://www.rspack.dev/config/output#outputpublicpath | output.publicPath}
1131
+ * The functionality of {@link Dev.assetPrefix} is basically the same as the {@link https://rspack.rs/config/output#outputpublicpath | output.publicPath}
1131
1132
  * config in Rspack. With the following differences:
1132
1133
  *
1133
1134
  * - `dev.assetPrefix` only takes effect during development.
@@ -1478,7 +1479,7 @@ export declare type Entry = string | string[] | Record<string, string | string[]
1478
1479
  * The `EntryDescription` describes a entry. It is useful when the project has multiple entries with different configuration.
1479
1480
  *
1480
1481
  * @remarks
1481
- * It is similar with the {@link https://www.rspack.dev/config/entry#entry-description-object | Entry Description Object} of Rspack.
1482
+ * It is similar with the {@link https://rspack.rs/config/entry#entry-description-object | Entry Description Object} of Rspack.
1482
1483
  * But only a few properties that Lynx supports is allowed.
1483
1484
  *
1484
1485
  * @public
@@ -1501,7 +1502,7 @@ export declare interface EntryDescription {
1501
1502
  }
1502
1503
 
1503
1504
  /**
1504
- * The exposed API of Rspeedy. Can be used in Rsbuild plugin with {@link https://rsbuild.dev/plugins/dev/core#apiuseexposed | api.useExposed}.
1505
+ * The exposed API of Rspeedy. Can be used in Rsbuild plugin with {@link https://rsbuild.rs/plugins/dev/core#apiuseexposed | api.useExposed}.
1505
1506
  *
1506
1507
  * @public
1507
1508
  *
@@ -1835,7 +1836,7 @@ export { logger }
1835
1836
  *
1836
1837
  * @remarks
1837
1838
  *
1838
- * This is actually an alias of {@link https://rsbuild.dev/api/javascript-api/core#mergersbuildconfig | mergeRsbuildConfig}.
1839
+ * This is actually an alias of {@link https://rsbuild.rs/api/javascript-api/core#mergersbuildconfig | mergeRsbuildConfig}.
1839
1840
  *
1840
1841
  * @public
1841
1842
  */
@@ -1902,7 +1903,7 @@ export declare interface Minify {
1902
1903
  *
1903
1904
  * @remarks
1904
1905
  *
1905
- * For detailed configurations, please refer to {@link https://rspack.dev/plugins/rspack/swc-js-minimizer-rspack-plugin | SwcJsMinimizerRspackPlugin}.
1906
+ * For detailed configurations, please refer to {@link https://rspack.rs/plugins/rspack/swc-js-minimizer-rspack-plugin | SwcJsMinimizerRspackPlugin}.
1906
1907
  *
1907
1908
  * @example
1908
1909
  *
@@ -1992,7 +1993,7 @@ export declare interface Output {
1992
1993
  *
1993
1994
  * @remarks
1994
1995
  *
1995
- * The functionality of {@link Output.assetPrefix} is basically the same as the {@link https://www.rspack.dev/config/output#outputpublicpath | output.publicPath}
1996
+ * The functionality of {@link Output.assetPrefix} is basically the same as the {@link https://rspack.rs/config/output#outputpublicpath | output.publicPath}
1996
1997
  * config in Rspack. With the following differences:
1997
1998
  *
1998
1999
  * - `output.assetPrefix` only takes effect in the production build.
@@ -2016,6 +2017,12 @@ export declare interface Output {
2016
2017
  /**
2017
2018
  * The {@link Output.cleanDistPath} option determines whether all files in the output directory (default: `dist`) are removed before the build starts.
2018
2019
  *
2020
+ * @remarks
2021
+ *
2022
+ * By default, if the output directory is a subdirectory of the project root path, Rspeedy will automatically clean all files in the build directory.
2023
+ *
2024
+ * When {@link https://rsbuild.rs/config/output/dist-path#root-directory | output.distPath.root} is an external directory or the same as the project root directory, `cleanDistPath` is not enabled by default to prevent accidental deletion of files from other directories.
2025
+ *
2019
2026
  * @defaultValue Automatically enabled when `output.distPath.root` is a subdirectory of the project root; otherwise disabled.
2020
2027
  *
2021
2028
  * @example
@@ -2051,7 +2058,7 @@ export declare interface Output {
2051
2058
  *
2052
2059
  * @remarks
2053
2060
  *
2054
- * For more options, see {@link https://rspack.dev/plugins/rspack/copy-rspack-plugin | Rspack.CopyRspackPlugin}.
2061
+ * For more options, see {@link https://rspack.rs/plugins/rspack/copy-rspack-plugin | Rspack.CopyRspackPlugin}.
2055
2062
  *
2056
2063
  * @example
2057
2064
  *
@@ -2197,7 +2204,7 @@ export declare interface Output {
2197
2204
  *
2198
2205
  * @remarks
2199
2206
  *
2200
- * More options can be found at {@link https://rsbuild.dev/config/output/dist-path | Rsbuild - distPath}.
2207
+ * More options can be found at {@link https://rsbuild.rs/config/output/dist-path | Rsbuild - distPath}.
2201
2208
  *
2202
2209
  * @example
2203
2210
  *
@@ -2289,7 +2296,7 @@ export declare interface Output {
2289
2296
  *
2290
2297
  * @remarks
2291
2298
  *
2292
- * This is different with {@link https://rsbuild.dev/config/output/inline-scripts | output.inlineScripts } since we normally want to inline scripts in Lynx bundle (`.lynx.bundle`).
2299
+ * This is different with {@link https://rsbuild.rs/config/output/inline-scripts | output.inlineScripts } since we normally want to inline scripts in Lynx bundle (`.lynx.bundle`).
2293
2300
  *
2294
2301
  * There are two points that need to be especially noted:
2295
2302
  *
@@ -2407,7 +2414,7 @@ export declare interface Performance {
2407
2414
  */
2408
2415
  chunkSplit?: ChunkSplit | ChunkSplitBySize | ChunkSplitCustom | undefined;
2409
2416
  /**
2410
- * Whether capture timing information in the build time and the runtime, the same as the {@link https://rspack.dev/config/other-options#profile | profile} config of Rspack.
2417
+ * Whether capture timing information in the build time and the runtime, the same as the {@link https://rspack.rs/config/other-options#profile | profile} config of Rspack.
2411
2418
  *
2412
2419
  * @defaultValue Rspeedy sets this to `true` when `DEBUG` contains `rspeedy`; otherwise it leaves the option unset.
2413
2420
  *
@@ -2471,7 +2478,7 @@ export declare interface Performance {
2471
2478
  *
2472
2479
  * {@link Performance.printFileSize}
2473
2480
  *
2474
- * See {@link https://rsbuild.dev/config/performance/print-file-size | Rsbuild - performance.printFileSize} for details.
2481
+ * See {@link https://rsbuild.rs/config/performance/print-file-size | Rsbuild - performance.printFileSize} for details.
2475
2482
  *
2476
2483
  * @example
2477
2484
  *
@@ -2769,7 +2776,36 @@ export { RsbuildPluginAPI }
2769
2776
 
2770
2777
  export { rsbuildVersion }
2771
2778
 
2772
- export declare type RsdoctorRspackPluginOptions = ConstructorParameters<typeof RsdoctorRspackPlugin<[]>>[0];
2779
+ declare interface RsdoctorRspackPluginExperiments {
2780
+ /**
2781
+ * Whether to enable the native plugin to improve the performance.
2782
+ * @default true
2783
+ */
2784
+ enableNativePlugin?: boolean;
2785
+ }
2786
+
2787
+ /**
2788
+ * Simplified options type for `tools.rsdoctor`.
2789
+ *
2790
+ * Keep this type free of deeply nested/intersection utility types to ensure
2791
+ * typia can generate validators from `Config`.
2792
+ *
2793
+ * @public
2794
+ */
2795
+ export declare interface RsdoctorRspackPluginOptions extends Omit<RsdoctorRspackPluginOptions_2<[]>, 'linter'> {
2796
+ linter?: {
2797
+ rules?: Record<string, unknown>;
2798
+ level?: 'Ignore' | 'Warn' | 'Error';
2799
+ extends?: unknown[];
2800
+ };
2801
+ }
2802
+
2803
+ declare interface RsdoctorRspackPluginOptions_2<Rules extends Linter.ExtendRuleData[]> extends Plugin.RsdoctorWebpackPluginOptions<Rules> {
2804
+ /**
2805
+ * The experiments of the Rsdoctor Rspack plugin.
2806
+ */
2807
+ experiments?: RsdoctorRspackPluginExperiments;
2808
+ }
2773
2809
 
2774
2810
  export { Rspack }
2775
2811
 
@@ -2801,7 +2837,7 @@ export declare interface Server {
2801
2837
  *
2802
2838
  * If you want to access lynx bundle through `http://<host>:<port>/foo/main.lynx.bundle`, you can change `server.base` to `/foo`
2803
2839
  *
2804
- * you can refer to {@link https://rsbuild.dev/config/server/base | server.base } for more information.
2840
+ * you can refer to {@link https://rsbuild.rs/config/server/base | server.base } for more information.
2805
2841
  *
2806
2842
  * @example
2807
2843
  *
@@ -3012,7 +3048,7 @@ export declare interface Source {
3012
3048
  * Through the source.assetsInclude config, you can specify additional file types that should be treated as static assets.
3013
3049
  * These added static assets are processed using the same rules as the built-in supported static assets。
3014
3050
  *
3015
- * The usage of `source.assetsInclude` is consistent with {@link https://rspack.dev/config/module#condition | Condition}
3051
+ * The usage of `source.assetsInclude` is consistent with {@link https://rspack.rs/config/module#condition | Condition}
3016
3052
  * in Rspack, which supports passing in strings, regular expressions, arrays of conditions, or logical conditions
3017
3053
  * to match the module path or assets.
3018
3054
  *
@@ -3208,7 +3244,7 @@ export declare interface Source {
3208
3244
  * By default, Rsbuild compiles JavaScript files in the current directory and TypeScript/JSX files
3209
3245
  * in all directories. Through the `source.exclude` config, you can specify files or directories
3210
3246
  * that should be excluded from compilation.
3211
- * The usage of `source.exclude` is consistent with {@link https://rspack.dev/config/module#ruleexclude | Rule.exclude}
3247
+ * The usage of `source.exclude` is consistent with {@link https://rspack.rs/config/module#ruleexclude | Rule.exclude}
3212
3248
  * in Rspack, which supports passing in strings or regular expressions to match module paths.
3213
3249
  *
3214
3250
  * @example
@@ -3274,7 +3310,7 @@ export declare interface Source {
3274
3310
  *
3275
3311
  * Through the `source.include` config, you can specify directories or modules
3276
3312
  * that need to be compiled by Rsbuild.
3277
- * The usage of `source.include` is consistent with {@link https://rspack.dev/config/module#ruleinclude | Rule.include}
3313
+ * The usage of `source.include` is consistent with {@link https://rspack.rs/config/module#ruleinclude | Rule.include}
3278
3314
  * in Rspack, which supports passing in strings or regular expressions to match the module path.
3279
3315
  *
3280
3316
  * @example
@@ -3346,7 +3382,7 @@ export declare interface Source {
3346
3382
  *
3347
3383
  * @remarks
3348
3384
  *
3349
- * See {@link https://rsbuild.dev/config/source/pre-entry | source.preEntry} for more details.
3385
+ * See {@link https://rsbuild.rs/config/source/pre-entry | source.preEntry} for more details.
3350
3386
  *
3351
3387
  * @example
3352
3388
  *
@@ -3441,7 +3477,7 @@ export declare interface SourceMap {
3441
3477
  *
3442
3478
  * @remarks
3443
3479
  *
3444
- * See {@link https://rspack.dev/config/devtool | Rspack - Devtool} for details.
3480
+ * See {@link https://rspack.rs/config/devtool | Rspack - Devtool} for details.
3445
3481
  *
3446
3482
  * @example
3447
3483
  *
@@ -3494,6 +3530,30 @@ export declare interface SourceMap {
3494
3530
  * ```
3495
3531
  */
3496
3532
  js?: Rspack.DevTool | undefined | `${Exclude<Rspack.DevTool, false | 'eval'>}-debugids`;
3533
+ /**
3534
+ * Whether to generate CSS source maps.
3535
+ *
3536
+ * @remarks
3537
+ *
3538
+ * Defaults to `true`.
3539
+ *
3540
+ * @example
3541
+ *
3542
+ * Disable CSS sourcemap.
3543
+ *
3544
+ * ```js
3545
+ * import { defineConfig } from '@lynx-js/rspeedy'
3546
+ *
3547
+ * export default defineConfig({
3548
+ * output: {
3549
+ * sourceMap: {
3550
+ * css: false,
3551
+ * },
3552
+ * },
3553
+ * })
3554
+ * ```
3555
+ */
3556
+ css?: boolean | undefined;
3497
3557
  }
3498
3558
 
3499
3559
  /**
@@ -3503,7 +3563,7 @@ export declare interface SourceMap {
3503
3563
  */
3504
3564
  export declare interface Tools {
3505
3565
  /**
3506
- * The {@link Tools.bundlerChain} changes the options of {@link https://www.rspack.dev | Rspack} using {@link https://github.com/rspack-contrib/rspack-chain | rspack-chain}.
3566
+ * The {@link Tools.bundlerChain} changes the options of {@link https://rspack.rs | Rspack} using {@link https://github.com/rspack-contrib/rspack-chain | rspack-chain}.
3507
3567
  *
3508
3568
  * @defaultValue undefined
3509
3569
  *
@@ -3549,7 +3609,7 @@ export declare interface Tools {
3549
3609
  */
3550
3610
  cssLoader?: CssLoader | undefined;
3551
3611
  /**
3552
- * The {@link CssExtract} controls the options of {@link https://www.rspack.dev/plugins/rspack/css-extract-rspack-plugin | CssExtractRspackPlugin}
3612
+ * The {@link CssExtract} controls the options of {@link https://rspack.rs/plugins/rspack/css-extract-rspack-plugin | CssExtractRspackPlugin}
3553
3613
  *
3554
3614
  * @defaultValue undefined
3555
3615
  */
@@ -3582,7 +3642,7 @@ export declare interface Tools {
3582
3642
  */
3583
3643
  rsdoctor?: RsdoctorRspackPluginOptions | undefined;
3584
3644
  /**
3585
- * The {@link Tools.rspack} controls the options of {@link https://www.rspack.dev/ | Rspack}.
3645
+ * The {@link Tools.rspack} controls the options of {@link https://rspack.rs/ | Rspack}.
3586
3646
  *
3587
3647
  * @defaultValue undefined
3588
3648
  *
@@ -3604,7 +3664,7 @@ export declare interface Tools {
3604
3664
  * })
3605
3665
  * ```
3606
3666
  *
3607
- * See {@link https://www.rspack.dev/config/index | Rspack - Configuration} for details.
3667
+ * See {@link https://rspack.rs/config/index | Rspack - Configuration} for details.
3608
3668
  *
3609
3669
  * @example
3610
3670
  *
@@ -3625,7 +3685,7 @@ export declare interface Tools {
3625
3685
  * })
3626
3686
  * ```
3627
3687
  *
3628
- * See {@link https://rsbuild.dev/config/tools/rspack#env | Rsbuild - tools.rspack} for details.
3688
+ * See {@link https://rsbuild.rs/config/tools/rspack#env | Rsbuild - tools.rspack} for details.
3629
3689
  *
3630
3690
  * @example
3631
3691
  *
@@ -3647,7 +3707,7 @@ export declare interface Tools {
3647
3707
  * })
3648
3708
  * ```
3649
3709
  *
3650
- * See {@link https://rsbuild.dev/config/tools/rspack#mergeconfig | Rsbuild - tools.rspack} for details.
3710
+ * See {@link https://rsbuild.rs/config/tools/rspack#mergeconfig | Rsbuild - tools.rspack} for details.
3651
3711
  *
3652
3712
  * @example
3653
3713
  *
@@ -3666,11 +3726,11 @@ export declare interface Tools {
3666
3726
  * })
3667
3727
  * ```
3668
3728
  *
3669
- * See {@link https://rsbuild.dev/config/tools/rspack#appendplugins | Rsbuild - tools.rspack} for details.
3729
+ * See {@link https://rsbuild.rs/config/tools/rspack#appendplugins | Rsbuild - tools.rspack} for details.
3670
3730
  */
3671
3731
  rspack?: ToolsConfig['rspack'] | undefined;
3672
3732
  /**
3673
- * The {@link Tools.swc} controls the options of {@link https://rspack.dev/guide/features/builtin-swc-loader | builtin:swc-loader}.
3733
+ * The {@link Tools.swc} controls the options of {@link https://rspack.rs/guide/features/builtin-swc-loader | builtin:swc-loader}.
3674
3734
  *
3675
3735
  * @defaultValue undefined
3676
3736
  */
@@ -192,7 +192,7 @@ async function exit_onExit(signal) {
192
192
  await Promise.allSettled(exitPromises);
193
193
  }
194
194
  var package_namespaceObject = {
195
- rE: "0.14.1"
195
+ rE: "0.14.3"
196
196
  };
197
197
  const version_version = package_namespaceObject.rE;
198
198
  const rspackVersion = rspack.rspackVersion;
@@ -104,6 +104,9 @@ function applyDefaultRspeedyConfig(config) {
104
104
  })(),
105
105
  output: {
106
106
  filename: getFilename(config.output?.filename),
107
+ sourceMap: {
108
+ css: true
109
+ },
107
110
  inlineScripts: !enableChunkSplitting,
108
111
  cssModules: {
109
112
  localIdentName: '[local]-[hash:base64:6]'
@@ -374,7 +377,7 @@ function isDeno() {
374
377
  return false;
375
378
  }
376
379
  var package_namespaceObject = {
377
- rE: "0.14.1"
380
+ rE: "0.14.3"
378
381
  };
379
382
  const version_version = package_namespaceObject.rE;
380
383
  const rspackVersion = rspack.rspackVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -50,16 +50,17 @@
50
50
  "dependencies": {
51
51
  "@rsbuild/core": "1.7.5",
52
52
  "@rsbuild/plugin-css-minimizer": "1.1.1",
53
- "@rsdoctor/rspack-plugin": "1.2.3",
53
+ "@rsdoctor/rspack-plugin": "~1.5.6",
54
54
  "@lynx-js/cache-events-webpack-plugin": "^0.0.3",
55
55
  "@lynx-js/chunk-loading-webpack-plugin": "^0.3.3",
56
- "@lynx-js/web-rsbuild-server-middleware": "0.20.1",
56
+ "@lynx-js/web-rsbuild-server-middleware": "0.20.3",
57
57
  "@lynx-js/webpack-dev-transport": "^0.2.0",
58
58
  "@lynx-js/websocket": "^0.0.4"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@microsoft/api-extractor": "7.58.2",
62
62
  "@rollup/plugin-typescript": "^12.3.0",
63
+ "@rsdoctor/core": "~1.5.6",
63
64
  "chokidar": "^4.0.3",
64
65
  "commander": "^13.1.0",
65
66
  "eventemitter3": "^5.0.4",