@lynx-js/rspeedy 0.8.4 → 0.8.5

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.
@@ -1,7 +1,7 @@
1
1
  // Copyright 2024 The Lynx Authors. All rights reserved.
2
2
  // Licensed under the Apache License Version 2.0 that can be found in the
3
3
  // LICENSE file in the root directory of this source tree.
4
- import { logger } from '@rsbuild/core';
4
+ import { logger, mergeRsbuildConfig } from '@rsbuild/core';
5
5
  import { isCI } from '../utils/is-ci.js';
6
6
  export function pluginRsdoctor(options) {
7
7
  return {
@@ -22,16 +22,23 @@ export function pluginRsdoctor(options) {
22
22
  continue;
23
23
  }
24
24
  config.plugins ??= [];
25
- config.plugins.push(new RsdoctorRspackPlugin({
25
+ const defaultOptions = {
26
26
  // We disable client server on CI by default.
27
27
  // But it can be overridden by `tools.rsdoctor`.
28
28
  disableClientServer: isCI(),
29
- ...options,
30
29
  supports: {
31
- ...options?.supports,
32
30
  banner: true, // We must enable `supports.banner` since we have runtime wrapper enabled
33
31
  },
34
- }));
32
+ linter: {
33
+ rules: {
34
+ 'ecma-version-check': options?.linter?.rules?.['ecma-version-check'] ?? [
35
+ 'Warn',
36
+ { ecmaVersion: 2019 },
37
+ ],
38
+ },
39
+ },
40
+ };
41
+ config.plugins.push(new RsdoctorRspackPlugin(mergeRsbuildConfig(defaultOptions, options)));
35
42
  }
36
43
  logger.info(`Rsdoctor is enabled.`);
37
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -51,7 +51,7 @@
51
51
  "@microsoft/api-extractor": "7.51.1",
52
52
  "@rsbuild/core": "1.2.19",
53
53
  "@rsbuild/plugin-css-minimizer": "1.0.2",
54
- "@rsdoctor/rspack-plugin": "1.0.0-rc.0",
54
+ "@rsdoctor/rspack-plugin": "1.0.0",
55
55
  "chokidar": "^4.0.3",
56
56
  "commander": "^13.1.0",
57
57
  "exit-hook": "^4.0.0",
@@ -70,7 +70,7 @@
70
70
  "@rsbuild/webpack": "1.2.3",
71
71
  "eventemitter3": "^5.0.1",
72
72
  "type-fest": "^4.37.0",
73
- "vitest": "^3.0.8",
73
+ "vitest": "^3.0.9",
74
74
  "webpack": "^5.98.0",
75
75
  "@lynx-js/vitest-setup": "0.0.0"
76
76
  },