swico 0.8.5-beta4 → 0.8.5-beta5

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-beta4",
3
+ "version": "0.8.5-beta5",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -26,7 +26,7 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
26
26
  loader: string;
27
27
  options: {
28
28
  appendTsSuffixTo: RegExp[];
29
- transpileOnly: boolean;
29
+ configFile: string;
30
30
  };
31
31
  }[];
32
32
  loader?: undefined;
@@ -63,10 +63,8 @@ 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"));
67
66
  var webpack_1 = __importDefault(require("webpack"));
68
67
  var vue_loader_1 = require("vue-loader");
69
- var tools_1 = require("../utils/tools");
70
68
  function default_1(_a) {
71
69
  var _b, _c, _d;
72
70
  var projectPath = _a.projectPath, entryPath = _a.entryPath, env = _a.env, customConfig = _a.customConfig;
@@ -124,7 +122,7 @@ function default_1(_a) {
124
122
  loader: 'ts-loader',
125
123
  options: {
126
124
  appendTsSuffixTo: [/\.vue$/],
127
- transpileOnly: true
125
+ configFile: path_1.default.resolve(process.cwd(), 'tsconfig.json')
128
126
  }
129
127
  }
130
128
  ]
@@ -270,20 +268,6 @@ function default_1(_a) {
270
268
  },
271
269
  hash: true
272
270
  }),
273
- new fork_ts_checker_webpack_plugin_1.default({
274
- logger: {
275
- log: function () { },
276
- error: function (message) {
277
- tools_1.toast.error(message, { title: 'TypeScript errors' });
278
- }
279
- },
280
- typescript: {
281
- diagnosticOptions: {
282
- semantic: true,
283
- syntactic: true
284
- }
285
- }
286
- }),
287
271
  new mini_css_extract_plugin_1.default({
288
272
  filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
289
273
  ignoreOrder: true