@rsdoctor/core 1.5.16 → 1.5.17

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.
@@ -118,9 +118,13 @@ function normalizeUserConfig(config = {}) {
118
118
  ...config,
119
119
  output: outputConfig
120
120
  };
121
- const { linter = {}, features = {}, loaderInterceptorOptions = {}, disableClientServer: userDisableClientServer = false, sdkInstance, innerClientPath = '', output = outputConfig, supports = getDefaultSupports(), port, server: userServer = {}, printLog = {
121
+ const { linter = {}, features = {}, loaderInterceptorOptions = {}, disableClientServer: userDisableClientServer = false, sdkInstance, innerClientPath = '', output = outputConfig, supports: userSupports = {}, port, server: userServer = {}, printLog = {
122
122
  serverUrls: true
123
123
  }, mode, brief } = normalizedConfig;
124
+ const supports = {
125
+ ...getDefaultSupports(),
126
+ ...userSupports
127
+ };
124
128
  const disableClientServer = 'true' === process.env.RSTEST ? false : process.env.CI ? true : userDisableClientServer;
125
129
  external_assert_default()('object' == typeof linter);
126
130
  external_assert_default()('object' == typeof features || Array.isArray(features));
@@ -79,9 +79,13 @@ function normalizeUserConfig(config = {}) {
79
79
  ...config,
80
80
  output: outputConfig
81
81
  };
82
- const { linter = {}, features = {}, loaderInterceptorOptions = {}, disableClientServer: userDisableClientServer = false, sdkInstance, innerClientPath = '', output = outputConfig, supports = getDefaultSupports(), port, server: userServer = {}, printLog = {
82
+ const { linter = {}, features = {}, loaderInterceptorOptions = {}, disableClientServer: userDisableClientServer = false, sdkInstance, innerClientPath = '', output = outputConfig, supports: userSupports = {}, port, server: userServer = {}, printLog = {
83
83
  serverUrls: true
84
84
  }, mode, brief } = normalizedConfig;
85
+ const supports = {
86
+ ...getDefaultSupports(),
87
+ ...userSupports
88
+ };
85
89
  const disableClientServer = 'true' === process.env.RSTEST ? false : process.env.CI ? true : userDisableClientServer;
86
90
  assert('object' == typeof linter);
87
91
  assert('object' == typeof features || Array.isArray(features));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/core",
3
- "version": "1.5.16",
3
+ "version": "1.5.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -94,10 +94,10 @@
94
94
  "fs-extra": "^11.1.1",
95
95
  "semver": "^7.7.4",
96
96
  "source-map": "^0.7.6",
97
- "@rsdoctor/graph": "1.5.16",
98
- "@rsdoctor/types": "1.5.16",
99
- "@rsdoctor/utils": "1.5.16",
100
- "@rsdoctor/sdk": "1.5.16"
97
+ "@rsdoctor/types": "1.5.17",
98
+ "@rsdoctor/utils": "1.5.17",
99
+ "@rsdoctor/sdk": "1.5.17",
100
+ "@rsdoctor/graph": "1.5.17"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@rspack/core": "^2.0.5",