swico 0.8.5-beta3 → 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-beta3",
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",
@@ -22,23 +22,13 @@ export default function ({ projectPath, entryPath, env, customConfig }: GlobalDa
22
22
  } | {
23
23
  test: RegExp;
24
24
  exclude: RegExp;
25
- use: ({
26
- loader: string;
27
- options: {
28
- presets: string[];
29
- plugins: string[];
30
- appendTsSuffixTo?: undefined;
31
- transpileOnly?: undefined;
32
- };
33
- } | {
25
+ use: {
34
26
  loader: string;
35
27
  options: {
36
28
  appendTsSuffixTo: RegExp[];
37
- transpileOnly: boolean;
38
- presets?: undefined;
39
- plugins?: undefined;
29
+ configFile: string;
40
30
  };
41
- })[];
31
+ }[];
42
32
  loader?: undefined;
43
33
  oneOf?: undefined;
44
34
  } | {
@@ -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;
@@ -120,18 +118,11 @@ function default_1(_a) {
120
118
  test: /\.ts$/,
121
119
  exclude: /node_modules/,
122
120
  use: [
123
- {
124
- loader: 'babel-loader?cacheDirectory=true',
125
- options: {
126
- presets: ['@babel/preset-env'],
127
- plugins: ['@babel/plugin-transform-runtime']
128
- }
129
- },
130
121
  {
131
122
  loader: 'ts-loader',
132
123
  options: {
133
124
  appendTsSuffixTo: [/\.vue$/],
134
- transpileOnly: true
125
+ configFile: path_1.default.resolve(process.cwd(), 'tsconfig.json')
135
126
  }
136
127
  }
137
128
  ]
@@ -277,20 +268,6 @@ function default_1(_a) {
277
268
  },
278
269
  hash: true
279
270
  }),
280
- new fork_ts_checker_webpack_plugin_1.default({
281
- logger: {
282
- log: function () { },
283
- error: function (message) {
284
- tools_1.toast.error(message, { title: 'TypeScript errors' });
285
- }
286
- },
287
- typescript: {
288
- diagnosticOptions: {
289
- semantic: true,
290
- syntactic: true
291
- }
292
- }
293
- }),
294
271
  new mini_css_extract_plugin_1.default({
295
272
  filename: env === 'dev' ? 'css/[name].css' : 'css/[name].[contenthash].css',
296
273
  ignoreOrder: true