@shuvi/service 2.0.0-dev.21 → 2.0.0-dev.22

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.
@@ -203,7 +203,7 @@ class RspackBundler {
203
203
  warnings.push(...(statsData.warnings || []));
204
204
  errors.push(...(statsData.errors || []));
205
205
  });
206
- if (warnings.length > 0) {
206
+ if (warnings.length > 0 && process.env.NODE_ENV === 'production') {
207
207
  warnings.forEach(warning => {
208
208
  console.warn('warning message', warning.message);
209
209
  console.warn('warning file', warning.file);
@@ -218,8 +218,7 @@ class RspackBundler {
218
218
  process.exit(1);
219
219
  }
220
220
  }
221
- const isSuccessful = !warnings.length && !errors.length;
222
- if (isSuccessful) {
221
+ if (!errors.length) {
223
222
  if (!isFirstSuccessfulCompile) {
224
223
  logger_1.default.info(`Compiled client and server successfully${timeMessage}`);
225
224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/service",
3
- "version": "2.0.0-dev.21",
3
+ "version": "2.0.0-dev.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -29,14 +29,14 @@
29
29
  "@babel/generator": "7.14.5",
30
30
  "@babel/parser": "7.14.7",
31
31
  "@babel/traverse": "7.14.7",
32
- "@shuvi/hook": "2.0.0-dev.21",
33
- "@shuvi/router": "2.0.0-dev.21",
34
- "@shuvi/runtime": "2.0.0-dev.21",
35
- "@shuvi/shared": "2.0.0-dev.21",
36
- "@shuvi/toolpack": "2.0.0-dev.21",
37
- "@shuvi/utils": "2.0.0-dev.21",
38
- "@shuvi/error-overlay": "2.0.0-dev.21",
39
- "@shuvi/reporters": "2.0.0-dev.21",
32
+ "@shuvi/hook": "2.0.0-dev.22",
33
+ "@shuvi/router": "2.0.0-dev.22",
34
+ "@shuvi/runtime": "2.0.0-dev.22",
35
+ "@shuvi/shared": "2.0.0-dev.22",
36
+ "@shuvi/toolpack": "2.0.0-dev.22",
37
+ "@shuvi/utils": "2.0.0-dev.22",
38
+ "@shuvi/error-overlay": "2.0.0-dev.22",
39
+ "@shuvi/reporters": "2.0.0-dev.22",
40
40
  "commander": "5.1.0",
41
41
  "comment-json": "4.2.2",
42
42
  "cross-spawn": "7.0.3",