swico 0.8.2-beta13 → 0.8.2-beta14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "0.8.2-beta13",
3
+ "version": "0.8.2-beta14",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -77,11 +77,11 @@ function default_1() {
77
77
  }
78
78
  var info = stats.toJson();
79
79
  if (stats.hasErrors()) {
80
- tools_1.toast.error(info.errors.map(function (item) { return item.stack; }));
80
+ tools_1.toast.error(info.errors.map(function (item) { return item.stack || item.message; }));
81
81
  return;
82
82
  }
83
83
  if (stats.hasWarnings()) {
84
- tools_1.toast.warning(info.warnings.map(function (item) { return item.stack; }));
84
+ tools_1.toast.warning(info.warnings.map(function (item) { return item.stack || item.message; }));
85
85
  }
86
86
  tools_1.toast.success('Building complete');
87
87
  });
@@ -129,8 +129,9 @@ function default_1(options) {
129
129
  new eslint_webpack_plugin_1.default({
130
130
  context: path_1.default.join(projectPath, '/src'),
131
131
  failOnError: false,
132
- failOnWarning: false,
132
+ failOnWarning: true,
133
133
  extensions: templateType === 'vue' ? ['vue', 'ts', 'js'] : ['tsx', 'ts', 'js'],
134
+ emitWarning: false,
134
135
  cache: true
135
136
  })
136
137
  ], ((_e = (_d = customConfig.dev) === null || _d === void 0 ? void 0 : _d.plugins) !== null && _e !== void 0 ? _e : []), true)