swico 0.8.5-beta11 → 0.8.5-beta12

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.5-beta11",
3
+ "version": "0.8.5-beta12",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -43,6 +43,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
43
43
  loader: string;
44
44
  options: {
45
45
  appendTsSuffixTo: RegExp[];
46
+ happyPackMode: boolean;
46
47
  };
47
48
  };
48
49
  loader?: undefined;
@@ -63,8 +63,10 @@ var path_1 = __importDefault(require("path"));
63
63
  var mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
64
64
  var config_1 = require("../utils/config");
65
65
  var html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
66
+ var fork_ts_checker_webpack_plugin_1 = __importDefault(require("fork-ts-checker-webpack-plugin"));
66
67
  var webpack_1 = __importDefault(require("webpack"));
67
68
  var vue_loader_1 = require("vue-loader");
69
+ var tools_1 = require("../utils/tools");
68
70
  function default_1(_a) {
69
71
  var _b, _c, _d;
70
72
  var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
@@ -138,7 +140,8 @@ function default_1(_a) {
138
140
  use: {
139
141
  loader: 'ts-loader',
140
142
  options: {
141
- appendTsSuffixTo: [/\.vue$/]
143
+ appendTsSuffixTo: [/\.vue$/],
144
+ happyPackMode: true
142
145
  }
143
146
  }
144
147
  },
@@ -283,6 +286,20 @@ function default_1(_a) {
283
286
  },
284
287
  hash: true
285
288
  }),
289
+ new fork_ts_checker_webpack_plugin_1.default({
290
+ logger: {
291
+ log: function () { },
292
+ error: function (message) {
293
+ tools_1.toast.error(message, { title: 'TypeScript errors' });
294
+ }
295
+ },
296
+ typescript: {
297
+ diagnosticOptions: {
298
+ semantic: true,
299
+ syntactic: true
300
+ }
301
+ }
302
+ }),
286
303
  new mini_css_extract_plugin_1.default({
287
304
  filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
288
305
  ignoreOrder: true