swico 1.3.0-beta.12 → 1.3.0-beta.13

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": "1.3.0-beta.12",
3
+ "version": "1.3.0-beta.13",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -178,7 +178,16 @@ var createCompileListener = function (compiler) {
178
178
  compiler.hooks.done.tap('done', function (stats) {
179
179
  var info = stats === null || stats === void 0 ? void 0 : stats.toJson();
180
180
  if (stats === null || stats === void 0 ? void 0 : stats.hasErrors()) {
181
- console.log('1', info === null || info === void 0 ? void 0 : info.errors);
181
+ console.log('1');
182
+ var formatErrors = info === null || info === void 0 ? void 0 : info.errors.map(function (item) { return item.message || item.stack; });
183
+ console.log('formatErrors', formatErrors);
184
+ var filterErrors = formatErrors.filter(function (item1) {
185
+ return !filterStyleFileList.find(function (item2) {
186
+ console.log('item1', item1);
187
+ console.log('item2', item2);
188
+ return item1.includes(item2);
189
+ });
190
+ });
182
191
  tools_1.toast.error(info === null || info === void 0 ? void 0 : info.errors.map(function (item) { return item.message || item.stack; }).filter(function (item1) { return !filterStyleFileList.find(function (item2) { return item1.includes(item2); }); }));
183
192
  return;
184
193
  }