antd-management-fast-config 1.1.89 → 1.1.91

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": "antd-management-fast-config",
3
- "version": "1.1.89",
3
+ "version": "1.1.91",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -6,6 +6,10 @@ function checkDevelopment() {
6
6
  return process.env.NODE_ENV === 'development';
7
7
  }
8
8
 
9
+ function isArray(value) {
10
+ return Array.isArray(value);
11
+ }
12
+
9
13
  /**
10
14
  * buildConfig
11
15
  */
@@ -22,6 +26,47 @@ function buildConfig({ packageJson: packageImport, config = {} }) {
22
26
  const shared = {};
23
27
 
24
28
  if (deps) {
29
+ let { exclude } = {
30
+ exclude: [],
31
+ ...mfsu,
32
+ };
33
+
34
+ if (!isArray(exclude)) {
35
+ exclude = [];
36
+ }
37
+
38
+ exclude = [
39
+ ...exclude,
40
+ '@ant-design/graphs',
41
+ '@ant-design/icons',
42
+ '@ant-design/pro-components',
43
+ '@cyntler/react-doc-viewer',
44
+ '@emotion/css',
45
+ '@formily/antd-v5',
46
+ '@formily/core',
47
+ '@formily/react',
48
+ '@reduxjs/toolkit',
49
+ '@tanem/react-nprogress',
50
+ '@umijs/max',
51
+ 'antd',
52
+ 'antd-management-fast-common',
53
+ 'antd-management-fast-component',
54
+ 'antd-management-fast-design-playground',
55
+ 'antd-management-fast-design-react',
56
+ 'antd-management-fast-flow',
57
+ 'antd-management-fast-formily',
58
+ 'antd-management-fast-framework',
59
+ 'easy-soft-dva',
60
+ 'easy-soft-utility',
61
+ 'react',
62
+ 'react-dom',
63
+ 'react-redux',
64
+ 'redux',
65
+ 'redux-saga',
66
+ 'react-to-print',
67
+ 'reactflow',
68
+ ];
69
+
25
70
  if (deps['react']) {
26
71
  shared.react = {
27
72
  singleton: true,
@@ -42,6 +87,8 @@ function buildConfig({ packageJson: packageImport, config = {} }) {
42
87
  ...mfsu.shared,
43
88
  ...shared,
44
89
  };
90
+
91
+ mfsu.exclude = exclude;
45
92
  }
46
93
  } else {
47
94
  mfsu = false;