ko 5.3.6 → 5.3.7

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.
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const webpack_1 = __importDefault(require("webpack"));
7
- const esbuild_loader_1 = require("esbuild-loader");
8
7
  const creator_1 = require("./creator");
9
8
  const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
10
9
  class Build extends creator_1.WebpackCreator {
@@ -12,17 +11,11 @@ class Build extends creator_1.WebpackCreator {
12
11
  super(opts);
13
12
  }
14
13
  config() {
15
- const { esbuild } = this.opts;
14
+ // const { esbuild } = this.opts;
16
15
  const conf = {
17
16
  optimization: {
18
- minimizer: [
19
- !esbuild && new CssMinimizerPlugin(),
20
- esbuild &&
21
- new esbuild_loader_1.ESBuildMinifyPlugin({
22
- target: 'es2015',
23
- css: true,
24
- }),
25
- ].filter(Boolean),
17
+ minimize: true,
18
+ minimizer: ['...', new CssMinimizerPlugin()],
26
19
  },
27
20
  plugins: [
28
21
  new webpack_1.default.optimize.SplitChunksPlugin({
@@ -30,13 +23,18 @@ class Build extends creator_1.WebpackCreator {
30
23
  minSize: 30000,
31
24
  maxSize: 600000,
32
25
  minChunks: 1,
33
- maxAsyncRequests: 5,
34
- maxInitialRequests: 3,
35
26
  automaticNameDelimiter: '_',
36
27
  cacheGroups: {
37
28
  baseCommon: {
38
- test: new RegExp(`[\\\/]node_modules[\\\/](${['react', 'react-router', 'react-dom', 'react-redux', 'redux', 'react-router-redux', 'lodash'].join('|')})`),
39
- priority: 1
29
+ test: new RegExp(`[\\/]node_modules[\\/](${[
30
+ 'react',
31
+ 'react-router',
32
+ 'react-dom',
33
+ 'react-redux',
34
+ 'redux',
35
+ 'react-router-redux',
36
+ ].join('|')})`),
37
+ priority: 1,
40
38
  },
41
39
  antd: {
42
40
  name: 'antd',
@@ -7,10 +7,11 @@ const getCacheIdentifier_1 = __importDefault(require("react-dev-utils/getCacheId
7
7
  const config_1 = __importDefault(require("../../utils/config"));
8
8
  const THREAD_LOADER = require.resolve('thread-loader');
9
9
  const BABEL_LOADER = require.resolve('babel-loader');
10
+ const WORKER_LOADER = require.resolve('worker-loader');
10
11
  const scriptLoader = [
11
12
  {
12
13
  test: /\.worker.[jt]s$/,
13
- loader: 'worker-loader',
14
+ loader: WORKER_LOADER,
14
15
  options: {
15
16
  inline: 'fallback',
16
17
  },
@@ -18,6 +19,7 @@ const scriptLoader = [
18
19
  {
19
20
  test: /\.(t|j)sx?$/,
20
21
  include: (input) => {
22
+ // internal modules dt-common compatible
21
23
  if (input.includes('node_modules/dt-common/src/')) {
22
24
  return true;
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ko",
3
- "version": "5.3.6",
3
+ "version": "5.3.7",
4
4
  "description": "build & lint library",
5
5
  "keywords": [
6
6
  "ko",